Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
scip_callback.cc File Reference
#include "ortools/linear_solver/scip_callback.h"
#include <algorithm>
#include <cstdint>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "absl/types/span.h"
#include "ortools/base/logging.h"
#include "ortools/linear_solver/linear_solver.h"
#include "ortools/linear_solver/scip_helper_macros.h"
#include "scip/cons_linear.h"
#include "scip/def.h"
#include "scip/pub_cons.h"
#include "scip/scip.h"
#include "scip/scip_cons.h"
#include "scip/scip_cut.h"
#include "scip/scip_general.h"
#include "scip/scip_lp.h"
#include "scip/scip_param.h"
#include "scip/scip_prob.h"
#include "scip/scip_sol.h"
#include "scip/scip_solvingstats.h"
#include "scip/scip_tree.h"
#include "scip/scipdefplugins.h"
#include "scip/struct_cons.h"
#include "scip/struct_tree.h"
#include "scip/struct_var.h"
#include "scip/type_cons.h"
#include "scip/type_lp.h"
#include "scip/type_result.h"
#include "scip/type_retcode.h"
#include "scip/type_scip.h"
#include "scip/type_sol.h"
#include "scip/type_tree.h"
#include "scip/type_var.h"

Go to the source code of this file.

Classes

struct  SCIP_ConshdlrData
struct  SCIP_ConsData
struct  operations_research::CallbackSetup

Namespaces

namespace  operations_research
 OR-Tools root namespace.
namespace  operations_research::internal

Enumerations

enum class  operations_research::ScipSeparationResult { operations_research::kLazyConstraintAdded , operations_research::kCuttingPlaneAdded , operations_research::kDidNotFind }

Functions

bool operations_research::LinearConstraintIsViolated (const ScipConstraintHandlerContext &context, const LinearRange &constraint)
ScipSeparationResult operations_research::RunSeparation (internal::ScipCallbackRunner *runner, const ScipConstraintHandlerContext &context, absl::Span< SCIP_CONS * > constraints, bool is_integral)
static SCIP_DECL_CONSFREE (ConstraintHandlerFreeC)
static SCIP_DECL_CONSDELETE (ConstraintHandlerDeleteC)
static SCIP_DECL_CONSENFOLP (EnforceLpC)
static SCIP_DECL_CONSSEPALP (SeparateLpC)
static SCIP_DECL_CONSSEPASOL (SeparatePrimalSolutionC)
static SCIP_DECL_CONSCHECK (CheckFeasibilityC)
static SCIP_DECL_CONSENFOPS (EnforcePseudoSolutionC)
static SCIP_DECL_CONSLOCK (VariableRoundingLockC)
void operations_research::internal::AddConstraintHandlerImpl (const ScipConstraintHandlerDescription &description, std::unique_ptr< ScipCallbackRunner > runner, SCIP *scip)
void operations_research::internal::AddCallbackConstraintImpl (SCIP *scip, const std::string &handler_name, const std::string &constraint_name, void *constraint_data, const ScipCallbackConstraintOptions &options)

Function Documentation

◆ SCIP_DECL_CONSCHECK()

SCIP_DECL_CONSCHECK ( CheckFeasibilityC )
static

Definition at line 344 of file scip_callback.cc.

◆ SCIP_DECL_CONSDELETE()

SCIP_DECL_CONSDELETE ( ConstraintHandlerDeleteC )
static

Definition at line 249 of file scip_callback.cc.

◆ SCIP_DECL_CONSENFOLP()

SCIP_DECL_CONSENFOLP ( EnforceLpC )
static

Definition at line 258 of file scip_callback.cc.

◆ SCIP_DECL_CONSENFOPS()

SCIP_DECL_CONSENFOPS ( EnforcePseudoSolutionC )
static

Definition at line 361 of file scip_callback.cc.

◆ SCIP_DECL_CONSFREE()

SCIP_DECL_CONSFREE ( ConstraintHandlerFreeC )
static

destructor of constraint handler to free user data (called when SCIP is exiting)

Definition at line 239 of file scip_callback.cc.

◆ SCIP_DECL_CONSLOCK()

SCIP_DECL_CONSLOCK ( VariableRoundingLockC )
static

Definition at line 392 of file scip_callback.cc.

◆ SCIP_DECL_CONSSEPALP()

SCIP_DECL_CONSSEPALP ( SeparateLpC )
static

Definition at line 286 of file scip_callback.cc.

◆ SCIP_DECL_CONSSEPASOL()

SCIP_DECL_CONSSEPASOL ( SeparatePrimalSolutionC )
static

Definition at line 314 of file scip_callback.cc.