[Cbc] [cbc][2.9.9]Semis section in lp file or MPS file leading to a crash

richi arora richi_arora_ra at yahoo.co.in
Mon Jan 15 07:17:43 EST 2018


HiI am using version 2.9.9 of cbc in ubuntu 17.10 docker image. My test.lp file has following content:Maximize
 obj: x1 + 2 x2 + 3 x3 + x4
Subject To
 c1: - x1 + x2 + x3 + 10 x4 <= 20
 c2: x1 - 3 x2 + x3 <= 30
 c3: x2 - 3.5 x4 = 0
Bounds
 0 <= x1 <= 40
 2 <= x4 <= 3
General
 x4
Semis
 x1 x2 x3
When trying with semis section i get error "terminate called after throwing an instance of 'CoinError?' Aborted"

on mac i get: libc++abi.dylib: terminating with uncaught exception of type CoinError? Abort trap: 6

However if I comment out Semis it works fine. I was hoping that Semis are supported. Am I doing something wrong?

My command is : cbc -presolve on -import test.lp solve solu out.txt

On further analysis i found out when in cbc prompt i type "import test.lp" it fails and shows same error is
I tried in MPS format as well there i got Bad image at line 19 <  SC BND1      YTWO                 3 >
Contents of mps file are : 
NAME          TESTPROB

ROWS

 N  COST

 L  LIM1

 G  LIM2

 E  MYEQN

COLUMNS

    XONE      COST                 1   LIM1                 1

    XONE      LIM2                 1

    YTWO      COST                 4   LIM1                 1

    YTWO      MYEQN               -1

    ZTHREE    COST                 9   LIM2                 1

    ZTHREE    MYEQN                1

RHS

    RHS1      LIM1                 5   LIM2                10

    RHS1      MYEQN                7

BOUNDS

 UP BND1      XONE                 4

 SC BND1      YTWO                 3

ENDATA


ThanksRichi Arora
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20180115/b3f2494d/attachment.html>


More information about the Cbc mailing list