Code covered by the BSD License
-
...
Quarter-car new objective with design and state constraints
-
calc_state_constraints(t, xd,...
-
calc_zdot(x, z, v)
-
calculateControlBounds(nt, nx...
CalculateControlBounds compute two vectors for control upper and lower
-
checkSolver(obj)
checkSolver checks the solver option for appropriate settings.
-
computeStateConstraints(obj, ...
computeStateConstraints computes the state constraints and Jacobian
-
defectEquation(system, initCo...
DEFECTEQUATION computes the discretized defect equation for an ODE system
-
dtOutput(obj, n, x, optimValu...
dtOutput saves the intermediate result of direct transcription
-
evaluateStateConstraints(t, x...
evaluateStateConstraints computes inequality state constraints for the given
-
fillInStateConstraint(G, JG, ...
fillInStateConstraint fill in the state constraint at a given offset
-
hessian_x(Fun, x0, varargin)
Finite difference evaluation of the Hessian of a function
-
lookup_u(tu, t)
-
myplot_results(platform)
Generate plots from saved results
-
myplot_signal(varargin)
myplot_signal format the plot using a few standard formatting
-
myplot_ylabel(s)
-
perturb_x(fun, x0, varargin)
Finite difference
-
simple_sys()
A very simple system for testing purposes
-
test_simple_sys()
Test various stuff in the solver library
-
test_solver_misc()
Test various stuff in the solver library
-
DTSolverWithInputs
DTSOLVERWITHINPUTS Direct transcription solver for systems with open
-
DesignConstraint
-
InitCondition
-
Objective
An objective function formulated for state trajectories
-
OptionFactory
-
SequentialSolverWithInputs
Solve optimization for design variable xd
-
StateConstraint
-
System
A System is essentially an ODE system, it must implements a derivative method
-
demo_qcar_dt.m
-
demo_qcar_sequential.m
-
run_comparison.m
-
View all files
|
|
| calc_state_constraints(t, xd, xu, stateCon) |
function y = calc_state_constraints(t, xd, xu, stateCon)
y1 = stateCon.fun(xd, xu);
m = length(y1);
y = zeros(m, length(t));
for i=1:length(t)
y_i = stateCon.fun(xd, xu(:,i));
y(:,i) = reshape(yi, m,1);
end
end
|
|
Contact us