Originally posted by: anahana
Good morning guys,
This is a really simple question and I am a bit embarrassed to ask it, but I can't find an answer to it. I have a number of equations stored in instances of IloExpr. Each expression depends on multiple variables. I need to evaluate the expressions for a set of variable values that I specify. What I am doing now is writing the expression(s) again while substituting the variables with the values I want. This is hectic since the expressions are long and evaluate them often.
Is there an "evaluate" method, or a "get" method, where I pass an expression and an array of variable values, and it returns the evaluation? I looked around and didn't find anything. If it is not there, I can just write one.
Regards,
#CPOptimizer#DecisionOptimization