[Coin-discuss] re:Wuestions about bounds and model options
Gabrielle A. Grün
grun at cs.sfu.ca
Sun Nov 25 01:24:13 EST 2007
Hi Christian,
This should help you with your first question. Be watchful of the increments
added.
/*! \brief Set cutoff bound on the objective function.
When using strict comparison, the bound is adjusted by a tolerance
to
avoid accidentally cutting off the optimal solution.
*/
void setCutoff(double value) ;
-----------------------------------------------------------------------------------
The following tweo functuions should be utiolized for dealing with your
second qtuestion. Thqanks.
/** Set the
\link CbcModel::CbcMaximumSeconds maximum number of seconds
\endlink
desired.
*/
inline bool setMaximumSeconds( double value) {
return setDblParam(CbcMaximumSeconds,value);
/** Set the \link CbcModel::CbcAllowableFractionGap percentage
allowable gap \endlink
between the best known solution and the best possible solution.
*/
inline bool setAllowablePercentageGap( double value) {
return setDblParam(CbcAllowableFractionGap,value*0.01);
}
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