Skip to main content

All Questions

-1 votes
1 answer
71 views

Getting exception while using CPLEX six dimentional variables

I am getting the following exception while trying to print a the following code. Can anyone advise what happened? for (int i = 0; i < numberOfNodes; i++) { for (int j = 0; j < numberOfNodes; j+...
Khaled Shah's user avatar
2 votes
1 answer
786 views

CPLEX java - Equality constraints for multidimensional arrays

I am solving a Linear Programming using CPLEX in Java. I have a binary decision variable defined as IloNumVar[] xd = new IloNumVar[Tend]; where Tend is the time. The decision variable is subject to ...
user3630311's user avatar
1 vote
1 answer
2k views

CPLEX multi dimentional array

I have variable xijm and it can be either 0 or 1. I know that I should IloArray<> but I need to see an example in java. I have found this but I am using java. The idea is not clear to me! Can ...
Sara's user avatar
  • 2,436