Implementation of Time Optimal Control Law

Implementation of time optimal control law (bang-bang controller) for a double integral system
269 Downloads
Updated 2 Jun 2018

View License

This is an example of bang-bang controller. The problem statement is taken from Optimal Control Systems by D.S. Naidu, page no. 306, which is about the simple motion of a block of mass 'm' in a frictionless environment when subjected to an external force f(t). The motion is described as:
m*y''(t) = f(t)
where, y(t) is the position of the block at time t, so that, y'(t) and y"(t) represents the velocity and acceleration of the block, respectively.
In the Simulink model, x_1 is the state variable for the position of the block (y), and x_2 is the state variable for the velocity of the block (y'). The initial conditions can be altered in their respective blocks. Control input can be visualized from the scope labeled as 'Control Input'.

Cite As

Yajur Kumar (2025). Implementation of Time Optimal Control Law (https://www.mathworks.com/matlabcentral/fileexchange/67586-implementation-of-time-optimal-control-law), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Simulink Design Optimization in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0