Skip to content

Commit

Permalink
for maximization in mipstart
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhforrest committed Nov 12, 2023
1 parent 5d2d52a commit 954ccad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CbcMipStartIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ int CbcMipStartIO::computeCompleteSolution(CbcModel *model, OsiSolverInterface *

// assuming that variables not fixed are more likely to have zero as value,
// inserting as default objective function 1
{
vector< double > obj(lp->getNumCols(), 1.0);
if (0) { // to get more accurate answers
vector< double > obj(lp->getNumCols(), lp->getObjSense());
lp->setObjective(&obj[0]);
}

Expand Down Expand Up @@ -317,7 +317,7 @@ int CbcMipStartIO::computeCompleteSolution(CbcModel *model, OsiSolverInterface *
lp->setHintParam(OsiDoPresolveInInitial, true, OsiHintDo);
#endif

lp->setDblParam(OsiDualObjectiveLimit, COIN_DBL_MAX);
//lp->setDblParam(OsiDualObjectiveLimit, COIN_DBL_MAX);
lp->initialSolve();

if ((lp->isProvenPrimalInfeasible()) || (lp->isProvenDualInfeasible())) {
Expand Down

0 comments on commit 954ccad

Please sign in to comment.