[Coin-discuss] cbc crashes with -restoreSolution option

Pradeep Singh pradeep.s.rajpoot at gmail.com
Mon Sep 4 03:14:55 EDT 2017


I am using cbc to solve employee scheduling problem. I generate employee
schedules based on demand and available pool of employees.

when an employee does not report to demand location. I regenerate employee
schedule based on existing schedule and new constraints describing
unavailability of a particular employee.

The challenge here is to minimize disruption in the schedule of other
employees when regenerating complete schedule.


My approach to solve this problem
---------------------------------------
step 1) generate employee schedule and save it using "-saveSolution" option

step 2) when employee absense is reported then add new constraint in model
file to describe employee absense

step 3) regenerate employee schedule using new model file and existing
solution provided using "-restoreSolution" option in cbc.


I am able to generate schedule and save it using "-saveSolution".
$ cbc model-guard-3-cbc.lp  -saveSolution sol_3.dat -direction maximize
-solve -solu sol.txt


But I am getting following error when i am trying to regenerate solution
based on new model file and existing solution.
$ cbc model-guard-3-cbc.lp  -restoreSolution sol_3.dat -direction maximize
-solve -solu sol.txt

Welcome to the CBC MILP Solver
Version: 2.9.9
Build Date: Aug 01 2017

command line - cbc model-guard-3-cbc.lp -restoreSolution sol_3.dat
-direction maximize -solve -solu sol.txt (default strategy 1)
 CoinLpIO::readLp(): Maximization problem reformulated as minimization
Aborted (core dumped)


Can anyone suggest me a way to fix this crash ?


Thanks,
Pradeep Singh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20170904/00734080/attachment.html>


More information about the Coin-discuss mailing list