Optimizers::Gurobi

class Gurobi : public idol::OptimizerWithLazyUpdates<GRBVar, std::variant<GRBConstr, GRBQConstr>>

Public Functions

Gurobi(const Model &t_model, bool t_continuous_relaxation, GRBEnv &t_env)
inline explicit Gurobi(const Model &t_model, bool t_continuous_relaxation)
inline GRBEnv &env()
inline const GRBEnv &env() const
inline GRBModel &model()
inline const GRBModel &model() const
inline virtual std::string name() const override
virtual void set_param_time_limit(double t_time_limit) override
virtual void set_param_threads(unsigned int t_thread_limit) override
virtual void set_param_best_obj_stop(double t_best_obj_stop) override
virtual void set_param_best_bound_stop(double t_best_bound_stop) override
virtual void set_param_presolve(bool t_value) override
virtual void set_param_infeasible_or_unbounded_info(bool t_value) override
void add_callback(Callback *t_ptr_to_callback)
void set_lazy_cut(bool t_value)
void set_max_n_solution_in_pool(unsigned int t_value)
virtual void set_param_logs(bool t_value) override
void set_param(GRB_IntParam t_param, int t_value)
void set_param(GRB_DoubleParam t_param, double t_value)
virtual void set_tol_mip_relative_gap(double t_relative_gap_tolerance) override
virtual void set_tol_mip_absolute_gap(double t_absolute_gap_tolerance) override
virtual void set_tol_feasibility(double t_tol_feasibility) override
virtual void set_tol_optimality(double t_tol_optimality) override
virtual void set_tol_integer(double t_tol_integer) override
inline GRBVar &operator[](const Var &t_var)
inline const GRBVar &operator[](const Var &t_var) const
inline std::variant<GRBConstr, GRBQConstr> &operator[](const Ctr &t_ctr)
inline const std::variant<GRBConstr, GRBQConstr> &operator[](const Ctr &t_ctr) const
inline virtual const ::idol::Model &parent() const
inline bool get_param_logs() const
inline double get_param_time_limit() const
inline unsigned int get_param_thread_limit() const
double get_param_best_obj_stop() const
double get_param_best_bound_stop() const
inline double get_tol_mip_relative_gap() const
inline double get_tol_mip_absolute_gap() const
inline double get_tol_feasibility() const
inline double get_tol_optimality() const
inline double get_tol_integer() const
inline unsigned int get_param_iteration_limit() const
inline void set_param_iteration_limit(unsigned int t_iteration_limit)
inline bool get_param_presolve() const
inline bool get_param_infeasible_or_unbounded_info() const
inline const Timer &time() const
double get_remaining_time() const
inline bool is_terminated() const
virtual void terminate()
template<class T>
inline T &as()
template<class T>
inline const T &as() const
template<class T>
inline bool is() const

Public Static Functions

static Model read_from_file(Env &t_env, const std::string &t_filename)

Friends

friend class ::idol::GurobiCallbackI