Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why trust-region-reflective algorithm in fmincon require a gradient as input in MATALAB

Status
Not open for further replies.

SM1994

Bioengineer
Mar 25, 2020
49
According to Matlab fmincon documentation, the 'trust-region-reflective' algorithm needs to specify the objective gradient.
I read the algorithm explanation but yet, I cannot understand the reason for that.
1- Why does it need gradient as input?
2- Does the objective function have to be analytical? since my objective function, is function handle that calculates some matrix as output
Thanks for your help in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor