I am doing a minimization for a function using fmincon.
please see attached function code and solver script.
The objective function is defined as f in line 200.
The constraints matrix also ready [Aeq] in line 203.
The equality vector [beq] is in line 207.
The main function script is working very well.
The problem is that I cannot run the solver. (The solver refers to function code terms as "Undefined function or variable"). As if the solver can't find the function although the function and the solver are in the same path.
When I tried to fix that I got error "FMINCON only accepts inputs of data type double.".
Musab
Best Answer