Originally posted by: Nodame
I am calling cplex from C# to solve an LP. I want to write a Linear constraint in Cplex that would achieve the following:
my variables should be multiples of a certain number, say 10 i.e. x modulo 10 = 0 for all my variables x.
I don't know if cplex has a modulo operator, and even if it does, I am not sure how to write this constraint in a linear form.
I would like to have the constraint x = 10 k , for some integer k
or something like "cplex.AddEq( cplex.Modulo(x, 10), 0 )" with this constraint being Linear.
#CPLEXOptimizers#DecisionOptimization