Python program to solve problems using the simplex method, with options for graphical mode and dual method, addressing both maximization and minimization problems.