[Scip] How to run the program after successful compilation

Stefan Vigerske stefan at math.hu-berlin.de
Fri Dec 25 17:29:57 MET 2009


Hi,

> I tried to develop my own branch and price code which is build based on the code of coloring example in the SCIP distribution. I have compiled the program and shows no debugging errors.  But I do not know how to implement the program. 
> 
> When I run the coloring example ("coloring.mingw32_nt-6.0.x86.gnu.opt.spx"), then it switched to the SCIP window as follows: 
> 
> SCIP version 1.2.0 [precision: 8 byte] [memory: block] [mode: optimized] [LP solver: SoPlex 1.4.2]
> Copyright (c) 2002-2009 Konrad-Zuse-Zentrum fuer Informationstechnik Berlin (ZIB)
> user parameter file <scip.set> not found - using default parameters
> SCIP>
> 
> In this window, I can use "read" command to read an instance and then solve it. 
> 
> 
> But when I implemented my own B&P code, why it did not swithed to a SCIP windows like "SCIP>", instead it stills locate in the root directory of my program ("ndr.mingw32_nt-6.0.x86.gnu.opt.spx") as follows
> 
> C:\mybp>c:\mybp\bin\ndr.mingw32_nt-6.0.x86.gnu.opt.spx
> SCIP version 1.2.0 [precision: 8 byte] [memory: block] [mode: optimized] [LP solver: SoPlex 1.4.2]
> Copyright (c) 2002-2009 Konrad-Zuse-Zentrum fuer Informationstechnik Berlin (ZIB)
> user parameter file <scip.set> not found - using default parameters
> C:\mybp>

Try if you get a SCIP shell if you do not include your own plugins.
If not, then something must have got lost when you modified the coloring
example.

> In "C:\mybp", I tried to implement my program. I should give the following parameters.
> syntax: c:\mybp\bin\ndr.mingw32_nt-6.0.x86.gnu.opt.spx [-l <logfile>] [-q] [-s <settings>] [-f <problem>] [-b <batchfile>] [-c "command"]
>   -l <logfile>  : copy output into log file
>   -q            : suppress screen messages
>   -s <settings> : load parameter settings (.set) file
>   -f <problem>  : load and solve problem file
>   -b <batchfile>: load and execute dialog command batch file (can be used multiple times)
>   -c "command"  : execute single line of dialog commands (can be used multiple times)
> 
> 
> Suppose I want to solve instance "NDR1.txt" in the bin directory, what I should enter in the command lines?   Is the following is correct? 
> c:\mybp\bin\coloring.mingw32_nt-6.0.x86.gnu.opt.spx -l logfile -q -s scip.set  -f NDR1.txt -b batchfile1 -c "command"
> Should I put the instance and the file "coloring.mingw32_nt-6.0.x86.gnu.opt.spx" in the same directory?

c:\mybp\bin\coloring.mingw32_nt-6.0.x86.gnu.opt.spx -f NDR1.txt
where NDR1.txt need to be in the directory from which you execute this
command.

> Can you give some suggestions on the implementation?  

Find out the differences between Coloring/main.c and your code, revert
them step by step, and see at which point things started to break.

Stefan


More information about the Scip mailing list