Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Holds a Boolean variable or its negation. More...
Public Member Functions | |
ILiteral | Not () |
Returns the Boolean negation of the literal. | |
int | GetIndex () |
Returns the logical index of the literal. | |
LinearExpr | AsExpr () |
Returns the literal as a linear expression. | |
LinearExpr | NotAsExpr () |
Returns the Boolean negation of the literal as a linear expression. | |
Holds a Boolean variable or its negation.
Definition at line 25 of file IntegerExpressions.cs.
LinearExpr Google.OrTools.Sat.ILiteral.AsExpr | ( | ) |
Returns the literal as a linear expression.
Implemented in Google.OrTools.Sat.BoolVar, and Google.OrTools.Sat.NotBoolVar.
int Google.OrTools.Sat.ILiteral.GetIndex | ( | ) |
Returns the logical index of the literal.
Implemented in Google.OrTools.Sat.NotBoolVar.
ILiteral Google.OrTools.Sat.ILiteral.Not | ( | ) |
Returns the Boolean negation of the literal.
Implemented in Google.OrTools.Sat.BoolVar, and Google.OrTools.Sat.NotBoolVar.
LinearExpr Google.OrTools.Sat.ILiteral.NotAsExpr | ( | ) |
Returns the Boolean negation of the literal as a linear expression.
Implemented in Google.OrTools.Sat.BoolVar, and Google.OrTools.Sat.NotBoolVar.