We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f24d33e commit f1a32a6Copy full SHA for f1a32a6
ortools/sat/csharp/SatSolverTests.cs
@@ -632,6 +632,20 @@ public void LinearExprNotBoolVarOperatorTest()
632
Console.WriteLine("LinearExprBoolVarNotOperatorTest");
633
CpModel model = new CpModel();
634
ILiteral v = model.NewBoolVar("v");
635
+ LinearExpr e = v.NotAsExpr() * 2;
636
+ Console.WriteLine(e);
637
+ e = 2 * v.NotAsExpr();
638
639
+ e = v.NotAsExpr() + 2;
640
641
+ e = 2 + v.NotAsExpr();
642
643
+ e = v.NotAsExpr();
644
645
+ e = -v.NotAsExpr();
646
647
+ e = 1 - v.NotAsExpr();
648
649
e = v.NotAsExpr() - 1;
650
Console.WriteLine(e);
651
}
0 commit comments