summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
97503f9)
glpk aborts if "0" rows are added, skip over the call.
Signed-off-by: Benjamin Poirier <benjamin.poirier@polymtl.ca>
// Create the LP problem
glp_term_out(GLP_OFF);
// Create the LP problem
glp_term_out(GLP_OFF);
- glp_add_rows(lp, hullPointNb);
+ if (hullPointNb > 0)
+ {
+ glp_add_rows(lp, hullPointNb);
+ }
glp_add_cols(lp, 2);
glp_set_col_name(lp, 1, "a0");
glp_add_cols(lp, 2);
glp_set_col_name(lp, 1, "a0");