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

Method number_hessian_nonzeros

interfaces/Python/cpp_classes/PythonModel.cpp:311–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected