How can I solve the error of {Undefined operator '.^' for input arguments of type 'optim.problemdef.OptimizationExpression'}?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sedi Ghan
am 19 Okt. 2019
Beantwortet: Walter Roberson
am 19 Okt. 2019
Hi,
I am running a Matlab Optimization Problem example as explained here, using MATLAB R2017b version :
But I receive the folowing error:
Undefined operator '.^' for input arguments of type 'optim.problemdef.OptimizationExpression'.
Can anyone help with a hint about how to solve it?
Thank you!
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 19 Okt. 2019
You cannot fix that problem in that release. The first release or two of Problem Based Optimization supported only linear problems. Then support for quadratic programming was added if I recall correctly: until that was added, .^ would have produced systems that the solver could not deal with.
I have not checked recently to see if support for higher powers has been added.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Optimization Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!