robotoc
robotoc - efficient ROBOT Optimal Control solvers
Loading...
Searching...
No Matches
robotoc::UnconstrLineSearch Class Reference

Line search for optimal control problems for unconstrained rigid-body systems. More...

#include <unconstr_line_search.hpp>

Public Member Functions

 UnconstrLineSearch (const OCP &ocp, const LineSearchSettings &settings=LineSearchSettings())
 Construct a line search. More...
 
 UnconstrLineSearch ()
 Default constructor. More...
 
 ~UnconstrLineSearch ()=default
 Default destructor. More...
 
 UnconstrLineSearch (const UnconstrLineSearch &)=default
 Default copy constructor. More...
 
UnconstrLineSearchoperator= (const UnconstrLineSearch &)=default
 Default copy assign operator. More...
 
 UnconstrLineSearch (UnconstrLineSearch &&) noexcept=default
 Default move constructor. More...
 
UnconstrLineSearchoperator= (UnconstrLineSearch &&) noexcept=default
 Default move assign operator. More...
 
double computeStepSize (const UnconstrDirectMultipleShooting &dms, aligned_vector< Robot > &robots, const std::vector< GridInfo > &time_discretization, const Eigen::VectorXd &q, const Eigen::VectorXd &v, const Solution &s, const Direction &d, const double max_primal_step_size)
 Compute primal step size by fliter line search method. More...
 
double computeStepSize (const UnconstrBackwardCorrection &bc, aligned_vector< Robot > &robots, const std::vector< GridInfo > &time_discretization, const Eigen::VectorXd &q, const Eigen::VectorXd &v, const Solution &s, const Direction &d, const double max_primal_step_size)
 Compute primal step size by fliter line search method. More...
 
void clearHistory ()
 Clear the line search filter. More...
 

Detailed Description

Line search for optimal control problems for unconstrained rigid-body systems.

Constructor & Destructor Documentation

◆ UnconstrLineSearch() [1/4]

robotoc::UnconstrLineSearch::UnconstrLineSearch ( const OCP ocp,
const LineSearchSettings settings = LineSearchSettings() 
)

Construct a line search.

Parameters
[in]ocpOptimal control problem.
[in]settingsLine search settings.

◆ UnconstrLineSearch() [2/4]

robotoc::UnconstrLineSearch::UnconstrLineSearch ( )

Default constructor.

◆ ~UnconstrLineSearch()

robotoc::UnconstrLineSearch::~UnconstrLineSearch ( )
default

Default destructor.

◆ UnconstrLineSearch() [3/4]

robotoc::UnconstrLineSearch::UnconstrLineSearch ( const UnconstrLineSearch )
default

Default copy constructor.

◆ UnconstrLineSearch() [4/4]

robotoc::UnconstrLineSearch::UnconstrLineSearch ( UnconstrLineSearch &&  )
defaultnoexcept

Default move constructor.

Member Function Documentation

◆ clearHistory()

void robotoc::UnconstrLineSearch::clearHistory ( )

Clear the line search filter.

◆ computeStepSize() [1/2]

double robotoc::UnconstrLineSearch::computeStepSize ( const UnconstrBackwardCorrection bc,
aligned_vector< Robot > &  robots,
const std::vector< GridInfo > &  time_discretization,
const Eigen::VectorXd &  q,
const Eigen::VectorXd &  v,
const Solution s,
const Direction d,
const double  max_primal_step_size 
)

Compute primal step size by fliter line search method.

Parameters
[in]bcBackward correction method.
[in,out]robotsaligned_vector of Robot.
[in]time_discretizationTime discretization.
[in]qInitial configuration.
[in]vInitial generalized velocity.
[in]sSolution.
[in]dDirection.
[in]max_primal_step_sizeMaximum primal step size.

◆ computeStepSize() [2/2]

double robotoc::UnconstrLineSearch::computeStepSize ( const UnconstrDirectMultipleShooting dms,
aligned_vector< Robot > &  robots,
const std::vector< GridInfo > &  time_discretization,
const Eigen::VectorXd &  q,
const Eigen::VectorXd &  v,
const Solution s,
const Direction d,
const double  max_primal_step_size 
)

Compute primal step size by fliter line search method.

Parameters
[in]dmsDirect multiple shooting method.
[in,out]robotsaligned_vector of Robot.
[in]time_discretizationTime discretization.
[in]qInitial configuration.
[in]vInitial generalized velocity.
[in]sSolution.
[in]dDirection.
[in]max_primal_step_sizeMaximum primal step size.

◆ operator=() [1/2]

UnconstrLineSearch & robotoc::UnconstrLineSearch::operator= ( const UnconstrLineSearch )
default

Default copy assign operator.

◆ operator=() [2/2]

UnconstrLineSearch & robotoc::UnconstrLineSearch::operator= ( UnconstrLineSearch &&  )
defaultnoexcept

Default move assign operator.


The documentation for this class was generated from the following file: