[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] Problem : lpx_set_col_bnd
From: |
Cedric[FR] |
Subject: |
[Help-glpk] Problem : lpx_set_col_bnd |
Date: |
Thu, 10 May 2007 00:33:39 +0400 |
Hi,
I have a big Problem.
I want changing my bound. but, after have to print bounds' variable, I
obtain an other bound.
My code is :
>for(int id=0;id<ncol;id++){
> lpx_set_col_bnds(glpkProbPtr,id+1,LPX_LO,0.0,0.0);
>}
...
>for (int id=0;id<ncol;id++){
> lpx_set_col_bnds(glpkProbPtr,id+1,LPX_DB,0.,4.);
>}
>for(int id=0;id<ncol;id++)
>
> cout<<"LB= "<<lpx_get_col_lb(glpkProbPtr,id+1)<<" and UB=
> "<<lpx_get_col_ub(glpkProbPtr,id+1)<<endl;
I obtain:
Hi,
I have a big Problem.
I want changing my bound. but, after have to print bounds' variable, I
obtain an other bound.
My code is :
>for(int id=0;id<ncol;id++){
> lpx_set_col_bnds(glpkProbPtr,id+1,LPX_LO,0.0,0.0);
>}
>cout<<"before "<<endl;
>for (int id=0;id<ncol;id++){
> lpx_set_col_bnds(glpkProbPtr,id+1,LPX_DB,0.,4.);
> cout<<"LB= "<<lpx_get_col_lb(glpkProbPtr,bPtr->id+1);
> cout<<" and UB="<<lpx_get_col_ub(glpkProbPtr,bPtr->id+1)<<endl;
>}
>cout<<"after "<<endl;
>for(int id=0;id<ncol;id++)
>
> cout<<"LB= "<<lpx_get_col_lb(glpkProbPtr,id+1)<<" and UB=
> "<<lpx_get_col_ub(glpkProbPtr,id+1)<<endl;
I obtain:
before
LB= 0 and UB= 4
LB= 0 and UB= 4
LB= 0 and UB= 4
after
LB= 0 and UB= 0
LB= 0 and UB= 0
LB= 0 and UB= 0
Why?
Thanks
--
View this message in context:
http://www.nabble.com/Problem-%3A-lpx_set_col_bnd-tf3716979.html#a10398379
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.
- [Help-glpk] Problem : lpx_set_col_bnd,
Cedric[FR] <=