Download manual [372769 bytes]

Transcript
… "® !Q
‰ + ¯(),3
Purpose
This is the main optimization program in RIOTS_95. The algorithm used by riots is a sequential
quadratic programming (SQP) routine called NPSOL. Multiple objective functions can be handled indirectly using the transcription describe in §2.3.
The user is urged to check the validity of the user-supplied derivatives with the utility program
check_deriv before attempting to use riots.
Calling Syntax
[u,x,f,g,lambda2] = riots([x0,{fixed,{x0min,x0max}}],u0,t,Umin,Umax,
params,[miter,{var,{fd}}],ialg,
{[eps,epsneq,objrep,bigbnd]},{scaling},
{disp},{lambda1});
Description of Inputs
The first six inputs are described in Table O3. The remainder are described here.
miter
The maximum number of iterations allowed.
var
Specifies a penalty on the piecewise derivative variation[4, Sec. 4.5] 15 of the control to be
added to the objective function. Can only be used with first and second order splines.
Adding a penalty on the piecewise derivative variation of the control is useful if rapid oscillations are observed in the numerical solution. This problem often occurs for singular
problems [13,14] in which trajectory constraints are active along singular arcs. The penalty
should be ten to ten thousand times smaller than the value of the objective function at a solution.
fd
If a non-zero value is specified, the gradients for all functions will be computed by finitedifference approximations. In this case Dh, Dg, and Dl will not be called. Default: 0.
ialg
Specifies the integration algorithm used by simulate.
eps
Overall optimization tolerance. For NPSOL, eps is squared before calling NPSOL. See the
SQP user’s manual for more details. Default: 10−6 .
epsneq
Nonlinear constraint tolerance. Default: 10−4 .
objrep
Indicates function precision. A value of 0 causes this features to be ignored. Default: 0.
bigbnd
A number large than the largest magnitude expected for the decision variables. Default: 106 .
scaling Allowable values are 00, 01, 10, 11, 12, 21, 22. Default: 00. See description below.
Specify zero for minimal displayed output. Default: 1.
disp
15
The piecewise derivative variation is smoothed to make it differentiable by squaring the terms in the summation.
Section 6: Optimization Programs
67