12.07.2015 Views

What Is Optimization Toolbox?

What Is Optimization Toolbox?

What Is Optimization Toolbox?

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Examples That Use Standard Algorithmsendend% Compute constraints.% Objective TRACKMMOBJ is called before this% constraint function, so yout is current.c = -yout(20:100)+.95;ceq=[];When you run the code, it returns the following results:[Kp,Ki,Kd] = runtrackmmMaxDirectionalIter F-count {F,constraints} Step-size derivative Procedure0 5 1.119821 11 1.264 1 1.182 17 1.055 1 -0.1723 23 1.004 1 -0.0128 Hessian modified twice4 29 0.9997 1 3.48e-005 Hessian modified5 35 0.9996 1 -1.36e-006 Hessian modified twice<strong>Optimization</strong> terminated: magnitude of directional derivative in searchdirection less than 2*options.TolFun and maximum constraint violationis less than options.TolCon.lower upper ineqlin ineqnonlin114182Kp =0.5894Ki =0.0605Kd =5.52952-35

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!