Skip to content

Commit

Permalink
perf: stop after first feasible solution is found in FixVarsHeur
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafa712 committed Mar 26, 2024
1 parent bf62096 commit acf9d2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base/FixVarsHeur.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ FixVarsHeur::~FixVarsHeur()
void FixVarsHeur::solve(NodePtr, RelaxationPtr, SolutionPoolPtr s_pool)
{
bool restart = true;
UInt min_iter = 3, max_iter = 10, iter = 0;
UInt max_iter = 10, iter = 0;
std::map<VariablePtr, UInt> unfixedVars;
double stime = env_->getTimer()->query();
UInt numvars;

initialize_();
while(iter < min_iter || (restart && iter < max_iter)) {
while(restart && iter < max_iter) {
++iter;
#if SPEW
env_->getLogger()->msgStream(LogDebug)
Expand Down

0 comments on commit acf9d2c

Please sign in to comment.