Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::internal::UntypedGScipConstraintHandler Class Reference

#include <gscip_constraint_handler.h>

Inheritance diagram for operations_research::internal::UntypedGScipConstraintHandler:
operations_research::GScipConstraintHandler< void * > operations_research::internal::UntypedGScipConstraintHandlerImpl< ConstraintData >

Public Member Functions

 UntypedGScipConstraintHandler (const GScipConstraintHandlerProperties &properties)
 
- Public Member Functions inherited from operations_research::GScipConstraintHandler< void * >
 GScipConstraintHandler (const GScipConstraintHandlerProperties &properties)
 
virtual ~GScipConstraintHandler ()=default
 
const GScipConstraintHandlerPropertiesproperties () const
 
absl::Status Register (GScip *gscip)
 Template implementations.
 
absl::StatusOr< SCIP_CONS * > AddCallbackConstraint (GScip *gscip, const std::string &constraint_name, const void **constraint_data, const GScipConstraintOptions &options=DefaultGScipConstraintOptions())
 
virtual absl::StatusOr< GScipCallbackResultEnforceLp (GScipConstraintHandlerContext context, const void *&constraint_data, bool solution_infeasible)
 Default callback implementations.
 
virtual absl::StatusOr< GScipCallbackResultEnforcePseudoSolution (GScipConstraintHandlerContext context, const void *&constraint_data, bool solution_infeasible, bool objective_infeasible)
 
virtual absl::StatusOr< bool > CheckIsFeasible (GScipConstraintHandlerContext context, const void *&constraint_data, bool check_integrality, bool check_lp_rows, bool print_reason, bool check_completely)
 
virtual std::vector< std::pair< SCIP_VAR *, RoundingLockDirection > > RoundingLock (GScip *gscip, const void *&constraint_data, bool lock_type_is_model)
 
virtual absl::StatusOr< GScipCallbackResultSeparateLp (GScipConstraintHandlerContext context, const void *&constraint_data)
 
virtual absl::StatusOr< GScipCallbackResultSeparateSolution (GScipConstraintHandlerContext context, const void *&constraint_data)
 
GScipCallbackResult CallEnforceLp (GScipConstraintHandlerContext context, const void *&constraint_data, bool solution_infeasible)
 The functions below wrap each callback function to manage status.
 
GScipCallbackResult CallEnforcePseudoSolution (GScipConstraintHandlerContext context, const void *&constraint_data, bool solution_infeasible, bool objective_infeasible)
 
GScipCallbackResult CallCheckIsFeasible (GScipConstraintHandlerContext context, const void *&constraint_data, bool check_integrality, bool check_lp_rows, bool print_reason, bool check_completely)
 
GScipCallbackResult CallSeparateLp (GScipConstraintHandlerContext context, const void *&constraint_data)
 
GScipCallbackResult CallSeparateSolution (GScipConstraintHandlerContext context, const void *&constraint_data)
 

Detailed Description

These classes implement a void pointer version of GScipConstraintHandler that performs a conversion to the more user-friendly templated implementation with ConstraintData. This parent class is needed as an untemplated version that SCIP_ConshdlrData can store.

Definition at line 496 of file gscip_constraint_handler.h.

Constructor & Destructor Documentation

◆ UntypedGScipConstraintHandler()

operations_research::internal::UntypedGScipConstraintHandler::UntypedGScipConstraintHandler ( const GScipConstraintHandlerProperties & properties)
inlineexplicit

Definition at line 498 of file gscip_constraint_handler.h.


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