help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] implementing constraints in Scala


From: Xypron
Subject: Re: [Help-glpk] implementing constraints in Scala
Date: Mon, 01 Aug 2011 19:13:05 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Icedove/3.1.11

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?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]