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에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by