1 year ago

#257557

test-img

Charmante

How to code a constaint that contains an integral in java &cplex?

I started Java programming 2 months ago. I don't know how to code a constraint in the Java+Cplex library. This constraint contains an integral. Does Java contain an integral library already and I'll need just to enter the bounds or is there another method for this?

 //constraints
            IloLinearNumExpr capacity= cplex.linearIntExpr();
            capacity.addTerms();
// the constraint is I-integral(P)dt+ Ps(t1-t0)>Ilow

java

math

constraints

cplex

mixed-integer-programming

0 Answers

Your Answer

Accepted video resources