Undefined function or variable 'fcn2optimexpr'.
Show older comments
Hi All,
I am new to MATLAB and I am using the problem-based approach to solve my optimization problem.
I tried to use the "fcn2optimexpr" function to convert my objective funtion into optimization expression. But getting the following error: "Undefined function or variable 'fcn2optimexpr'."
I am using MATLAB 2018b. Is it not included in the 2018b version?
Thanks in advance.
Answers (1)
Walter Roberson
on 6 May 2019
0 votes
No, that is new in R2019a.
2 Comments
Mitali Sinha
on 6 May 2019
Walter Roberson
on 6 May 2019
There isn't one. You have to know how problem based queries are structured and you have to understand older style routines and you have to probe the information in the problem based approach to figure out how to represent it.
If I recall correctly the problem based approach calls different internal routines (that perhaps call some routines in common) rather than take the approach of calling an internal conversion function and then call the older routines with that problem structure.
Categories
Find more on Improve Problem-Based Organization and Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!