Re: [ojAlgo-user] optimizing from a .mps file
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Anders P. <an...@op...> - 2009-10-16 21:21:32
|
On 16 okt 2009, at 14.25, David Stynes wrote: > 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. Should have written somewhere that the MIP solver is new and experimental - glad to hear that it solves your problem. How big is it? > 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? The MIP solver is multithreaded, but I don't see why any additional threads should be created before you call solve(). I have a number of junit tests that basically do what you do. As far as I can see they terminate as expected. Could you step through the code and tell me more precisely where that thread is created? /Anders > Thanks, > David > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > ojAlgo-user mailing list > ojA...@li... > https://lists.sourceforge.net/lists/listinfo/ojalgo-user |