|
From: | Le Dinh Danh |
Subject: | [Help-glpk] problem with glp_ios_heur_sol |
Date: | Mon, 5 Aug 2013 17:57:52 +0700 |
{ if (glp_ios_reason(tree) == GLP_IHEUR && glp_ios_curr_node(tree) = 1) { /* lp relaxation to the root subproblem has been just solved */ glp_ios_heur_sol(tree, <array of x[j] found by heuristic>); } return; }
int main(...) { glp_prob *mip; glp_iocp parm; . . . <apply your own heuristic to find all x[j], j = 1,...,n> . . . glp_init_iocp(&parm); parm.cb_func = callback; parm.cb_info = ... ; ret = glp_intopt(mip, &parm); . . . }Although the array x[] is set correctly (I am sure after carefully checked), the result is still incorrect. Is anyone has successfully applied this can share something?
[Prev in Thread] | Current Thread | [Next in Thread] |