> Is it possible, within a C++ aplication, to predefine a time limit of > gkpk execution , and after this time expires to be able of getting the > best solution that glpk has found so far ? > Is there any command I must include in my C++ application? For your > information, the linear problem I try to solve is extemely hard and > has a very big size. So, I can not affort to wait for its solution but > I want the best solution within 60 secs instead.
#include <glpk.h> glp_smcp parm; . . . glp_init_smcp(&parm); parm.tm_lim = 60000; glp_simplex(P, &parm); . . . For more details please see the glpk reference manual (doc/glpk.pdf) included in the distribution. _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
