Extra credit explore the sensitivity of your design

  • No School
  • AA 1
  • puffbarwis
  • 6

This preview shows page 3 - 6 out of 6 pages.

Extra credit – Explore the sensitivity of your design to number of coils and free length. % t_fminsearch.m - test fminsearch % HJSIII, 14.10.29 % initial guess x_start = [ 1 1 ]\'; % call
Image of page 3
options = optimset( \'Display\', \'iter\' ); [ x_solution, min_val ] = fminsearch( \'biquad\', x_start, options ) % bottom of t_fminsearch +++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++ function z = biquad( x ) % biquadratic test function for fminsearch % HJSIII, 14.10.29 % minimum = 3 at x(1)=2 and x(2)=5 z = ( x(1)^2 - 4*x(1) + 4 ) + ( x(2)^2 - 10*x(2) + 25 ) + 3; % penalty function to provide inequality constraint % constrained minimum = 3.8 at x(1)=2.4 and x(2)=4.2 %t = 0.5 * x(1) + 3; %if x(2) > t, % z = z + 100; %end % bottom of biquad +++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++ » t_fminsearch x_solution = 2.0000 5.0000 min_val = 3.0000
Image of page 4
Image of page 5
Image of page 6

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture