Skip to content

Commit

Permalink
Make tolerances non-const so that HiGHS can set them
Browse files Browse the repository at this point in the history
  • Loading branch information
BenChampion committed Nov 29, 2024
1 parent 5f5511d commit f4d421d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mip/feasibilityjump.hh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ namespace external_feasibilityjump {
double* solution;
};

const double violationTolerance = 1.0e-5;
const double equalityTolerance = 1.0e-5;
double violationTolerance = 1.0e-5;
double equalityTolerance = 1.0e-5;

// Measures if two doubles are equal within a tolerance of 1.0e-5.
bool eq(double a, double b) { return fabs(a - b) < equalityTolerance; }
Expand Down

0 comments on commit f4d421d

Please sign in to comment.