Skip to content

Commit

Permalink
Merge pull request #2130 from fwesselm/cutGenInit
Browse files Browse the repository at this point in the history
Fix 2129
  • Loading branch information
jajhall authored Jan 17, 2025
2 parents 16d7c6b + 120ad1c commit 876c828
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
12 changes: 12 additions & 0 deletions src/mip/HighsCutGeneration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ void HighsCutGeneration::separateLiftedKnapsackCover() {
}

bool HighsCutGeneration::separateLiftedMixedBinaryCover() {
// initialize indicators
integralSupport = false;
integralCoefficients = false;

HighsInt coversize = cover.size();
std::vector<double> S;
S.resize(coversize);
Expand Down Expand Up @@ -275,6 +279,10 @@ bool HighsCutGeneration::separateLiftedMixedBinaryCover() {
}

bool HighsCutGeneration::separateLiftedMixedIntegerCover() {
// initialize indicators
integralSupport = false;
integralCoefficients = false;

HighsInt coversize = cover.size();

HighsInt l = -1;
Expand Down Expand Up @@ -501,6 +509,10 @@ bool HighsCutGeneration::cmirCutGenerationHeuristic(double minEfficacy,
using std::max;
using std::sqrt;

// initialize indicators
integralSupport = false;
integralCoefficients = false;

double continuouscontribution = 0.0;
double continuoussqrnorm = 0.0;

Expand Down
10 changes: 6 additions & 4 deletions src/simplex/HEkk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4422,12 +4422,14 @@ void HEkk::unitBtranResidual(const HighsInt row_out, const HVector& row_ep,
void HighsSimplexStats::report(FILE* file, std::string message) const {
fprintf(file, "\nSimplex stats: %s\n", message.c_str());
fprintf(file, " valid = %d\n", this->valid);
fprintf(file, " iteration_count = %d\n", this->iteration_count);
fprintf(file, " num_invert = %d\n", this->num_invert);
fprintf(file, " iteration_count = %d\n",
static_cast<int>(this->iteration_count));
fprintf(file, " num_invert = %d\n",
static_cast<int>(this->num_invert));
fprintf(file, " last_invert_num_el = %d\n",
this->last_invert_num_el);
static_cast<int>(this->last_invert_num_el));
fprintf(file, " last_factored_basis_num_el = %d\n",
this->last_factored_basis_num_el);
static_cast<int>(this->last_factored_basis_num_el));
fprintf(file, " col_aq_density = %g\n", this->col_aq_density);
fprintf(file, " row_ep_density = %g\n", this->row_ep_density);
fprintf(file, " row_ap_density = %g\n", this->row_ap_density);
Expand Down

0 comments on commit 876c828

Please sign in to comment.