> How do I express the following semi-continuous variable x in GLPK: > 5 * z <= x <= 10 * z
> I cannot just do: > glp_set_col_kind(lp, z, GLP_BV); > glp_set_col_kind(lp, x, GLP_CV); > glp_set_col_bnds(lp, x, GLP_DB, z*5.0, z*10.0); You need to create two inequality constraints: x - 5 * z >= 0 x - 10 * z <= 0 _______________________________________________ Help-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk
