Refinement to Control LawsWhen a desired solution has been found to the discrete equivalent an
actual control law needs to be computed. The function findctrl(..)
is designed to automate this refinement procedure. The controller
found is of the form Getting a control law
%s is a prepared simplex with de being a discrete equivalent of s %and findminsqinput is the objective function %Find the control law for exiting through facet 2 with ct=findctrl(s,de,2,@findminsqinput); %extract the control law constants k=ct.k; g=ct.g; Objective functionsTwo objective functions are supplied with the toolbox
For details on how to create custom objective functions in the [reference.htm |