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 e1ba22e commit d077c2cCopy full SHA for d077c2c
ortools/sat/csharp/SatSolverTests.cs
@@ -631,7 +631,21 @@ public void LinearExprNotBoolVarOperatorTest()
631
{
632
Console.WriteLine("LinearExprBoolVarNotOperatorTest");
633
CpModel model = new CpModel();
634
- ILiteral v = model.NewBoolVar("v");TestInter
+ 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