[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] How to set parameters for the cut-and-branch method?
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] How to set parameters for the cut-and-branch method? |
Date: |
Sun, 13 Jan 2008 20:43:09 +0300 |
> "To enable this option the user should set the control parameter
> LPX_K_USECUTS."
> How can I do that?
> With lpx_intopt() there isn't a glp_iocp parameter like in glp_intopt.
lpx_set_int_parm(lp, LPX_K_USECUTS, LPX_C_ALL);
> Another question: why glp_prob is declared like this:
> typedef struct { double _prob; } glp_prob;
> in glpk.h ?
This is a programming trick. Actually the glp_prob structure is
quite complex (you can find it in the header include/glpapi.h).
However, on api level the application program should never use any
members of the glp_prob structure directly and should deal only with
pointers to such structures (i.e. glp_prob *), so there is not much
sense to define all real members of glp_prob, that, besides, would
require defining other data types used internally. That's why there
is declared only one fake member (of type double in order to provide
proper data alignment).