Skip to content
Snippets Groups Projects

Added error checking on linesearch

Merged Boris Martin requested to merge fixNoLS into master
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
@@ -79,6 +79,13 @@ namespace classic
@@ -79,6 +79,13 @@ namespace classic
msg::print << "Search minimum (classic)" << msg::endl;
msg::print << "Search minimum (classic)" << msg::endl;
msg::indent();
msg::indent();
 
if (!linesearch) {
 
throw Exception("No linesearch provided.");
 
}
 
if (!descentsearch) {
 
throw Exception("No descentsearch provided.");
 
}
 
descentsearch->initialize(functional);
descentsearch->initialize(functional);
std::vector<LocalMinimumSearchHistoryLine2> historyline;
std::vector<LocalMinimumSearchHistoryLine2> historyline;
Loading