Skip to main content

All Questions

0 votes
1 answer
132 views

Exception from IBM ILOG concert: can not read data from excel

I am using IBM Cplex studio IDE to solve an optimization problem called location set covering problem with backup, I have coded the model and solved it for a small problem, which works fine. When I am ...
Eric E Sättar's user avatar
1 vote
1 answer
49 views

Proportionality in ILOG CPLEX

I am trying to include proportionality in my solution. The .dat is as follows: Farms = {Rice,Barns,Snyder}; Crops = {Corn,Wheat,SoyBeans}; UsableLand = [400,600,300]; Water = [600,800,375]; ...
volleypot's user avatar
0 votes
1 answer
62 views

CPLEX ILOG - 3 Crops across 3 Farms

I am trying to solve 9 planting decisions for 3 crops on each of 3 farms. I am given data for Available land on each farm, Available water on each farm, Maximum Quota for each crop, Water Consumption ...
volleypot's user avatar
0 votes
1 answer
406 views

CPLEX: How to run subset constraints in OPL?

CPLEX; Mixed Integer Linear Programming; Constraint Formulation: There are 150 towns in the dataset, each town having several markets (or "mandis"). Total number of mandis in the dataset = ...
Aman Kabra's user avatar
-1 votes
1 answer
429 views

ILOG CPLEX: Constraint assigning a decision variable in specific order

In CPLEX I built the attached model which I want to use for locating products to locations. The constraint that tries to order the allocation of products to locations in ascending order Stackingorder[...
JLo's user avatar
  • 1
0 votes
1 answer
319 views

Cplex Concert technology duals

I tried to get the duals of constraints This is the code, implemented in C++: IloEnv env; IloModel MasterProblem(env); IloNumVarArray XX(env,Create_routes.size(),0,IloInfinity,ILOFLOAT);...
math2014's user avatar
0 votes
1 answer
3k views

Sum and conditions in linear programming - Cplex // OPL

Is there an easy way to apply a condition into a sum in OPL or to get around this problem ? For example is it possible to do something like : forall (i in Factories) forall( j in Time) ...
Soji's user avatar
  • 269
1 vote
1 answer
513 views

Generating random solutions in CPLEX

I have a simple model in IBM ILOG CPLEX. dvar float x in 1..99; dvar float y in 1..99; dvar float z in 1..99; subject to { x + y - z == 41.3; } I need random solutions for x, y and z. However, I ...
user avatar
1 vote
1 answer
1k views

How to use IloExprArray in code?

I have just started to use cplex library and get stuck in defining IloExprArray in my code. Here is my snippet of code: IloExprArray diff; diff= IloExprArray(iloEnv,list.size()); for( int i=1; i<=...
Amit Pal's user avatar
  • 11.1k
1 vote
1 answer
473 views

How to get only one path beginning and ending at same node?

I'm trying to run this model in Cplex/OPL to find the best path given distances of shops, and quantities + prices in each shop for different products. The problem is I'm getting results of paths that ...
user1123417's user avatar
11 votes
1 answer
10k views

How to make cplex not output to terminal

I am using the IBM cplex optimizer to solve an optimization problem and I don't want all terminal prints that the optimizer does. Is there a member that turns this off in the IloCplex or IloModel ...
DiegoNolan's user avatar
  • 3,776
5 votes
1 answer
1k views

Optimal use of CPLEX Java for high-throughput

I am solving large optimization problems with CPLEX Java API. Currently I just IloCplex cplex = new IloCplex(); ... add lots of variables and constraints ... cplex.solve(); cplex.end(); This works ...
Noah Watkins's user avatar
  • 5,540