Skip to content

Commit d184e95

Browse files
author
Jason Marechal
committed
Fix: relaxed
1 parent c7c18db commit d184e95

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/cpp/benders/benders_sequential/BendersSequential.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,23 @@ void BendersSequential::launch()
120120
{
121121
InitializeProblems();
122122

123+
// Ensure initial master relaxation is handled in sequential runs the same way
124+
// it is for MPI runs. This triggers the logger call LogAtInitialRelaxation()
125+
// when the options request an initial relaxation.
126+
if (init_data_)
127+
{
128+
// Call shared handler that checks options and logs if needed
129+
HandleInitialMasterRelaxation();
130+
131+
// Write math logger header if available (mirrors MPI behavior)
132+
if (mathLoggerDriver_)
133+
{
134+
mathLoggerDriver_->write_header();
135+
}
136+
137+
init_data_ = false;
138+
}
139+
123140
// Log initialization (include iterations before restart for resume mode)
124141
_logger->log_at_initialization(_data.it + GetNumIterationsBeforeRestart());
125142

0 commit comments

Comments
 (0)