Loading...
Searching...
No Matches
idol::UserCutCallback::Strategy Class Referenceabstract

Description

Definition at line 29 of file UserCutCallback.h.

Public Methods

 Strategy (Model *t_separation_problem, GenerationPattern< Ctr > t_cut, CtrType t_type)

Protected Methods

void hook_add_cut (const TempCtr &t_cut) override
std::string name () const override
virtual const Modeloriginal_model () const
virtual void submit_heuristic_solution (const PrimalPoint &t_solution)
virtual void add_user_cut (const TempCtr &t_cut)
virtual void add_lazy_cut (const TempCtr &t_cut)
virtual PrimalPoint primal_solution () const
const Timertime () const
double best_obj () const
double best_bound () const
void terminate ()
virtual void operator() (CallbackEvent t_event)=0

Constructor & Destructor Documentation

◆ Strategy()

idol::UserCutCallback::Strategy::Strategy ( Model * t_separation_problem,
GenerationPattern< Ctr > t_cut,
CtrType t_type )
inlineexplicit

Definition at line 40 of file UserCutCallback.h.

Methods Documentation

◆ add_lazy_cut()

virtual void idol::Callback::add_lazy_cut ( const TempCtr & t_cut)
protectedvirtualinherited

Adds a lazy cut to the relaxation

Parameters
t_cutthe cut to be added

◆ add_user_cut()

virtual void idol::Callback::add_user_cut ( const TempCtr & t_cut)
protectedvirtualinherited

Adds a user cut to the relaxation

Parameters
t_cutthe cut to be added

◆ best_bound()

double idol::Callback::best_bound ( ) const
nodiscardprotectedinherited

Returns the best bound found so far

Returns
the best bound

◆ best_obj()

double idol::Callback::best_obj ( ) const
nodiscardprotectedinherited

Returns the best objective value found so far

Returns
the best objective value

◆ hook_add_cut()

void idol::UserCutCallback::Strategy::hook_add_cut ( const TempCtr & t_cut)
inlineoverrideprotected

Definition at line 31 of file UserCutCallback.h.

◆ name()

std::string idol::UserCutCallback::Strategy::name ( ) const
inlinenodiscardoverrideprotected

Definition at line 35 of file UserCutCallback.h.

◆ operator()()

virtual void idol::Callback::operator() ( CallbackEvent t_event)
protectedpure virtualinherited

This method is left for the user to write and consists in the main execution block of the callback.

Parameters
t_eventthe event which triggered the call

Implemented in idol::Heuristics::LocalBranching::Strategy, idol::Heuristics::RENS::Strategy, idol::Heuristics::SimpleRounding::Strategy, and idol::Plots::OptimalityGap::Strategy.

◆ original_model()

virtual const Model & idol::Callback::original_model ( ) const
nodiscardprotectedvirtualinherited

Accesses the original model given to the solver

◆ primal_solution()

virtual PrimalPoint idol::Callback::primal_solution ( ) const
nodiscardprotectedvirtualinherited

Returns the solution of the node which is currently being explored (when available)

Returns
the solution of the current node

◆ submit_heuristic_solution()

virtual void idol::Callback::submit_heuristic_solution ( const PrimalPoint & t_solution)
protectedvirtualinherited

Submits a new heuristic solution

◆ terminate()

void idol::Callback::terminate ( )
protectedinherited

Asks the optimizer to terminate the optimization process as soon as possible

◆ time()

const Timer & idol::Callback::time ( ) const
nodiscardprotectedinherited

Returns the current time

Returns
the optimizer's time