| 314 | } |
| 315 | |
| 316 | void semiModel0(HighsLp& lp) { |
| 317 | lp.num_col_ = 4; |
| 318 | lp.num_row_ = 4; |
| 319 | lp.col_cost_ = {1, 2, -1, -3}; |
| 320 | lp.col_lower_ = {0, 0, 1.1, 0}; |
| 321 | lp.col_upper_ = {inf, inf, inf, inf}; |
| 322 | lp.row_lower_ = {-inf, 0, 0, 0.5}; |
| 323 | lp.row_upper_ = {5, inf, inf, inf}; |
| 324 | lp.a_matrix_.start_ = {0, 3, 6, 7, 8}; |
| 325 | lp.a_matrix_.index_ = {0, 1, 2, 0, 1, 2, 3, 3}; |
| 326 | lp.a_matrix_.value_ = {1, 2, -1, 1, -1, 3, 1, 1}; |
| 327 | lp.a_matrix_.format_ = MatrixFormat::kColwise; |
| 328 | lp.sense_ = ObjSense::kMaximize; |
| 329 | lp.integrality_ = {continuous, continuous, semi_continuous, continuous}; |
| 330 | } |
| 331 | |
| 332 | TEST_CASE("3015", "[highs_test_semi_variables]") { |
| 333 | std::string filename; |