Skip to content

Commit 02280e3

Browse files
committed
First progress with LS
1 parent 7608f4c commit 02280e3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

uno/ingredients/globalization_mechanisms/BacktrackingLineSearch.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ namespace uno {
9191
UserCallbacks& user_callbacks) const {
9292
double step_length = 1.;
9393
bool termination = false;
94+
bool in_soc = false;
9495
size_t number_iterations = 0;
9596
while (!termination) {
9697
++number_iterations;
@@ -124,6 +125,12 @@ namespace uno {
124125
GlobalizationMechanism::set_dual_residuals_statistics(statistics, trial_iterate);
125126
if (Logger::level == INFO) statistics.print_current_line();
126127
}
128+
// from here on, the trial iterate was rejected
129+
else if (number_iterations == 1) {
130+
// enter second-order corrections
131+
in_soc = true;
132+
WARNING << "Entering second-order corrections\n";
133+
}
127134
else if (step_length >= this->minimum_step_length) {
128135
step_length = this->decrease_step_length(step_length);
129136
evaluation_cache.trial_evaluations.reset();

0 commit comments

Comments
 (0)