Opened 5 years ago

Closed 8 weeks ago

#138 closed defect (migrated)

writeMps() bug?

Reported by: AndreasM Owned by: tkr
Priority: minor Component: Cbc
Version: 2.7 Keywords:
Cc:

Description

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.

Change History (1)

comment:1 Changed 8 weeks ago by stefan

  • Resolution set to migrated
  • Status changed from new to closed

This ticket has been migrated to GitHub and will be resolved there: https://github.com/coin-or/Cbc/issues/138

Note: See TracTickets for help on using tickets.