[Scip] Matlab, Opti toolbox and SCIP

Cristiano Arbex crisarbex at gmail.com
Tue Dec 2 16:56:38 CET 2014


Hi, I posted this same question to Stackoverflow with that tag SCIP.

I am using the Opti Toolbox, a free optimization toolbox for Matlab. I am
solving a Mixed Integer Nonlinear Program, a MINLP. Inside the Opti
Toolbox, the MINLP solver used is SCIP.

I define my own objective as a separate function (*fun* argument in Opti),
and this function needs to call other matlab functions which take double
arguments.

The problem is that whenever Opti invokes my function to evaluate the
objective, it first calls it using a vector of '*scipvar*' objects and then
it calls it again using a vector of '*double*' objects. My obj function
does not work with the scipvar objects, it returns an error.

I tried (just for testing) setting the output of my function for something
fixed when the type is '*scipvar*', and for the actual real thing when the
type is '*double*', and this doesn't work, changing the fixed value
actually changes the final optimal value.

I basically need to convert a scipvar object to double, is this possible?
Or is there any other alternative?

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20141202/d1d99f9a/attachment.html>


More information about the Scip mailing list