Re: [Bug-glpk] Problem in the MIP problem

2008-10-27 Thread Andrew Makhorin
>> I check my code and I resolve my problem. But, an other problem appear. >> >> When I fix a variable at one, and after, I define the type as binary, then >> the lower bound is 0 instead of 1. >> >> I resolve this problem in declaring variables as integer. But, why >> glp_set_col_kind redefine t

Re: [Bug-glpk] Problem in the MIP problem

2008-10-27 Thread Cedric[FR]
Andrew Makhorin wrote: > >>> I don't use functions glp_read_lp or glp_read_cpxlp. > >>> And, I use GLP_FX (not GLP_DB) to fix bounds for the first variable. > >>> So, I don't understand. > >>> And, when I use lpx_write_cpxlp, I obtain this result. > >>> The problem is that variables aren't

Re: [Bug-glpk] Problem in the MIP problem

2008-10-27 Thread Cedric[FR]
Andrew Makhorin wrote: > >> Hmm... There is something wrong. Please print the type and bounds >> of the variable reported by glp_get_col_type, glp_get_col_lb, and >> glp_get_col_ub immediately after glp_set_col_bnds(... GLP_FX ...). >> The type reported must be GLP_FX = 5. If not, please check y

Re: [Bug-glpk] Problem in the MIP problem

2008-10-17 Thread Andrew Makhorin
>> I don't use functions glp_read_lp or glp_read_cpxlp. >> And, I use GLP_FX (not GLP_DB) to fix bounds for the first variable. >> So, I don't understand. >> And, when I use lpx_write_cpxlp, I obtain this result. >> The problem is that variables aren't integer and the first variable bound >> is

Re: [Bug-glpk] Problem in the MIP problem

2008-10-17 Thread Cedric[FR]
> I don't use functions glp_read_lp or glp_read_cpxlp. > And, I use GLP_FX (not GLP_DB) to fix bounds for the first variable. > So, I don't understand. > And, when I use lpx_write_cpxlp, I obtain this result. > The problem is that variables aren't integer and the first variable bound > is >

Re: [Bug-glpk] Problem in the MIP problem

2008-10-17 Thread Andrew Makhorin
> I don't use functions glp_read_lp or glp_read_cpxlp. > And, I use GLP_FX (not GLP_DB) to fix bounds for the first variable. > So, I don't understand. > And, when I use lpx_write_cpxlp, I obtain this result. > The problem is that variables aren't integer and the first variable bound is > displ

Re: [Bug-glpk] Problem in the MIP problem

2008-10-17 Thread Cedric[FR]
I don't use functions glp_read_lp or glp_read_cpxlp. And, I use GLP_FX (not GLP_DB) to fix bounds for the first variable. So, I don't understand. And, when I use lpx_write_cpxlp, I obtain this result. The problem is that variables aren't integer and the first variable bound is displayed as 1 <

Re: [Bug-glpk] Problem in the MIP problem

2008-10-17 Thread Andrew Makhorin
> in particular, in the cplex lp file Yi0_copy should be > specified as follows: > Bounds > Yi0_copy = 1 This is not necessary, because glp_read_lp correctly set the types of variables having identical lower and upper bounds to GLP_FX. ___ Bug-glpk

Re: [Bug-glpk] Problem in the MIP problem

2008-10-17 Thread Andrew Makhorin
> I have a problem for integer variables with a lower bound equal at upper > bound. > I obtain this error message: > lpx_intopt: column 1 has incorrect bounds > My problem is: > PROBLEM: spConf_ whose formulation ref number is 1 > Minimize > Objectif: -11.6667 Yi0_copy -11.6667 Yi1_copy -5 Yi2

[Bug-glpk] Problem in the MIP problem

2008-10-17 Thread Cedric[FR]
Hi, I have a problem for integer variables with a lower bound equal at upper bound. I obtain this error message: lpx_intopt: column 1 has incorrect bounds My problem is: PROBLEM: spConf_ whose formulation ref number is 1 Minimize Objectif: -11.6667 Yi0_copy -11.6667 Yi1_copy -5 Yi2_copy -5