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

Function hessian

check/TestUserScale.cpp:231–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231HighsHessian hessian(const double value) {
232 // Together with lp1:
233 //
234 // Optimal minimizer is [3B, 3B] so, if this should scale with B and
235 // test the scaling bounds down scenario
236 //
237 // Optimal maximizer is [b, b] so, if b and B are small (but bigger
238 // than B) this should test the "all small bounds" scaled up
239 // scenario
240 HighsHessian hessian;
241 hessian.dim_ = 2;
242 hessian.start_ = {0, 1, 2};
243 hessian.index_ = {0, 1};
244 hessian.value_ = {value, 2 * value};
245 return hessian;
246}
247
248void testUserScale(Highs& h) {
249 h.setOptionValue("user_objective_scale", 0);

Callers 1

testQpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected