Skip to content

Commit

Permalink
Added verbosity=1 to declaration of FeasibilityJumpSolver(); solver.s…
Browse files Browse the repository at this point in the history
…olve(nullptr, fjControlCallback); and solution is reported after FJ call
  • Loading branch information
jajhall committed Dec 4, 2024
1 parent 74240eb commit 23e5283
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/mip/HighsFeasibilityJump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void HighsMipSolverData::feasibilityJump() {
external_feasibilityjump::equalityTolerance = epsilon;
external_feasibilityjump::violationTolerance = feastol;

auto solver = external_feasibilityjump::FeasibilityJumpSolver();
auto solver = external_feasibilityjump::FeasibilityJumpSolver(0, 1);

printf("DEBUG: adding cols (vars)\n");

Expand Down Expand Up @@ -106,7 +106,7 @@ void HighsMipSolverData::feasibilityJump() {
}
};

solver.solve(col_value.data(), fjControlCallback);
solver.solve(nullptr, fjControlCallback);

if (found_integer_feasible_solution) {
// Feasibility jump has found a solution, so call addIncumbent to
Expand All @@ -116,6 +116,10 @@ void HighsMipSolverData::feasibilityJump() {
"DEBUG: Feasibility Jump has found an integer feasible solution with "
"objective value %g\n",
objective_function_value);
printf("DEBUG: Solution: [");
for(HighsInt iCol = 0; iCol < std::min(10, int(col_value.size())); iCol++)
printf(" %g", col_value[iCol]);
printf("]\n");
if (!trySolution(col_value, kSolutionSourceFeasibilityJump))
printf("DEBUG: Feasibility Jump solution was not integer feasible\n");
} else {
Expand Down

0 comments on commit 23e5283

Please sign in to comment.