8#include "idol/mixed-integer/modeling/objects/Object.h"
9#include "idol/mixed-integer/modeling/Types.h"
10#include "idol/mixed-integer/modeling/constraints/TempCtr.h"
30 friend class impl::Env;
67 Ctr(
Env& t_env, CtrType t_type,
double t_constant, std::string t_name =
"");
91 template<
unsigned int N = 1,
unsigned int I = 0>
92 static Vector<
Ctr, N - I>
make_vector(
Env& t_env,
const Dim<N>& t_dim, CtrType t_type,
double t_constant,
const std::string& t_name =
"") {
93 return idol::impl::create_many<Ctr, N, I>(t_dim, t_name, [&](
const std::string& t_name_i) {
94 return Ctr(t_env, t_type, t_constant, t_name_i);
98 [[nodiscard]]
unsigned int index(
const Model& t_index)
const;
Ctr(Env &t_env, const TempCtr &t_temp_ctr, std::string t_name="")
Ctr(Env &t_env, TempCtr &&t_temp_ctr, std::string t_name="")
static Vector< Ctr, N - I > make_vector(Env &t_env, const Dim< N > &t_dim, CtrType t_type, double t_constant, const std::string &t_name="")
Ctr(Env &t_env, CtrType t_type, double t_constant, std::string t_name="")