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

Function rowlessMIP1

check/TestMipSolver.cpp:911–931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909}
910
911void 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
933void rowlessMIP2(Highs& highs) {
934 HighsLp lp;

Callers 1

TestMipSolver.cppFile · 0.85

Calls 2

passModelMethod · 0.80
solveFunction · 0.70

Tested by

no test coverage detected