[Coin-discuss] re:set MILP gap
Gabrielle A. Grün
grun at cs.sfu.ca
Sun Oct 28 01:15:33 EDT 2007
Hi Matt,
I do not see anything in OsiSolverInterface.hpp, OsiCbcSolverInterface.hpp
or OsiCpxSolverInterface.hpp (in trunk), but in CbcModel.hpp, the
following methods may be used:
/** Set the \link CbcModel::CbcAllowableGap allowable gap \endlink
between the best known solution and the best possible solution.
*/
inline bool setAllowableGap( double value) {
return setDblParam(CbcAllowableGap,value);
}
/** Set the \link CbcModel::CbcAllowableFractionGap fraction allowable gap
\endlink
between the best known solution and the best possible solution.
*/
inline bool setAllowableFractionGap( double value) {
return setDblParam(CbcAllowableFractionGap,value);
/
Thanks.
Gabrielle A. Grün, Ph.D. Student
School of Computing Science
Simon Fraser University
8888 University Drive
Burnaby, BC
V5A 1S6
<http://www.cs.sfu.ca/~grun>
More information about the Coin-discuss
mailing list