Undefined function or variable 'fcn2optimexpr'.

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)

No, that is new in R2019a.

2 Comments

Thanks for your response.
Can you suggest an alternative of fcn2optimexpr that I can use in 2018b?
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.

Sign in to comment.

Asked:

on 6 May 2019

Commented:

on 6 May 2019

Community Treasure Hunt

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

Start Hunting!