Fmincon

6 views (last 30 days)
Will
Will on 15 Feb 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?

Answers (0)

Categories

Find more on Problem-Based Optimization Setup in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!