Hello Onor,

you can save the whole model to a file (using glp_write_lp() or glp_write_prob()) and then print the file.

When you use glp_set_col_bnds() or glp_set_row_bnds to set the lower bound (GLP_LO), the upper bound is set to infinity.

You can use glp_get_row_lb(), glp_get_row_ub(), glp_get_col_lb(), glp_get_col_ub() for retrieving the bounds.

Please, study glpk-4.45/doc/glpk.pdf available in the source distribution of GLPK:
ftp://ftp.gnu.org/gnu/glpk/glpk-4.45.tar.gz

Best regards

Xypron.

On 01.08.2011 10:26, name name wrote:
How can I print hole model, objective + constrains ?
Set the uper bount to infinity and get uper/lower bount of a variable?



_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to