import mit16_410_13.*; public class LPSolve { public static void main (String [] args) throws Exception { LPXMLReader reader=new LPXMLReader(); Simplex problem=reader.readLP(args[0]); problem.describeProblem(System.out); try { switch (problem.solveProblem()) { case 1: System.out.println("Unbounded objective function."); break; case -1: System.out.println("No solutions satisfy constraints given."); break; default: System.out.print("\n\nSolved in "); System.out.print(problem.getSolutionTime()/1000.0); System.out.println(" seconds.\n"); problem.printSolution(System.out); } } catch (SimplexException e) { System.out.println("Simplex Exception"); } } } // Fin