MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / changeObjectiveOffset

Method changeObjectiveOffset

highs/lp_data/Highs.cpp:2921–2927  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2919}
2920
2921HighsStatus Highs::changeObjectiveOffset(const double offset) {
2922 // Update the objective value
2923 info_.objective_function_value += (offset - model_.lp_.offset_);
2924 model_.lp_.offset_ = offset;
2925 presolved_model_.lp_.offset_ += offset;
2926 return returnFromHighs(HighsStatus::kOk);
2927}
2928
2929HighsStatus Highs::changeColIntegrality(const HighsInt col,
2930 const HighsVarType integrality) {

Callers 3

test_basicsMethod · 0.45
setObjectiveMethod · 0.45
TestQpSolver.cppFile · 0.45

Calls

no outgoing calls

Tested by 1

test_basicsMethod · 0.36