Fmincon

1 vue (au cours des 30 derniers jours)
Will
Will le 15 Fév 2012
Hi,
I would like to minimise a scaler (a in the example below) using fmincon , the minimised value is then used to calculate new values of x1,x2. The new values of x1, and x2 must satisfy a non linear equation. The process would look like this.
f(x1,x2); xi+1 = xi+a*s1 set initial values of x1,x2 using initial values of x1,x2-mimimise f(a) subject to new values of x1,x2 satisfying nonlcon
Here is code I have but this doesn't have nonlcon yet, it just finds the minimimum
xtmp = @(n,a) storextmp(n) + searchtmp(n)*a;
functmp = @(a)121.126*xtmp(1,a)^2*xtmp(2,a)+748.812*xtmp(1,a)*xtmp(2,a)+234.323*xtmp(2,a);
a = fminsearch(functmp, 0);
dx1 = a*searchtmp;
xnew = storextmp + dx1;
fnew = feval(func, xnew);
Is this possible?

Réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox 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