## MATLAB: Can anyone help me in optimizing (maximizing) the function of two variables

nonlinearoptimization

I have a function of two variables ‘x1’ and ‘x2’ and I want to maximise that function

F(x1,x2) = ((1 + x1/x2) * 725.2) – 398

subject to: x1 <= 5; x2 <= 120; x1 >= 1; x2 >= 40

Please help I shall be thankful

## Best Answer