-
Notifications
You must be signed in to change notification settings - Fork 6
/
MPC_FORCES.m
34 lines (34 loc) · 1.65 KB
/
MPC_FORCES.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% MPC_FORCES - a fast optimizer generated by FORCES PRO through Y2F
%
% OUTPUT = MPC_FORCES(PARAMS) solves a multistage problem
% subject to the parameters supplied in a cell array with the following elements:
% PARAMS{1} is t_init (column vector of length 3)
%
% OUTPUT is a cell array containg the values of the last iteration of the solver where
% OUTPUT{1} is p0 (column vector of length 3)
%
% [OUTPUT, EXITFLAG] = MPC_FORCES(PARAMS) returns additionally
% the integer EXITFLAG indicating the state of the solution with
% 1 - OPTIMAL solution has been found (subject to desired accuracy)
% 0 - Timeout - maximum number of iterations reached
% -7 - Method could not progress. Problem may be infeasible.
% -100 - License error
%
% [OUTPUT, EXITFLAG, INFO] = MPC_FORCES(PARAMS) returns
% additional information about the last iterate:
% INFO.it - number of iterations that lead to this result
% INFO.res_eq - max. equality constraint residual
% INFO.res_ineq - max. inequality constraint residual
% INFO.pobj - primal objective
% INFO.dobj - dual objective
% INFO.dgap - duality gap := pobj - dobj
% INFO.rdgap - relative duality gap := |dgap / pobj|
% INFO.mu - duality measure
% INFO.sigma - centering parameter
% INFO.lsit_aff - iterations of affine line search
% INFO.lsit_cc - iterations of line search (combined direction)
% INFO.step_aff - step size (affine direction)
% INFO.step_cc - step size (centering direction)
% INFO.solvetime - Time needed for solve (wall clock time)
%
% See also COPYING