New INstallation of MatLAb Student, error when I try to run an example linopt::minimize from the documentation
Show older comments
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)
Walter Roberson
on 12 Nov 2013
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'))
Categories
Find more on Get Started with MuPAD in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!