OR-Tools  9.3
gurobi_callback.cc File Reference

Go to the source code of this file.

Namespaces

namespace  operations_research
 Collection of objects used to extend the Constraint Solver library.
 
namespace  operations_research::math_opt
 

Macros

#define MO_SET_OR_RET(setter, statusor)
 

Functions

std::vector< bool > EventToGurobiWhere (const absl::flat_hash_set< CallbackEventProto > &events)
 
absl::Status GurobiCallbackImpl (const Gurobi::CallbackContext &context, const GurobiCallbackInput &callback_input, MessageCallbackData &message_callback_data, SolveInterrupter *const local_interrupter)
 
void GurobiCallbackImplFlush (const GurobiCallbackInput &callback_input, MessageCallbackData &message_callback_data)
 

Macro Definition Documentation

◆ MO_SET_OR_RET

#define MO_SET_OR_RET (   setter,
  statusor 
)
Value:
do { \
auto eval_status_or = statusor; \
RETURN_IF_ERROR(eval_status_or.status()) << __FILE__ << ":" << __LINE__; \
setter(*std::move(eval_status_or)); \
} while (false)

Definition at line 124 of file gurobi_callback.cc.