Skip to content

Commit

Permalink
added simple example of linear mpc applied to the minimum-time proble…
Browse files Browse the repository at this point in the history
…m for the double integrator
  • Loading branch information
RussTedrake committed Oct 20, 2015
1 parent 24390d2 commit 19acc8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drake/examples/DoubleIntegrator.m
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ function drawfun(J,PI)
discrete_time_system = LinearSystem([],[],Ad,Bd,eye(2),[]);

for N = 50:100 % increase N until i find a feasible solution
% note: bisection search would be a lot more efficient, but it's in
% the noise here...

[prog,x_inds,u_inds] = dirtranModelPredictiveControl(discrete_time_system,N);

% add initial value constraint:
Expand Down

0 comments on commit 19acc8c

Please sign in to comment.