MCPcopy Create free account
hub / github.com/cvanaret/Uno / postprocess_solution

Method postprocess_solution

uno/Uno.cpp:233–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231 }
232
233 void Uno::postprocess_solution(const Model& model, Iterate& iterate, Evaluations& evaluations) {
234 try {
235 // in case the objective was not yet evaluated, evaluate it
236 evaluations.evaluate_objective(model, iterate.primals);
237 }
238 catch (const std::exception& e) {
239 DISCRETE << "The objective could not be evaluated at the final iterate: " << e.what() << '\n';
240 evaluations.objective = INF<double>;
241 }
242 model.postprocess_solution(iterate);
243 DEBUG2 << "Final iterate:\n" << iterate;
244 }
245
246 Result Uno::create_result(const Model& model, OptimizationStatus optimization_status, const Iterate& solution,
247 const Evaluations& evaluations, size_t major_iterations, const Timer& timer) const {

Callers

nothing calls this directly

Calls 2

evaluate_objectiveMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected