17 const ::idol::Bilevel::Description& m_description;
18 std::unique_ptr<OptimizerFactory> m_optimizer_for_sub_problems;
19 std::unique_ptr<Model> m_hpr;
20 std::unique_ptr<Model> m_separation_problem;
21 std::vector<Var> m_linking_upper_variables;
22 std::optional<Var> m_pi;
23 std::optional<Var> m_counter;
24 std::vector<Var> m_lambda;
26 void check_value_function_is_well_posed();
27 void check_assumptions();
28 void build_separation_problem();
29 std::tuple<double, double, double, double> compute_big_M(
const Model& t_model);
30 void build_hpr(
double t_lambda_lb,
double t_lambda_ub,
double t_pi_lb,
double t_pi_ub);
33 class BoundTighteningCallback;
36 const ::idol::Bilevel::Description& t_description,
39 std::string name()
const override;
40 double get_var_primal(
const Var &t_var)
const override;
41 double get_var_reduced_cost(
const Var &t_var)
const override;
42 double get_var_ray(
const Var &t_var)
const override;
43 double get_ctr_dual(
const Ctr &t_ctr)
const override;
44 double get_ctr_farkas(
const Ctr &t_ctr)
const override;
45 unsigned int get_n_solutions()
const override;
46 unsigned int get_solution_index()
const override;
49 void add(
const Var &t_var)
override;
50 void add(
const Ctr &t_ctr)
override;
51 void add(
const QCtr &t_ctr)
override;
52 void remove(
const Var &t_var)
override;
53 void remove(
const Ctr &t_ctr)
override;
54 void remove(
const QCtr &t_ctr)
override;
55 void update()
override;
56 void write(
const std::string &t_name)
override;
57 void hook_optimize()
override;
58 void set_solution_index(
unsigned int t_index)
override;
59 void update_obj_sense()
override;
60 void update_obj()
override;
61 void update_rhs()
override;
62 void update_obj_constant()
override;
63 void update_mat_coeff(
const Ctr &t_ctr,
const Var &t_var)
override;
64 void update_ctr_type(
const Ctr &t_ctr)
override;
65 void update_ctr_rhs(
const Ctr &t_ctr)
override;
66 void update_var_type(
const Var &t_var)
override;
67 void update_var_lb(
const Var &t_var)
override;
68 void update_var_ub(
const Var &t_var)
override;
69 void update_var_obj(
const Var &t_var)
override;