| 229 | } |
| 230 | |
| 231 | HighsHessian 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 | |
| 248 | void testUserScale(Highs& h) { |
| 249 | h.setOptionValue("user_objective_scale", 0); |