MATLAB: Maximize a system of nonlinear equation

equationmaximizenonlinearoptimizationsystem

Hi. I have a problem with the definition of a script. I have 2 functions of 3 variables. I need ( if it exists maybe with fmincon) a way to find the optimum valors for the three variables in order to maximize simultaniously the two equations. Thanks a lot

Best Answer

One approach:
f = @(x) norm([x(1).^2 + 2*x(2) + x(3); exp(x(1)).*sin(x(2)) + cos(x(3))]);
[X, fval] = fminunc(@(x)-f(x), rand(3,1));
Here ‘f’ has 2 equations in 3 unknowns. Use your own equations, and your own constraints with fmincon.