Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Feb 9, 2024
1 parent 726b155 commit d6b0c33
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/cpp/benders/benders_core/BendersBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,18 @@ BendersBase::BendersBase(BendersBaseOptions options, Logger logger,
* \brief Initialize set of data used in the loop
*/
void BendersBase::init_data() {
_data.lb = -1e20;
_data.ub = +1e20;
_data.best_ub = +1e20;
_data.lb = relevantIterationData_.last._lb = -1e20;
_data.ub = relevantIterationData_.last._ub = +1e20;
_data.best_ub = relevantIterationData_.last._best_ub = +1e20;
_data.stop = false;
_data.it = 0;
_data.overall_subpb_cost_under_approx = 0;
_data.invest_cost = 0;
_data.invest_cost = relevantIterationData_.last._invest_cost = 0;
_data.best_it = 0;
_data.stopping_criterion = StoppingCriterion::empty;
_data.is_in_initial_relaxation = false;
_data.cumulative_number_of_subproblem_solved = 0;
relevantIterationData_.best = relevantIterationData_.last;
}

void BendersBase::OpenCsvFile() {
Expand Down

0 comments on commit d6b0c33

Please sign in to comment.