[ojAlgo-user] optimizing from a .mps file
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: David S. <d.s...@4c...> - 2009-10-16 14:36:47
|
Hello, I am trying to use ojAlgo to read from a .mps file and use Linear/Mixed Integer Programming to solve it. Currently the code for this is as follows: MathProgSysModel mps = MathProgSysModel.makeFromFile(aFile); OptimisationSolver os = mps.getDefaultSolver(); Result rs = os.solve(); This runs correctly and solves the .mps input file as desired. However the second line (calling getDefaultSolver()) appears to start an additional thread running or something, as the java process does not stop after the rest of my code finishes (but the remaining code after this line does get executed). Is this intended, and/or am I using it incorrectly and how can I use it correctly to prevent the java process continuing to be active indefinitely instead of closing? Thanks, David |