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

Detailed Description

Definition at line 245 of file callback.h.

#include <callback.h>

Classes

struct  GeneratedLinearConstraint

Public Member Functions

void AddUserCut (BoundedLinearExpression linear_constraint)
void AddLazyConstraint (BoundedLinearExpression linear_constraint)
absl::Status CheckModelStorage (ModelStorageCPtr expected_storage) const
CallbackResultProto Proto () const

Static Public Member Functions

static absl::StatusOr< CallbackResultFromProto (const Model &model, const CallbackResultProto &result_proto)

Public Attributes

bool terminate = false
std::vector< GeneratedLinearConstraintnew_constraints
std::vector< VariableMap< double > > suggested_solutions

Member Function Documentation

◆ AddLazyConstraint()

void operations_research::math_opt::CallbackResult::AddLazyConstraint ( BoundedLinearExpression linear_constraint)
inline

Definition at line 266 of file callback.h.

◆ AddUserCut()

void operations_research::math_opt::CallbackResult::AddUserCut ( BoundedLinearExpression linear_constraint)
inline

Definition at line 260 of file callback.h.

◆ CheckModelStorage()

absl::Status operations_research::math_opt::CallbackResult::CheckModelStorage ( ModelStorageCPtr expected_storage) const

Definition at line 223 of file callback.cc.

◆ FromProto()

absl::StatusOr< CallbackResult > operations_research::math_opt::CallbackResult::FromProto ( const Model & model,
const CallbackResultProto & result_proto )
static

Definition at line 181 of file callback.cc.

◆ Proto()

CallbackResultProto operations_research::math_opt::CallbackResult::Proto ( ) const

Definition at line 241 of file callback.cc.

Member Data Documentation

◆ new_constraints

std::vector<GeneratedLinearConstraint> operations_research::math_opt::CallbackResult::new_constraints

Definition at line 302 of file callback.h.

◆ suggested_solutions

std::vector<VariableMap<double> > operations_research::math_opt::CallbackResult::suggested_solutions

Definition at line 305 of file callback.h.

◆ terminate

bool operations_research::math_opt::CallbackResult::terminate = false

Definition at line 298 of file callback.h.


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