Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::sat::CompiledLinMaxConstraint Class Reference

Detailed Description

Definition at line 504 of file constraint_violation.h.

#include <constraint_violation.h>

Inheritance diagram for operations_research::sat::CompiledLinMaxConstraint:
operations_research::sat::CompiledConstraintWithProto operations_research::sat::CompiledConstraint

Public Member Functions

 CompiledLinMaxConstraint (const ConstraintProto &ct_proto)
 ~CompiledLinMaxConstraint () override=default
int64_t ComputeViolationWhenEnforced (absl::Span< const int64_t > solution) override
Public Member Functions inherited from operations_research::sat::CompiledConstraintWithProto
 CompiledConstraintWithProto (const ConstraintProto &ct_proto)
 ~CompiledConstraintWithProto () override=default
const ConstraintProtoct_proto () const
int64_t ComputeViolation (absl::Span< const int64_t > solution) final
int64_t ViolationDelta (int var, int64_t old_value, absl::Span< const int64_t > solution_with_new_value) final
std::vector< int > UsedVariables (const CpModelProto &model_proto) const final
Public Member Functions inherited from operations_research::sat::CompiledConstraint
 CompiledConstraint ()=default
virtual ~CompiledConstraint ()=default
void InitializeViolation (absl::Span< const int64_t > solution)
virtual void PerformMove (int var, int64_t old_value, absl::Span< const int64_t > solution_with_new_value)
int64_t violation () const

Additional Inherited Members

Protected Member Functions inherited from operations_research::sat::CompiledConstraintWithProto
virtual int64_t ViolationDeltaWhenEnforced (int var, int64_t old_value, absl::Span< const int64_t > solution_with_new_value)
Protected Attributes inherited from operations_research::sat::CompiledConstraint
int64_t violation_

Constructor & Destructor Documentation

◆ CompiledLinMaxConstraint()

operations_research::sat::CompiledLinMaxConstraint::CompiledLinMaxConstraint ( const ConstraintProto & ct_proto)
explicit

Definition at line 1024 of file constraint_violation.cc.

◆ ~CompiledLinMaxConstraint()

operations_research::sat::CompiledLinMaxConstraint::~CompiledLinMaxConstraint ( )
overridedefault

Member Function Documentation

◆ ComputeViolationWhenEnforced()

int64_t operations_research::sat::CompiledLinMaxConstraint::ComputeViolationWhenEnforced ( absl::Span< const int64_t > solution)
overridevirtual

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