Question: Unconstrained optimisation exercise: MATLAB The minimum of a quadratic equation ax2 + bx + c = 0 (where a is nonzero) is given by: b
Unconstrained optimisation exercise: MATLAB
The minimum of a quadratic equation ax2 + bx + c = 0 (where a is nonzero) is given by: b 2a Use fminunc to find the minimum of a quadratic function with a > 0. Make sure the display is set to show the iterations. Create a function to calculate the value of the quadratic equation, and use an anonymous function to pass the values of a, b, and c to the optimiser. Once the optimisation is completed, print thee value obtained and compare it to the theoretical minimum. How could you modify the function containing the quadratic equation to search for maximum if a < 0?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
