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

#include <gscip_solver_constraint_handler.h>

Public Member Functions

void SetWhenRunAndAdds (const CallbackRegistrationProto &registration)
 
absl::Status Validate () const
 

Public Attributes

SolverInterface::Callback user_callback = nullptr
 
const gtl::linked_hash_map< int64_t, SCIP_VAR * > * variables = nullptr
 
const SparseVectorFilterProto * variable_node_filter = nullptr
 
const SparseVectorFilterProto * variable_solution_filter = nullptr
 
absl::Time solve_start_time = absl::UnixEpoch()
 
bool run_at_nodes = false
 
bool run_at_solutions = false
 
bool adds_cuts = false
 
bool adds_lazy_constraints = false
 
GScip::Interrupter * interrupter = nullptr
 

Detailed Description

Definition at line 34 of file gscip_solver_constraint_handler.h.

Member Function Documentation

◆ SetWhenRunAndAdds()

void operations_research::math_opt::GScipSolverConstraintData::SetWhenRunAndAdds ( const CallbackRegistrationProto & registration)

Definition at line 86 of file gscip_solver_constraint_handler.cc.

◆ Validate()

absl::Status operations_research::math_opt::GScipSolverConstraintData::Validate ( ) const

Ensures that when GScipSolverConstraintData::user_callback != nullptr, we also have that variables, variable_node_filter, variable_solution_filter, and interrupter are not nullptr as well. In a callback, when user_callback is nullptr, do not access these fields!

Definition at line 59 of file gscip_solver_constraint_handler.cc.

Member Data Documentation

◆ adds_cuts

bool operations_research::math_opt::GScipSolverConstraintData::adds_cuts = false

Definition at line 42 of file gscip_solver_constraint_handler.h.

◆ adds_lazy_constraints

bool operations_research::math_opt::GScipSolverConstraintData::adds_lazy_constraints = false

Definition at line 43 of file gscip_solver_constraint_handler.h.

◆ interrupter

GScip::Interrupter* operations_research::math_opt::GScipSolverConstraintData::interrupter = nullptr

Definition at line 44 of file gscip_solver_constraint_handler.h.

◆ run_at_nodes

bool operations_research::math_opt::GScipSolverConstraintData::run_at_nodes = false

Definition at line 40 of file gscip_solver_constraint_handler.h.

◆ run_at_solutions

bool operations_research::math_opt::GScipSolverConstraintData::run_at_solutions = false

Definition at line 41 of file gscip_solver_constraint_handler.h.

◆ solve_start_time

absl::Time operations_research::math_opt::GScipSolverConstraintData::solve_start_time = absl::UnixEpoch()

Definition at line 39 of file gscip_solver_constraint_handler.h.

◆ user_callback

SolverInterface::Callback operations_research::math_opt::GScipSolverConstraintData::user_callback = nullptr

Definition at line 35 of file gscip_solver_constraint_handler.h.

◆ variable_node_filter

const SparseVectorFilterProto* operations_research::math_opt::GScipSolverConstraintData::variable_node_filter = nullptr

Definition at line 37 of file gscip_solver_constraint_handler.h.

◆ variable_solution_filter

const SparseVectorFilterProto* operations_research::math_opt::GScipSolverConstraintData::variable_solution_filter = nullptr

Definition at line 38 of file gscip_solver_constraint_handler.h.

◆ variables

const gtl::linked_hash_map<int64_t, SCIP_VAR*>* operations_research::math_opt::GScipSolverConstraintData::variables = nullptr

Definition at line 36 of file gscip_solver_constraint_handler.h.


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