If I have to minimize a function with 2 variables (f(x,lamda))and I have a condition on one of these 2 variables(lamda>=0), how can I find this variable (lamda)? thank u
1 回表示 (過去 30 日間)
古いコメントを表示
minimize(((3.5*log((((1.2* x)+1))/log(2))))-lamda*((((1/(1^2)*x))-10)));
% subject to
% lamda>=0;
0 件のコメント
採用された回答
Harshit
2012 年 11 月 7 日
Hi Hiba, You can use an iterative method. Start with lambda. Differentiate your equation with lambda. Change lambda on the basis of sign of derivative until you get zero derivative. Ofcourse it will change with x.
その他の回答 (1 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!