Originally posted by: SystemAdmin
[ncasti said:]
Hi,
Could it be possible to read a Constraint from a file?
Not a difficult one, just something as x+y==17 or x-y==5
Lets suppose an IloIntVar x, IloIntVar y and IloModel model have been previously created.
Now I create an ifstream to read some *.txt file and each line of the file has one "simple" constraint.
Can I use ifstream >> IloExtractable object, IloConstraint object, IloRange object, IloNumExprArg object ?
Thank you very much for your help.
Nacho Castiñeiras
#DecisionOptimization#MathematicalProgramming-General