Skip to content

Commit

Permalink
Use EVD for convex problems with Cbc
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaslundell committed Jul 10, 2021
1 parent 48e5d62 commit 4742193
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1817,9 +1817,17 @@ void Solver::setConvexityBasedSettingsPreReformulation()
{
env->settings->updateSetting("Reformulation.Quadratics.UseEigenValueDecomposition", "Model", false);
}
#endif
}

else if(env->problem->properties.convexity == E_ProblemConvexity::Convex)
{
#ifdef HAS_CBC
if(static_cast<ES_MIPSolver>(env->settings->getSetting<int>("MIP.Solver", "Dual")) == ES_MIPSolver::Cbc)
{
env->settings->updateSetting("Reformulation.Quadratics.UseEigenValueDecomposition", "Model", true);
}
#endif
}
}
}

Expand Down

0 comments on commit 4742193

Please sign in to comment.