C++ Reference: class ScipConstraintHandler

This documentation is automatically generated.

Method
description

Return type: const ScipConstraintHandlerDescription&

FractionalSolutionFeasible

Return type: virtual bool

Arguments: const ScipConstraintHandlerContext& context, const Constraint& constraint

Returns true if no constraints are violated.

IntegerSolutionFeasible

Return type: virtual bool

Arguments: const ScipConstraintHandlerContext& context, const Constraint& constraint

This MUST find a violated constraint if one exists.

ScipConstraintHandler

Return type: explicit

Arguments: const ScipConstraintHandlerDescription& description

~ScipConstraintHandler

Return type: virtual

SeparateFractionalSolution

Return type: virtual std::vector<CallbackRangeConstraint>

Arguments: const ScipConstraintHandlerContext& context, const Constraint& constraint

Unless SeparateIntegerSolution() below is overridden, this must find a violated lazy constraint if one exists when given an integral solution.

SeparateIntegerSolution

Return type: virtual std::vector<CallbackRangeConstraint>

Arguments: const ScipConstraintHandlerContext& context, const Constraint& constraint

This MUST find a violated lazy constraint if one exists. All constraints returned must have is_cut as false.