Commit 8576c765 authored by David Bommes's avatar David Bommes

use timelimit parameter

git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@276 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent 12332983
......@@ -132,7 +132,7 @@ void solve_impl(
NProblemInterface* _problem,
const std::vector<NConstraintInterface*>& _constraints,
const std::vector<PairIndexVtype>& _discrete_constraints,
const double /*_time_limit*/
const double _time_limit
)
{
if(!_problem->constant_hessian())
......@@ -243,9 +243,9 @@ void solve_impl(
// Pass the OsiSolver with the problem to be solved to CbcModel
CbcModel model(si);
model.solver()->setHintParam(OsiDoReducePrint, true, OsiHintTry);
model.setMaximumSolutions(4);
// model.setMaximumSolutions(4);
// TRACE_CBT("CbcModel::getMaximumSolutions()", model.getMaximumSolutions());
//model.setMaximumSeconds(_time_limit);
model.setMaximumSeconds(_time_limit);
// TRACE_CBT("CbcModel::getMaximumSeconds()", model.getMaximumSeconds());
model_tweak(model);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment