I run your code with a call to glp_write_lp added. Below here is your instance passed to glp_simplex in cplex format:
\* Problem: sample *\ Maximize obj: 0 x1 Subject To p: + x4 + x3 + x2 + x1 <= 5 q: - x2 + 10 x1 <= 5 r: - 2 x3 + x2 <= 5 o: - 0.5 x4 + 2 x3 = 1 Bounds 0 <= x1 <= 1 0 <= x2 <= 1 0 <= x3 <= 1 0 <= x4 <= 1 Generals x1 x2 x3 x4 End _______________________________________________ Help-glpk mailing list Help-glpk@gnu.org http://lists.gnu.org/mailman/listinfo/help-glpk