| 909 | } |
| 910 | |
| 911 | void rowlessMIP1(Highs& highs) { |
| 912 | HighsLp lp; |
| 913 | HighsModelStatus require_model_status; |
| 914 | double optimal_objective; |
| 915 | lp.num_col_ = 2; |
| 916 | lp.num_row_ = 0; |
| 917 | lp.col_cost_ = {1, -1}; |
| 918 | lp.col_lower_ = {0, 0}; |
| 919 | lp.col_upper_ = {1, 1}; |
| 920 | lp.a_matrix_.start_ = {0, 0, 0}; |
| 921 | lp.a_matrix_.format_ = MatrixFormat::kColwise; |
| 922 | lp.sense_ = ObjSense::kMinimize; |
| 923 | lp.offset_ = 0; |
| 924 | lp.integrality_ = {HighsVarType::kInteger, HighsVarType::kInteger}; |
| 925 | require_model_status = HighsModelStatus::kOptimal; |
| 926 | optimal_objective = -1.0; |
| 927 | REQUIRE(highs.passModel(lp) == HighsStatus::kOk); |
| 928 | // Presolve reduces the LP to empty |
| 929 | solve(highs, kHighsOnString, require_model_status, optimal_objective); |
| 930 | // solve(highs, kHighsOffString, require_model_status, optimal_objective); |
| 931 | } |
| 932 | |
| 933 | void rowlessMIP2(Highs& highs) { |
| 934 | HighsLp lp; |
no test coverage detected