Re: [Help-glpk] the API of GLPK, add_cols problem

2009-08-29 Thread Andrew Makhorin
> 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

[Help-glpk] the API of GLPK, add_cols problem

2009-08-29 Thread bo liu
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_