16 template<constra
int::Type T,
typename FunT>
17 class ProtoTaskCommon;
20 template<constra
int::Type T>
24 template<constra
int::Type T>
27 template<constra
int::Type T,
typename FunT>
35 throw std::runtime_error(
"The vector you provided has not the correct size.");
39 template<
typename FunU>
47 template<
typename FunT>
55 throw std::runtime_error(
"The lower bound vector you provided has not the correct size.");
59 throw std::runtime_error(
"The upper bound vector you provided has not the correct size.");
63 template<
typename FunU>
76 template<
typename T,
typename IfNotLinearFunction,
typename IfLinearFunction>
78 typename std::enable_if<std::is_base_of<tvm::function::abstract::Function, T>::value,
79 typename std::conditional<std::is_base_of<tvm::function::abstract::LinearFunction, T>::value,
81 IfNotLinearFunction>::type>::type;
142 #define TVM_ID(x) std::make_shared<tvm::function::IdentityFunction>(x)
163 #define TVM_LIN(x) std::make_shared<tvm::function::BasicLinearFunction>(x)
177 template<
typename Derived>
179 template<
typename Derived>
181 template<
typename Derived>
183 template<
typename Derived>
185 template<
typename Derived>
187 template<
typename Derived>
190 template<
typename CstDerived,
typename... Derived>
192 template<
typename CstDerived,
typename... Derived>
194 template<
typename CstDerived,
typename... Derived>
196 template<
typename CstDerived,
typename... Derived>
198 template<
typename CstDerived,
typename... Derived>
200 template<
typename CstDerived,
typename... Derived>
#define TVM_LIN(x)
Definition: ProtoTask.h:163
tvm::utils::ProtoTaskEQRet< F > operator==(std::shared_ptr< F > f, const tvm::utils::internal::RHS &rhs)
Definition: ProtoTask.h:123
tvm::utils::ProtoTaskGTRet< F > operator>=(std::shared_ptr< F > f, const tvm::utils::internal::RHS &rhs)
Definition: ProtoTask.h:127
tvm::utils::ProtoTaskLTRet< F > operator<=(std::shared_ptr< F > f, const tvm::utils::internal::RHS &rhs)
Definition: ProtoTask.h:131
#define TVM_ID(x)
Definition: ProtoTask.h:142
Definition: AffineExpr.h:71
Definition: AffineExpr.h:26
ProtoTaskCommon(FunT f, const internal::RHS &l, const internal::RHS &u)
Definition: ProtoTask.h:51
internal::RHS l_
Definition: ProtoTask.h:68
ProtoTaskCommon(const ProtoTaskCommon< constraint::Type::DOUBLE_SIDED, FunU > &pt)
Definition: ProtoTask.h:64
internal::RHS u_
Definition: ProtoTask.h:69
FunctionPtr f_
Definition: ProtoTask.h:67
Definition: ProtoTask.h:29
FunT f_
Definition: ProtoTask.h:43
internal::RHS rhs_
Definition: ProtoTask.h:44
ProtoTaskCommon(FunT f, const internal::RHS &rhs)
Definition: ProtoTask.h:31
ProtoTaskCommon(const ProtoTaskCommon< T, FunU > &pt)
Definition: ProtoTask.h:40
Definition: ProtoTaskDetails.h:38
Eigen::VectorXd v_
Definition: ProtoTaskDetails.h:48
RHSType type_
Definition: ProtoTaskDetails.h:46
typename std::enable_if< std::is_base_of< tvm::function::abstract::Function, T >::value, typename std::conditional< std::is_base_of< tvm::function::abstract::LinearFunction, T >::value, IfLinearFunction, IfNotLinearFunction >::type >::type ProtoChoice
Definition: ProtoTask.h:81
ProtoChoice< T, tvm::utils::ProtoTaskDS, tvm::utils::LinearProtoTaskDS > ProtoTaskDSRet
Definition: ProtoTask.h:105
ProtoChoice< T, tvm::utils::ProtoTaskLT, tvm::utils::LinearProtoTaskLT > ProtoTaskLTRet
Definition: ProtoTask.h:93
ProtoChoice< T, tvm::utils::ProtoTaskEQ, tvm::utils::LinearProtoTaskEQ > ProtoTaskEQRet
Definition: ProtoTask.h:87
ProtoChoice< T, tvm::utils::ProtoTaskGT, tvm::utils::LinearProtoTaskGT > ProtoTaskGTRet
Definition: ProtoTask.h:99
std::shared_ptr< Variable > VariablePtr
Definition: defs.h:65
std::shared_ptr< function::abstract::Function > FunctionPtr
Definition: defs.h:57