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

Method termination

interfaces/C/Uno_C_API.cpp:365–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363 }
364
365 bool termination(const Vector<double>& primals, const Multipliers& multipliers, double objective_multiplier,
366 double primal_feasibility_residual, double stationarity_residual, double complementarity_residual) override {
367 if (this->termination_callback) {
368 return this->termination_callback(static_cast<uno_int>(primals.size()),
369 static_cast<uno_int>(multipliers.constraints.size()), primals.data(), multipliers.lower_bounds.data(),
370 multipliers.upper_bounds.data(), multipliers.constraints.data(), objective_multiplier, primal_feasibility_residual,
371 stationarity_residual, complementarity_residual, this->user_data) == 0;
372 }
373 else {
374 return false; // no user termination
375 }
376 }
377
378private:
379 uno_notify_acceptable_iterate_callback notify_acceptable_iterate_callback;

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected