New INstallation of MatLAb Student, error when I try to run an example linopt::minimize from the documentation

I am typing in the first example from the linopt:minimize documentation, and I get an error. Does this mean that my student version can't run the optimizer?
EDU>> clear all
EDU>> linopt::minimize([{c1+c2<=3, c2 <=9}, -c1 - c2])
linopt::minimize([{c1+c2<=3, c2 <=9}, -c1 - c2])
|
Error: Unexpected MATLAB operator.

Answers (1)

The command you found is for MuPAD, the symbolic engine used by the Symbolic Toolbox. You need to call the symbolic engine in order to use it.
feval(symengine, 'linopt::minimize', {sym('c1+c2<=3'), sym('c2<=9')}, sym('-c1 - c2'))

1 Comment

Hi Walter, unfortunately, I am a complete newbie to Matlab and wasn't able to get this to work either. I entered the command exactly as you had typed into the regular matlab command window, and I still get an error:
EDU>> feval(symengine, 'linopt::minimize', {sym('c1+c2<=3'), sym('c2<=9')}, sym('-c1 - c2')) Error using mupadengine/feval (line 157) MuPAD error: Error: A list is expected. The 'DualPrices' option can also be used. [linopt::minimize]
Am I supposed to enter this command into a MuPAD notebook? I get nothing at all if I enter it in the MuPAD window.
Thanks for the help, Lance

Sign in to comment.

Products

Asked:

on 12 Nov 2013

Commented:

on 13 Nov 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!