> one more question: > > is it possible to pass an array-solution x[i,j,t] (defined as variable) to > an another GLPSOL script and use it as a param-array ?
GLPSOL cannot use an initial solution. It is possible using the GLPK API: Create a callback routine. Pass it as parm.cb_func to glp_intopt. In the callback routine react to the first call with reason GLP_IHEUR as follows: - Preset the integer variables in tree->mip. - Initialize parameters: glp_init_smcp(&parm); - Set parameters: parm.meth = GLP_DUALP; - Solve the LP: ret = glp_simplex(tree->mip, &parm); - Pass all variables with a call to glp_ios_heur_sol. Best regards Xypron -- Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail _______________________________________________ Help-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk
