setting scip as solver

375 views
Skip to first unread message

G

unread,
Feb 18, 2015, 4:01:33 AM2/18/15
to yal...@googlegroups.com
Hi,

i'd like to use scip as solver for some test.

I created a folder and i copied inside the free software downloaded from scip's website. Then I added such folder to my path (as matlablroot,'/toolbox/scipFolder:' in the pathdef.m file)

Inside Matlab i typed

options = sdpsettings('solver','scip')
a = intvar(1,1)
optimize( [ ], a>=0, options)

but the results is a message "Solver not found"


Could you please suggest me a fix?

Johan Löfberg

unread,
Feb 18, 2015, 4:14:52 AM2/18/15
to yal...@googlegroups.com
My guess is that you haven't installed a distribution of SCIP which includes a MATLAB binary (such as the OPTI Toolbox distribution).

If you know you have installed a matlab binary, you have either installed the wrong matlab binary, or failed to add the correct path to the matlab path)

G

unread,
Feb 18, 2015, 4:22:49 AM2/18/15
to yal...@googlegroups.com
I was not aware of the OPTI toolbox.

But I don't want to install the entire tool, just the scip solver

Johan Löfberg

unread,
Feb 18, 2015, 4:24:54 AM2/18/15
to yal...@googlegroups.com
So delete everythting but scip then?

G

unread,
Feb 18, 2015, 4:37:43 AM2/18/15
to yal...@googlegroups.com
Yes, but the opti toolbox folder contains a file opti_scip.m which calls scip.m which is an enpty file (or at least every ine is commented).

So I cannot understand how it works...do you know?

Johan Löfberg

unread,
Feb 18, 2015, 4:39:09 AM2/18/15
to yal...@googlegroups.com
The important file is the binary
>> which scip -all
C
:\work\solvers\OPTI 2\Solvers\scip\scip.mexw64
C
:\work\solvers\OPTI 2\Solvers\scip\scip.m       % Shadowed


G

unread,
Feb 18, 2015, 4:45:29 AM2/18/15
to yal...@googlegroups.com
I looked for the mex file but there isn't in my opti toolbox folder (which i just downloaded!)

Johan Löfberg

unread,
Feb 18, 2015, 4:49:44 AM2/18/15
to yal...@googlegroups.com
From the code above it appears you are on a *nix system. OPTI Toolbox does not supply binaries for those systems, so unless you are capable of compiling your own binaries, you are out of luck,

G

unread,
Feb 18, 2015, 5:03:26 AM2/18/15
to yal...@googlegroups.com
yeah i was about to write the same.

I will try to compile the scip binary :)

Johan Löfberg

unread,
Feb 18, 2015, 5:06:12 AM2/18/15
to yal...@googlegroups.com
Good luck, I suspect it is a formidable task. If you manage, Jonathan might be interested in the build-scipt and generated binaries

G

unread,
Feb 18, 2015, 5:14:48 AM2/18/15
to yal...@googlegroups.com
ok in this case it's quite likely i will switch to some other solver ....

Erling Andersen

unread,
Feb 18, 2015, 10:05:09 AM2/18/15
to yal...@googlegroups.com
MOSEK is free for academics so that might be a choice. 

Disclaimer: I am heavily biased though towards MOSEK since they pay my salary.

G

unread,
Feb 19, 2015, 4:57:46 AM2/19/15
to yal...@googlegroups.com
Actually on my laptop I use to run gurobi, but now that i want to do some test on a different machine, that has a lot of memory and CPUs but it's not connected to the internet, installing gurobi it's a real mess because of their senseless intallation procedure.

Is that easier for mosek ?
Reply all
Reply to author
Forward
0 new messages