Originally posted by: SystemAdmin
You can use IloNumVar.setLB() and IloNumVar.setUB() to set lower and upper bound to the same value which essentially fixes the variable to that value.
Or you can add a constraint 'variable == value'.
#CPLEXOptimizers#DecisionOptimization