I'm implementing a solution for Graph Coloring problem using Microsoft Solver Foundation and F#. Recently I've found this piece of documentation:
which explains how to implement this using C#. I tried to translate this, but there's a problem with adding constraints. In C# it's quite simple:
model.AddConstraints("borders",
be != de, be != fr, be != nl, de != fr, de != nl);
However a literate translation to F# doesn't work:
// WRONG !!
model.AddConstraints("borders",
be <> de, be <> fr, be <> nl, de <> fr, de <> nl);
After a while I found a function in Term class, which might be used instead:
model.AddConstraints("borders1", Term.op_Inequality(be, de)) |> ignore
However, using this "Term.op_Inequality" is quite inconvenient. Is there a way to solve my problem better ?