how to find optimize value with two variables
1 次查看(过去 30 天)
显示 更早的评论
i have an objective function j where j=x+1/y; and x and y are calculated for different values of dd such that dd=.5:.015:.20 i need to apply steepest ascent method to speed up the process can u please help how can i do this
回答(1 个)
dbmn
2017-7-18
If I understand correctly, you have:
x = f(dd);
y = g(dd);
j = f(dd) + 1/g(dd) = h(dd);
which is a one dimensional optimization problem. Check out fminsearch or fminbnd or simply write the steepest descent algorithm by yourself (ascend = -1*descent).
or are just certain values for dd to be used? Is y, x, freely chosable? more info needed.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Nonlinear Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!