| 309 | } |
| 310 | |
| 311 | size_t PythonModel::number_hessian_nonzeros() const { |
| 312 | if (this->user_model.number_hessian_nonzeros.has_value()) { |
| 313 | return static_cast<size_t>(*this->user_model.number_hessian_nonzeros); |
| 314 | } |
| 315 | else { |
| 316 | throw std::runtime_error("The number of Hessian nonzeros is not available in UnoModel"); |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | size_t PythonModel::number_model_objective_evaluations() const { |
| 321 | return this->number_model_evaluations.objective; |
no outgoing calls
no test coverage detected