Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::Gurobi::CallbackContext Class Reference

Detailed Description

Definition at line 171 of file g_gurobi.h.

#include <g_gurobi.h>

Public Member Functions

 CallbackContext (Gurobi *gurobi, void *cb_data, int where)
int where () const
Gurobi * gurobi () const
absl::StatusOr< int > CbGetInt (int what) const
absl::StatusOr< double > CbGetDouble (int what) const
absl::Status CbGetDoubleArray (int what, absl::Span< double > result) const
absl::StatusOr< std::string > CbGetMessage () const
absl::Status CbCut (absl::Span< const int > cutind, absl::Span< const double > cutval, char cutsense, double cutrhs) const
absl::Status CbLazy (absl::Span< const int > lazyind, absl::Span< const double > lazyval, char lazysense, double lazyrhs) const
absl::StatusOr< double > CbSolution (absl::Span< const double > solution) const

Constructor & Destructor Documentation

◆ CallbackContext()

operations_research::math_opt::Gurobi::CallbackContext::CallbackContext ( Gurobi * gurobi,
void * cb_data,
int where )

Definition at line 807 of file g_gurobi.cc.

Member Function Documentation

◆ CbCut()

absl::Status operations_research::math_opt::Gurobi::CallbackContext::CbCut ( absl::Span< const int > cutind,
absl::Span< const double > cutval,
char cutsense,
double cutrhs ) const

Definition at line 842 of file g_gurobi.cc.

◆ CbGetDouble()

absl::StatusOr< double > operations_research::math_opt::Gurobi::CallbackContext::CbGetDouble ( int what) const

Definition at line 818 of file g_gurobi.cc.

◆ CbGetDoubleArray()

absl::Status operations_research::math_opt::Gurobi::CallbackContext::CbGetDoubleArray ( int what,
absl::Span< double > result ) const

Definition at line 826 of file g_gurobi.cc.

◆ CbGetInt()

absl::StatusOr< int > operations_research::math_opt::Gurobi::CallbackContext::CbGetInt ( int what) const

Definition at line 811 of file g_gurobi.cc.

◆ CbGetMessage()

absl::StatusOr< std::string > operations_research::math_opt::Gurobi::CallbackContext::CbGetMessage ( ) const

Definition at line 832 of file g_gurobi.cc.

◆ CbLazy()

absl::Status operations_research::math_opt::Gurobi::CallbackContext::CbLazy ( absl::Span< const int > lazyind,
absl::Span< const double > lazyval,
char lazysense,
double lazyrhs ) const

Definition at line 852 of file g_gurobi.cc.

◆ CbSolution()

absl::StatusOr< double > operations_research::math_opt::Gurobi::CallbackContext::CbSolution ( absl::Span< const double > solution) const

Definition at line 862 of file g_gurobi.cc.

◆ gurobi()

Gurobi * operations_research::math_opt::Gurobi::CallbackContext::gurobi ( ) const
inline

Definition at line 178 of file g_gurobi.h.

◆ where()

int operations_research::math_opt::Gurobi::CallbackContext::where ( ) const
inline

Definition at line 177 of file g_gurobi.h.


The documentation for this class was generated from the following files: