Hey, can't you just use a dummy objective function say v = 0 and minimize this one (in the mip case!)? Then GLPK would stop after finding a feasible one, as it is immediately optimal too... Of course, this might change the behavior of glpk as it might use the objective function for guiding the search.
sebastian On 06.08.2007, at 10:52, Andrew Makhorin wrote: >> I would like to know if there a possibility to make GLPK stop as >> soon as a feasible solution is found. > > It is possible only on api level. If you are using glpsol, you can > specify the option '--tmlim nnn', which limits the solution time to > nnn seconds. > > > > > _______________________________________________ > Help-glpk mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/help-glpk _______________________________________________ Help-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk
