Fmincon
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Problem-Based Optimization Setup finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!