23 #ifndef FINITE_DIFFERENCES_VARIABLE_GRID_H_ 24 #define FINITE_DIFFERENCES_VARIABLE_GRID_H_ 50 using Ptr = std::shared_ptr<FiniteDifferencesVariableGridSE2>;
51 using UPtr = std::unique_ptr<FiniteDifferencesVariableGridSE2>;
98 #endif // FINITE_DIFFERENCES_VARIABLE_GRID_H_
std::unique_ptr< DiscretizationGridInterface > UPtr
bool adaptGridSimpleShrinkingHorizon(NlpFunctions &nlp_fun)
void setGridAdaptTimeBasedAggressiveEstimate(int n_max, double dt_hyst_ratio=0.1, bool adapt_first_iter=false)
Set grid adaptation strategy to 'aggressive'.
FiniteDifferencesVariableGridSE2()=default
virtual ~FiniteDifferencesVariableGridSE2()=default
static corbo::Factory< corbo::DiscretizationGridInterface > & getFactory()
Get access to the associated factory.
void setGridAdaptSimpleShrinkingHorizon(bool adapt_first_iter=false)
Set grid adaptation strategy to 'shrinking horizon'.
void setGridAdaptTimeBasedSingleStep(int n_max, double dt_hyst_ratio=0.1, bool adapt_first_iter=false)
Set grid adaptation strategy to 'single step'.
bool isMovingHorizonWarmStartActive() const override
GridAdaptStrategy _grid_adapt
Finite differences grid for SE2.
static Factory & instance()
void setNmin(int n_min)
Set minium grid size for grid adaptation.
bool adaptGridTimeBasedAggressiveEstimate(NlpFunctions &nlp_fun)
bool isGridAdaptActive() const override
bool adaptGrid(bool new_run, NlpFunctions &nlp_fun) override
std::shared_ptr< DiscretizationGridInterface > Ptr
bool adaptGridTimeBasedSingleStep(NlpFunctions &nlp_fun)
void disableGridAdaptation()
Disable grid adapation.
corbo::DiscretizationGridInterface::Ptr getInstance() const override
Return a newly created shared instance of the implemented class.
bool isDtFixedIntended() const override
void setDtBounds(double dt_lb, double dt_ub)
Set lower and upper bounds for the temporal resolution.
Finite differences grid with variable resolution for SE2.