Definition at line 214 of file linear_constraint.h.
#include <linear_constraint.h>
|
| | LinearConstraintBuilder (const Model *model) |
| | LinearConstraintBuilder (IntegerEncoder *encoder) |
| | LinearConstraintBuilder (const Model *model, IntegerValue lb, IntegerValue ub) |
| | LinearConstraintBuilder (IntegerEncoder *encoder, IntegerValue lb, IntegerValue ub) |
| | LinearConstraintBuilder () |
| | LinearConstraintBuilder (IntegerValue lb, IntegerValue ub) |
| void | AddConstant (IntegerValue value) |
| void | AddTerm (IntegerVariable var, IntegerValue coeff) |
| void | AddTerm (AffineExpression expr, IntegerValue coeff) |
| void | AddLinearExpression (const LinearExpression &expr) |
| void | AddLinearExpression (const LinearExpression &expr, IntegerValue coeff) |
| ABSL_MUST_USE_RESULT bool | AddDecomposedProduct (absl::Span< const LiteralValueValue > product) |
| ABSL_MUST_USE_RESULT bool | AddLiteralTerm (Literal lit, IntegerValue coeff=IntegerValue(1)) |
| void | AddQuadraticLowerBound (AffineExpression left, AffineExpression right, IntegerTrail *integer_trail, bool *is_quadratic=nullptr) |
| void | Clear () |
| void | ResetBounds (IntegerValue lb, IntegerValue ub) |
| LinearConstraint | Build () |
| LinearConstraint | BuildConstraint (IntegerValue lb, IntegerValue ub) |
| bool | BuildIntoConstraintAndCheckOverflow (IntegerValue lb, IntegerValue ub, LinearConstraint *ct) |
| LinearExpression | BuildExpression () |
| int | NumTerms () const |
◆ LinearConstraintBuilder() [1/6]
| operations_research::sat::LinearConstraintBuilder::LinearConstraintBuilder |
( |
const Model * | model | ) |
|
|
inlineexplicit |
◆ LinearConstraintBuilder() [2/6]
| operations_research::sat::LinearConstraintBuilder::LinearConstraintBuilder |
( |
IntegerEncoder * | encoder | ) |
|
|
inlineexplicit |
◆ LinearConstraintBuilder() [3/6]
| operations_research::sat::LinearConstraintBuilder::LinearConstraintBuilder |
( |
const Model * | model, |
|
|
IntegerValue | lb, |
|
|
IntegerValue | ub ) |
|
inline |
◆ LinearConstraintBuilder() [4/6]
| operations_research::sat::LinearConstraintBuilder::LinearConstraintBuilder |
( |
IntegerEncoder * | encoder, |
|
|
IntegerValue | lb, |
|
|
IntegerValue | ub ) |
|
inline |
◆ LinearConstraintBuilder() [5/6]
| operations_research::sat::LinearConstraintBuilder::LinearConstraintBuilder |
( |
| ) |
|
|
inline |
◆ LinearConstraintBuilder() [6/6]
| operations_research::sat::LinearConstraintBuilder::LinearConstraintBuilder |
( |
IntegerValue | lb, |
|
|
IntegerValue | ub ) |
|
inline |
◆ AddConstant()
| void operations_research::sat::LinearConstraintBuilder::AddConstant |
( |
IntegerValue | value | ) |
|
◆ AddDecomposedProduct()
| ABSL_MUST_USE_RESULT bool operations_research::sat::LinearConstraintBuilder::AddDecomposedProduct |
( |
absl::Span< const LiteralValueValue > | product | ) |
|
◆ AddLinearExpression() [1/2]
| void operations_research::sat::LinearConstraintBuilder::AddLinearExpression |
( |
const LinearExpression & | expr | ) |
|
◆ AddLinearExpression() [2/2]
| void operations_research::sat::LinearConstraintBuilder::AddLinearExpression |
( |
const LinearExpression & | expr, |
|
|
IntegerValue | coeff ) |
◆ AddLiteralTerm()
| ABSL_MUST_USE_RESULT bool operations_research::sat::LinearConstraintBuilder::AddLiteralTerm |
( |
Literal | lit, |
|
|
IntegerValue | coeff = IntegerValue(1) ) |
◆ AddQuadraticLowerBound()
◆ AddTerm() [1/2]
| void operations_research::sat::LinearConstraintBuilder::AddTerm |
( |
AffineExpression | expr, |
|
|
IntegerValue | coeff ) |
◆ AddTerm() [2/2]
| void operations_research::sat::LinearConstraintBuilder::AddTerm |
( |
IntegerVariable | var, |
|
|
IntegerValue | coeff ) |
◆ Build()
◆ BuildConstraint()
| LinearConstraint operations_research::sat::LinearConstraintBuilder::BuildConstraint |
( |
IntegerValue | lb, |
|
|
IntegerValue | ub ) |
◆ BuildExpression()
| LinearExpression operations_research::sat::LinearConstraintBuilder::BuildExpression |
( |
| ) |
|
◆ BuildIntoConstraintAndCheckOverflow()
| bool operations_research::sat::LinearConstraintBuilder::BuildIntoConstraintAndCheckOverflow |
( |
IntegerValue | lb, |
|
|
IntegerValue | ub, |
|
|
LinearConstraint * | ct ) |
◆ Clear()
| void operations_research::sat::LinearConstraintBuilder::Clear |
( |
| ) |
|
|
inline |
◆ NumTerms()
| int operations_research::sat::LinearConstraintBuilder::NumTerms |
( |
| ) |
const |
|
inline |
◆ ResetBounds()
| void operations_research::sat::LinearConstraintBuilder::ResetBounds |
( |
IntegerValue | lb, |
|
|
IntegerValue | ub ) |
|
inline |
The documentation for this class was generated from the following files: