Hi experts, I have just started doing optimization in the problem-based workflow. I refer to this documentation page, in order to formulate my own Non-Linear Objective function.
But when I run the following code,
It produces the following error.
Undefined operator '.^' for input arguments of type 'optim.problemdef.OptimizationExpression'.
I am using MATLAB R2018a. My actual objective function expression is a bit complicated and I need to understand this error before I proceed further.
Your help will be highly appreciated. Thanks in advance!