Skip to content

Commit

Permalink
Added src/mip/feasibilityjump.hh to BUILD.bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
jajhall committed Nov 4, 2024
1 parent cf44b9a commit dc3684b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ cc_library(
hdrs = glob([
"HConfig.h",
"**/*.h",
"src/mip/feasibilityjump.hh",
"src/qpsolver/*.hpp",
"src/Highs.h",
"extern/filereaderlp/*.hpp",
Expand Down
14 changes: 13 additions & 1 deletion src/mip/HighsFeasibilityJump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,16 @@
#include "mip/HighsMipSolverData.h"
#include "mip/feasibilityjump.hh"

void HighsMipSolverData::feasibilityJump() {}
void HighsMipSolverData::feasibilityJump() {

const HighsLp* model = this->mipsolver.model_;
const bool found_integer_feasible_solution = false;
std::vector<double> col_value;
double objective_function_value;
if (found_integer_feasible_solution) {
col_value.assign(model->num_col_, 0);
objective_function_value = 0.0;
addIncumbent(col_value, objective_function_value,
kSolutionSourceFeasibilityJump);
}
}

0 comments on commit dc3684b

Please sign in to comment.