File tree Expand file tree Collapse file tree
src/cpp/benders/benders_sequential Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments