Originally posted by: SystemAdmin
[prubin said:]
It depends on what you are trying to do. If you are just working with ordinary double precision Java variables, Math.max is probably the right way to go. If your arguments include instances of IloNumExpr or IloIntExpr, then something like this should work:
IloCplex cp = new IloCplex(); // this will eventually be your model
// ...
IloNumExpr expr;
double z;
// ... do something with expr and z ...
IloNumExpr q = cp.max(expr, z);
/Paul
#DecisionOptimization#MathematicalProgramming-General