Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
minimize(((3.5*log((((1.2* x)+1))/log(2))))-lamda*((((1/(1^2)*x))-10)));
% subject to
% lamda>=0;

Réponse acceptée

Harshit
Harshit le 7 Nov 2012
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.

Plus de réponses (1)

Hiba Bawab
Hiba Bawab le 7 Nov 2012
Hi Harshit, thank u , lamda is already a Lagrange multiplier for a first constraint when the others constraints will be included later . for the first step , I should only minimize the function subject to lamda >=0 ; It's a case of dual decomposition method and this is the first step of this method .
I will try iterative method .

Catégories

En savoir plus sur Global or Multiple Starting Point Search dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by