[Cmpl-tickets] [CMPL - COIN Mathematical Programming Language] #1: A possible bug

CMPL - COIN Mathematical Programming Language coin-trac at coin-or.org
Sat Jan 4 10:11:11 EST 2014


#1: A possible bug
-------------------------+----------------------
  Reporter:  schuente    |      Owner:  somebody
      Type:  defect      |     Status:  new
  Priority:  major       |  Milestone:
 Component:  component1  |    Version:
Resolution:              |   Keywords:
-------------------------+----------------------

Comment (by stegger):

 Hi,

 This isn't a bug. For objective functions and constraints divisions are
 not permitted in the current version. Please use the opportunities of the
 parameters section to manipulate parameters.
 But is planned to allow such things in CMPLv2.0

 Cheers,
 Mike

 Replying to [ticket:1 schuente]:
 > Encountered a possible bug. See the last 2 lines, which contains
 comment.
 > ---------
 > %arg syntax
 >
 > parameters:
 >
 > numStaff := 30;
 > numDayInCycle := 21;
 >
 > S := 1..numStaff;
 > D := 1..numDayInCycle;
 >
 > variables:
 > n[S]: binary;
 > z[S,D]: binary;
 >
 > objectives:
 > numstaff: sum{s in S: n[s]} -> min;
 >
 >
 > constraints:
 > {s in S: sum{d in D: z[s,d]} <= n[s]*1 ;} #this is ok
 > {s in S: sum{d in D: z[s,d]} <= n[s] / 1 ;} #error

--
Ticket URL: <https://projects.coin-or.org/Cmpl/ticket/1#comment:1>
CMPL - COIN Mathematical Programming Language <https://projects.coin-or.org/Cmpl>
CMPL (COIN Mathematical Programming Language) is a mathematical programming language and a system for modelling, solving and analysing linear programming (LP) problems and mixed integer programming (MIP) problems.



More information about the Cmpl-tickets mailing list