[Scip] Matlab, Opti toolbox and SCIP
Marc Pfetsch
pfetsch at mathematik.tu-darmstadt.de
Wed Dec 3 14:52:18 CET 2014
Hi Cristiano,
have you followed the instructions/example at
http://www.i2c2.aut.ac.nz/Wiki/OPTI/index.php/Probs/MINLP ?
In the examples there, you only need to form an expression using
variables which you access as x(k). It should not be necessary for you
to deal with scipvar objects. Moreover, it is not possible to convert
this pointer to double (pointer).
In case you think that the problem lies in the Opti toolbox, please
contact its developers. They should be able to answer questions
regarding the toolbox. Moreover, it would be good if you can provide
them a short example that illustrates the problem.
Best
Marc
On 12/02/2014 04:56 PM, Cristiano Arbex wrote:
> 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.
>
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
>
More information about the Scip
mailing list