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

Method initial_primal_point

interfaces/Python/cpp_classes/PythonModel.cpp:292–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290 }
291
292 void PythonModel::initial_primal_point(Vector<double>& x) const {
293 std::copy_n(this->user_model.initial_primal_iterate.begin(), this->user_model.number_variables, x.begin());
294 }
295
296 void PythonModel::initial_dual_point(Vector<double>& multipliers) const {
297 std::copy_n(this->user_model.initial_dual_iterate.begin(), this->user_model.number_constraints, multipliers.begin());

Callers

nothing calls this directly

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected