> I solve lp problem ans I got status of solution 0 when it found the > optimal solution ans alos i got 0 when the "problem has unbounded > solution" > > How can I knew whit status if it has an optimal solution or not? > > > parm = new glp_smcp() > glp_init_smcp(parm) > status = GLPK.glp_simplex(lp, parm) >
You need to use glp_get_status. The zero code returned by glp_simplex only means that the solution process was successful; it is not a solution status. _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
