bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Cedric[FR]
Subject: Re: [Bug-glpk] Problem in the MIP problem
Date: Fri, 17 Oct 2008 18:19:32 +0300



> 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 <= Yi0_copy <= 1

It is strange, because glp_write_lp (lpx_write_cpxlp) writes fixed
variables as <varname> = <fixed value>; it writes both bounds only if
the variable is double-bounded.


I test variable sense after this command
glp_set_col_bnds(glpkProbPtr,id+1,GLP_FX,dlb[id],dub[id]) and this test show
that variables are double-bounded instead of fixed

The problem maybe the fact that, at the origin, variables are declared
GLP_DB. Then after, they are declared GLP_FX creating the bug.


-- 
View this message in context: 
http://www.nabble.com/Problem-in-the-MIP-problem-tp20030554p20032659.html
Sent from the Gnu - GLPK - Bugs mailing list archive at Nabble.com.








reply via email to

[Prev in Thread] Current Thread [Next in Thread]