help-glpk
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Help-glpk] the API of GLPK, add_cols problem
From
:
bo liu
Subject
:
[Help-glpk] the API of GLPK, add_cols problem
Date
:
Sat, 29 Aug 2009 22:09:43 +0800
hello everyone,
I have some questions about GLPK through the API.
I have a variable like this : 2<=x<=5 ,through API, I write it like this:
glp_add_cols(lp,1);
glp_set_col_name(lp,1,"x");
glp_set_col_bnds(lp,1,GLP_LO,2.0,0.0);
glp_set_col_bnds(lp,1,GLP_UP,0.0,5.0);
or like this:
glp_add_cols(lp,2);
glp_set_col_name(lp,1,"x");
glp_set_col_name(lp,2,"x");
glp_set_col_bnds(lp,1,GLP_LO,2.0,0.0);
glp_set_col_bnds(lp,2,GLP_UP,0.0,5.0);
which is right?
i do not know add 1 cols or add 2 cols .
thanks very much!
--
LEO
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Help-glpk] the API of GLPK, add_cols problem
,
bo liu
<=
Re: [Help-glpk] the API of GLPK, add_cols problem
,
Andrew Makhorin
,
2009/08/29
Prev by Date:
[Help-glpk] Get objective coefficients sensitivity bounds
Next by Date:
Re: [Help-glpk] the API of GLPK, add_cols problem
Previous by thread:
[Help-glpk] Get objective coefficients sensitivity bounds
Next by thread:
Re: [Help-glpk] the API of GLPK, add_cols problem
Index(es):
Date
Thread