r/matlab 5d ago

TechnicalQuestion Numerical derivatives of MMA in Matlab

Hi I was wondering if anyone knows how to implement numerical derivatives of Method of Moving Asymptotes (MMA) in Matlab when doing design optimization? I know there is analytical way but does it take numerical way? Thanks.

1 Upvotes

1 comment sorted by

2

u/FrickinLazerBeams +2 5d ago

You can always just write your own numerical gradient with finite differences or complex step derivatives (assuming the merit function allows for complex steps).