Originally posted by: freezona
Dear all,
How to use division method using variable(IloNumVar type) in Java?
How can i slove below problem?
IloNumVar[] inside = new IloNumVar[2];
inside[0] = cplex.semiContVar(0.0,Double.MAX_VALUE, IloNumVarType.Int);
inside[1] = cplex.semiContVar(0.0,Double.MAX_VALUE, IloNumVarType.Int);
IloNumExpr expr = cplex.prod(1.0/inside[0],cplex.constant(1)); ======> error occurred.
<< error message : The operator / is undefined for the argument type(s) double, IloNumVar >>
=================================================================================================
Thanks in advance.
#CPLEXOptimizers#DecisionOptimization