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 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to