| 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 { |
nothing calls this directly
no test coverage detected