62 #ifndef OR_TOOLS_MATH_OPT_CPP_CALLBACK_H_ 63 #define OR_TOOLS_MATH_OPT_CPP_CALLBACK_H_ 69 #include "absl/container/flat_hash_set.h" 70 #include "absl/time/time.h" 71 #include "absl/types/optional.h" 72 #include "ortools/math_opt/callback.pb.h" 90 CallbackEventProto
event = CALLBACK_EVENT_UNSPECIFIED;
131 CallbackRegistrationProto
Proto()
const;
138 absl::flat_hash_set<CallbackEventProto>
events;
184 CallbackResultProto
Proto()
const;
206 #endif // OR_TOOLS_MATH_OPT_CPP_CALLBACK_H_
void AddLazyConstraint(BoundedLinearExpression linear_constraint)
std::vector< VariableMap< double > > suggested_solutions
void AddUserCut(BoundedLinearExpression linear_constraint)
absl::optional< VariableMap< double > > solution
LinearExpression expression
std::vector< GeneratedLinearConstraint > new_constraints
bool add_lazy_constraints
CallbackResultProto Proto() const
absl::flat_hash_set< CallbackEventProto > events
IndexedModel * model() const
IndexedModel * model() const
CallbackDataProto::PresolveStats presolve_stats
CallbackRegistrationProto Proto() const
MapFilter< Variable > mip_solution_filter
CallbackDataProto::MipStats mip_stats
IndexedModel * model() const
CallbackDataProto::BarrierStats barrier_stats
CallbackDataProto::SimplexStats simplex_stats
BoundedLinearExpression linear_constraint
IndexedModel * model() const
Collection of objects used to extend the Constraint Solver library.
MapFilter< Variable > mip_node_filter
std::vector< std::string > messages