Skip to content

Commit

Permalink
add Iteration Num (#949)
Browse files Browse the repository at this point in the history
in LOLD and PositiveUnsupliedEnergy files
  • Loading branch information
a-zakir authored Oct 14, 2024
1 parent bbf7c19 commit c5dde68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cpp/benders/benders_core/include/BendersMathLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ struct MathLoggerExternalLoopSpecific : public MathLogger {
T OuterLoopCurrentIterationData::*ptr)
: MathLogger(file_path), ptr_(ptr) {
headers_.push_back("Outer loop");
headers_.push_back("Ite");
headers_.insert(headers_.end(), headers.begin(), headers.end());
}

Expand Down Expand Up @@ -206,6 +207,7 @@ template <class T>
void MathLoggerExternalLoopSpecific<T>::Print(
const CurrentIterationData& data) {
LogsDestination() << data.outer_loop_current_iteration_data.benders_num_run;
LogsDestination() << data.it;
for (const auto& t : data.outer_loop_current_iteration_data.*ptr_) {
LogsDestination() << std::scientific << std::setprecision(10) << t;
}
Expand Down

0 comments on commit c5dde68

Please sign in to comment.