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

Method initial_dual_point

interfaces/Python/cpp_classes/PythonModel.cpp:296–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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());
298 if (this->user_model.lagrangian_sign_convention == UNO_MULTIPLIER_POSITIVE) {
299 multipliers.scale(-1.);
300 }
301 }
302
303 void PythonModel::postprocess_solution(Iterate& /*iterate*/) const {
304 // do nothing

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
scaleMethod · 0.45

Tested by

no test coverage detected