Originally posted by: Namal
Hello,
i want to add a constraint to my problem, that looks like this.
x[1] + x[2] < 1
now IloRange only allows <=, >= and ==
and I get an Error if I try to add it like that: no known conversion for argument 1 from 'IloConstraint' to 'IloRangeArray'
Documentation says I should use a constructor from IloRange to create a constraint, but this again doest allow lesser or greater. So how can I crate a constraint and add it to my problem, thx.
#CPLEXOptimizers#DecisionOptimization