diff --git a/src/math/simplex/model_based_opt.cpp b/src/math/simplex/model_based_opt.cpp index 8b8f82a3157..0223e8bff83 100644 --- a/src/math/simplex/model_based_opt.cpp +++ b/src/math/simplex/model_based_opt.cpp @@ -981,7 +981,7 @@ namespace opt { lub_rows.reset(); glb_rows.reset(); mod_rows.reset(); - bool lub_is_unit = false, glb_is_unit = false; + bool lub_is_unit = true, glb_is_unit = true; unsigned eq_row = UINT_MAX; // select the lub and glb. for (unsigned row_id : row_ids) {