[Cmpl] Can't find cmsg file std::bad_alloc

mike.steglich at th-wildau.de mike.steglich at th-wildau.de
Mon Nov 20 05:33:07 EST 2017


Hi Thomas,

 

Hmm, I am not sure what happend. Could you send the Cmpl and the Java file directly to me -> mike.steglich at th-wildau.de?

 

Thanks,

 

Mike 

 

Von: Cmpl [mailto:cmpl-bounces at coin-or.org] Im Auftrag von Thomas Stahl
Gesendet: Sonntag, 19. November 2017 17:06
An: cmpl at list.coin-or.org
Betreff: [Cmpl] Can't find cmsg file std::bad_alloc

 

Hello, 

first of all, thanks for the powerfull free coin project. I'm using it to create and solve a rather big scheduling problem within my master thesis but there are some heavy problems with one ("rather simple") constraint. 

 

The thrown problem is: 

 

Model> This application has requested the Runtime to terminate it in an unusual way.
Model> Please contact the application's support team for more information.
Model> terminate called after throwing an instance of 'std::bad_alloc'
Model> what():  std::bad_alloc

 

Together with this message, usually an exception of type "FileNotFound" is thrown, jCmpl can't find the message (and in other cases) the solution file. 

The causing constraint is: 

for{p in PERSONAL, s in SCHICHTEN, ss in SCHICHTEN, t in TAGE, tt in TAGE : 
        if{ (s = "IOPL") && (ss = "A73")  && (t > 6) && (tt = t-6) : 
res37:         x[p,s,tt] <= x[p,ss,t] + vIOPL[p,t];
        }
    }

 

x is a binary decision variable, 

vIOPL also is a binary decision variable

TAGE is an integer set 0..42

SCHICHTEN is a string set with different shift names (about 30) 

PERSONAL is a string set as well (about 31) 

 

The Model itself is created in an .cmpl file, the data is passed via the jCmpl package. 

Until this constraint everything worked fine - multiple times, but everytime i put the previously mentioned constraint into the model, 

 - the solver cant create the model and cant find the .cmsg file

 

If I exchange the vIOPL with a simple 1 hardcoded

- the solver can create the model but fails to find the .csol file after "terminating in an unusual way"

 

I'd appreciate your help very much, let me know if you need any more information like the whole model, the java code or anything else. 

Thanks in advance and best regards, 

Thomas Stahl

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cmpl/attachments/20171120/27c67a3e/attachment.html>


More information about the Cmpl mailing list