MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / readOptions

Method readOptions

highs/lp_data/Highs.cpp:181–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181HighsStatus Highs::readOptions(const std::string& filename) {
182 if (filename.size() <= 0) {
183 highsLogUser(options_.log_options, HighsLogType::kWarning,
184 "Empty file name so not reading options\n");
185 return HighsStatus::kWarning;
186 }
187 HighsLogOptions report_log_options = options_.log_options;
188 switch (loadOptionsFromFile(report_log_options, options_, filename)) {
189 case HighsLoadOptionsStatus::kError:
190 case HighsLoadOptionsStatus::kEmpty:
191 return HighsStatus::kError;
192 default:
193 break;
194 }
195 return optionChangeAction();
196}
197
198HighsStatus Highs::passOptions(const HighsOptions& options) {
199 if (passLocalOptions(options_.log_options, options, options_) ==

Callers 2

Highs_readOptionsFunction · 0.80
TestOptions.cppFile · 0.80

Calls 3

highsLogUserFunction · 0.85
loadOptionsFromFileFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected