[Cbc-tickets] [COIN-OR Branch-and-Cut MIP Solver] #138: writeMps() bug?
COIN-OR Branch-and-Cut MIP Solver
coin-trac at coin-or.org
Wed Nov 13 05:31:54 EST 2013
#138: writeMps() bug?
---------------------+-----------------
Reporter: AndreasM | Owner: tkr
Type: defect | Status: new
Priority: minor | Component: Cbc
Version: 2.7 | Keywords:
---------------------+-----------------
I am quite new to coin-or, so I might be wrong, yet there seems to be a
bug regarding the writeMps() method.
Scenario:
My objective function a quite simple minimization problem over a number of
days, where I'd like to choose the earliest periods for each day. (Min Z =
sum_days sum_periods p * choose_d,p )
For 2 days and 2 periods with indices {0,1}, that would equal 4 column
with values {0,1,0,1}
The model works fine, yet when I try to print write the model to an mps
file, the first column is omitted. Thus, reading it later will create
another (incorrect) answer.
As the model is so simple, I just modified the coefficient to (p+1) as
soon as I found the reason my answers were all wrong, yet I thought I'd at
least should at least report this incident as a bug.
--
Ticket URL: <https://projects.coin-or.org/Cbc/ticket/138>
COIN-OR Branch-and-Cut MIP Solver <http://projects.coin-or.org/Cbc>
An LP-based branch-and-cut MIP solver.
More information about the Cbc-tickets
mailing list