- 3.0.2 optimal control module.
|
#include <TimeGrid.h>
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | TimeGrid ()=delete |
TimeGrid (const size_t numberOfShots, const SCALAR timeHorizon) | |
Custom constructor. More... | |
void | changeShotCount (const size_t numberOfShots) |
Updates the timegrid when the number of shots changes. More... | |
void | changeTimeHorizon (const SCALAR timeHorizon) |
Updates the timegrid when the timehorizon changes. More... | |
void | updateTimeGrid (const Eigen::Matrix< SCALAR, Eigen::Dynamic, 1 > &h_segment) |
This method updates the timegrid when new optimized time segments arrive from the nlp solver. Only gets called when using timegrid optimization, otherwise the timegrid stays fixed. More... | |
void | makeUniformGrid () |
Creates a uniform timegrid. More... | |
const SCALAR | getShotStartTime (const size_t shot_index) const |
Returns to start time of a shot. More... | |
const SCALAR | getShotEndTime (const size_t shot_index) const |
Returns the end time of a shot. More... | |
const SCALAR | getShotDuration (const size_t shot_index) const |
Returns to duration of a shot. More... | |
const ct::core::tpl::TimeArray< SCALAR > & | toImplementation () |
Returns the underlying TimeArray. More... | |
const SCALAR | getTimeHorizon () const |
Returns the initial timehorizon of the problem. More... | |
const SCALAR | getOptimizedTimeHorizon () const |
Returns the optimized timehorizon. More... | |
This class describes the time-grid underlying the shots in the dms problem In total, we have N+1 pairs of (s_i, q_i) and N shots between them.
We assume that starting time t_0 = 0.0 [sec]
|
delete |
|
inline |
Custom constructor.
[in] | numberOfShots | The number of shots |
[in] | timeHorizon | The dms time horizon |
References ct::optcon::tpl::TimeGrid< SCALAR >::makeUniformGrid().
|
inline |
Updates the timegrid when the number of shots changes.
[in] | numberOfShots | The new number of shots |
References ct::optcon::tpl::TimeGrid< SCALAR >::makeUniformGrid().
|
inline |
Updates the timegrid when the timehorizon changes.
[in] | timeHorizon | The new time horizon |
References ct::optcon::tpl::TimeGrid< SCALAR >::makeUniformGrid(), and timeHorizon.
|
inline |
This method updates the timegrid when new optimized time segments arrive from the nlp solver. Only gets called when using timegrid optimization, otherwise the timegrid stays fixed.
[in] | h_segment | The vector of the new optimized time segments |
References i.
|
inline |
Creates a uniform timegrid.
References i.
Referenced by ct::optcon::tpl::TimeGrid< SCALAR >::changeShotCount(), ct::optcon::tpl::TimeGrid< SCALAR >::changeTimeHorizon(), and ct::optcon::tpl::TimeGrid< SCALAR >::TimeGrid().
|
inline |
Returns to start time of a shot.
[in] | shot_index | The shot number |
|
inline |
Returns the end time of a shot.
[in] | shot_index | The shot number |
|
inline |
Returns to duration of a shot.
[in] | shot_index | The shot index |
|
inline |
Returns the underlying TimeArray.
|
inline |
Returns the initial timehorizon of the problem.
|
inline |
Returns the optimized timehorizon.