TVM
0.9.2
|
#include <tvm/scheme/WeightedLeastSquares.h>
Public Types | |
using | ComputationDataType = Memory |
Public Member Functions | |
template<class SolverFactory , typename std::enable_if< isFactory< SolverFactory >::value, int >::type = 0> | |
WeightedLeastSquares (const SolverFactory &solverFactory, WeightedLeastSquaresOptions schemeOptions={}) | |
template<class SolverOptions , typename std::enable_if< isLSSolverFactoryOption< SolverOptions >::value, int >::type = 0> | |
WeightedLeastSquares (const SolverOptions &solverOptions, WeightedLeastSquaresOptions schemeOptions={}) | |
template<typename T , typename std::enable_if<!isFactory< T >::value &&!isLSSolverFactoryOption< T >::value, int >::type = 0> | |
WeightedLeastSquares (const T &, WeightedLeastSquaresOptions={}) | |
WeightedLeastSquares (const WeightedLeastSquares &)=delete | |
WeightedLeastSquares (WeightedLeastSquares &&)=delete | |
WeightedLeastSquares & | operator= (const WeightedLeastSquares &)=delete |
WeightedLeastSquares & | operator= (WeightedLeastSquares &&)=delete |
bool | solve_ (const LinearizedControlProblem &problem, internal::ProblemComputationData *data) const |
void | updateComputationData_ (const LinearizedControlProblem &problem, internal::ProblemComputationData *data) const |
std::unique_ptr< Memory > | createComputationData_ (const LinearizedControlProblem &problem) const |
Public Member Functions inherited from tvm::scheme::abstract::ResolutionScheme< WeightedLeastSquares > | |
bool | solve (Problem &problem) const |
std::unique_ptr< internal::ProblemComputationData > | createComputationData (const Problem &problem) const |
void | updateComputationData (const Problem &problem, internal::ProblemComputationData *data) const |
WeightedLeastSquares & | derived () |
const WeightedLeastSquares & | derived () const |
Public Member Functions inherited from tvm::scheme::internal::ResolutionSchemeBase | |
double | big_number () const |
void | big_number (double big) |
Public Member Functions inherited from tvm::internal::ObjWithId | |
ObjWithId (const ObjWithId &)=delete | |
ObjWithId (ObjWithId &&other) | |
ObjWithId & | operator= (const ObjWithId &)=delete |
ObjWithId & | operator= (ObjWithId &&other) |
int | id () const |
Protected Attributes | |
WeightedLeastSquaresOptions | options_ |
std::unique_ptr< solver::abstract::LSSolverFactory > | solverFactory_ |
Protected Attributes inherited from tvm::scheme::internal::ResolutionSchemeBase | |
SchemeAbilities | abilities_ |
double | big_number_ |
This class implements the classic weighted least square scheme.
using tvm::scheme::WeightedLeastSquares::ComputationDataType = Memory |
|
inline |
Constructor from a LSSolverFactory
SolverFactory | Any class deriving from LSSolverFactory. |
solverFactory | A factory for the solver that should be used in the resolution scheme. |
schemeOptions | Options for the schemes. See tvm::Scheme::WeightedLeastSquaresOptions. |
|
inline |
Constructor from a configuration class
SolverOptions | Any class representing solver options. The class must have a member type Factory referring to a class C deriving from LSSolverFactory and such that C can be constructed from SolverOptions. |
solverOptions | A set of options for the solver to be used by the resolution scheme. |
schemeOptions | Options for the scheme. See tvm::Scheme::WeightedLeastSquaresOptions. |
|
inline |
A fallback constructor that is enabled when none of the others are. It always fails at compilation time to provide a nice error message.
|
delete |
|
delete |
|
protected |
std::unique_ptr<Memory> tvm::scheme::WeightedLeastSquares::createComputationData_ | ( | const LinearizedControlProblem & | problem | ) | const |
|
delete |
|
delete |
|
protected |
|
protected |
|
protected |
bool tvm::scheme::WeightedLeastSquares::solve_ | ( | const LinearizedControlProblem & | problem, |
internal::ProblemComputationData * | data | ||
) | const |
Private interface for CRTP
void tvm::scheme::WeightedLeastSquares::updateComputationData_ | ( | const LinearizedControlProblem & | problem, |
internal::ProblemComputationData * | data | ||
) | const |
|
protected |
|
protected |
The factory to create solvers attached to each problem.