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

Detailed Description

Definition at line 233 of file linear_propagation.h.

#include <linear_propagation.h>

Inheritance diagram for operations_research::sat::LinearPropagator:
operations_research::sat::PropagatorInterface operations_research::ReversibleInterface operations_research::sat::LazyReasonInterface

Public Member Functions

 LinearPropagator (Model *model)
 ~LinearPropagator () override
bool Propagate () final
void SetLevel (int level) final
std::string LazyReasonName () const override
bool AddConstraint (absl::Span< const Literal > enforcement_literals, absl::Span< const IntegerVariable > vars, absl::Span< const IntegerValue > coeffs, IntegerValue upper_bound)
void Explain (int id, IntegerLiteral to_explain, IntegerReason *reason) final
void SetPushAffineUbForBinaryRelation ()
Public Member Functions inherited from operations_research::sat::PropagatorInterface
 PropagatorInterface ()=default
virtual ~PropagatorInterface ()=default
virtual bool IncrementalPropagate (const std::vector< int > &)

Constructor & Destructor Documentation

◆ LinearPropagator()

operations_research::sat::LinearPropagator::LinearPropagator ( Model * model)
explicit

Definition at line 51 of file linear_propagation.cc.

◆ ~LinearPropagator()

operations_research::sat::LinearPropagator::~LinearPropagator ( )
override

Definition at line 78 of file linear_propagation.cc.

Member Function Documentation

◆ AddConstraint()

bool operations_research::sat::LinearPropagator::AddConstraint ( absl::Span< const Literal > enforcement_literals,
absl::Span< const IntegerVariable > vars,
absl::Span< const IntegerValue > coeffs,
IntegerValue upper_bound )

Definition at line 328 of file linear_propagation.cc.

◆ Explain()

void operations_research::sat::LinearPropagator::Explain ( int id,
IntegerLiteral to_explain,
IntegerReason * reason )
finalvirtual

◆ LazyReasonName()

std::string operations_research::sat::LinearPropagator::LazyReasonName ( ) const
inlineoverridevirtual

◆ Propagate()

bool operations_research::sat::LinearPropagator::Propagate ( )
finalvirtual

◆ SetLevel()

void operations_research::sat::LinearPropagator::SetLevel ( int level)
finalvirtual

Implements operations_research::ReversibleInterface.

Definition at line 102 of file linear_propagation.cc.

◆ SetPushAffineUbForBinaryRelation()

void operations_research::sat::LinearPropagator::SetPushAffineUbForBinaryRelation ( )
inline

Definition at line 256 of file linear_propagation.h.


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