help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] Re: a mistake with thinking


From: glpk xypron
Subject: [Help-glpk] Re: a mistake with thinking
Date: Mon, 18 Oct 2010 19:20:05 +0200

> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]