Fmincon

1 次查看(过去 30 天)
Will
Will 2012-2-15
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 个)

类别

Help CenterFile Exchange 中查找有关 Problem-Based Optimization Setup 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by