All Questions
18 questions
-1
votes
1
answer
50
views
How to Solve p-median with Java CPLEX?
This is an equivalent model to the sample that ships with CPLEX Studio/opl/examples/opl/pmedian, but written in OPL. Here is the equivalent in Java:
import ilog.concert.IloConstraint;
import ilog....
0
votes
1
answer
380
views
How to clone a cplex object in Java?
I am solving a problem in Java using the CPLEX library. I use a class "Model" to create a CPLEX object, and add to it variables, objective function and multiple constraints. This is the ...
-1
votes
1
answer
230
views
MIQP to MILP linearization in Java Eclipse using Cplex concert
I am coding in Eclipse using Cplex concert technology to solve a Mixed Integer programming problem. The objective function is a QP (product of binaries). I wanted to linearize the MIQP to MILP. I ...
0
votes
1
answer
156
views
CPLEX maximization of revenue
I'm working on a project on cplex and this is the case:
it's a chemical plant where's produced and sold 2 final products
there are 3 reactors and each reactor can perform different tasks, one at a ...
1
vote
1
answer
601
views
Multiple Objective Optimization Java
I've implemented a linear programming problem using the CPLEX API in Java. This problem has 5 linear objectives with different scales. I've tried to implement some normalization methods, but without ...
0
votes
1
answer
401
views
Add quadratic penalty term to objective function in cplex (Java)
I'm developing an Optimization tool for a domestic energy system that also contains a battery. All values are correct and the solution makes sense. The problem is that the solution contains very ...
0
votes
1
answer
500
views
Is it possible to creat an array of Cplex objects or IloModel?
I am using Java to solve a series of problems with Cplex. My main goad is to optimise different stances of a model with modified variables and constraints ( and no, I can't modify the main model every ...
-2
votes
1
answer
153
views
IloEnv is not working
I am using Java to solve a series of problems with Cplex. My main goad is to optimise different stances of a model with modified variables and constraints ( and no, I can't modify the main model every ...
0
votes
1
answer
328
views
Cplex is not considering multiple initial solution
When i provide multiple initial solution to cplex. it only consider first initial solution.
case 1: I gave 2 initial solution. below is the code and node file Code:
cplex.addMIPStart(startVar1, ...
0
votes
1
answer
459
views
Printing CPLEX eliminated rows, columns and substitutions
I am using Java API of CPLEX optimization software. After the solver finishes the optimization, it prints the solution and the parameters of the LP as well:
MIP Presolve eliminated 282 rows and 230 ...
1
vote
1
answer
206
views
Set term factors dynamically from an imported cplex-Model
Let's say i have an OptimizationModel abc.lp, which i want to import with the CPlex java-API. I use: importModel function (click) to import it. Now i want to change some decision variable's factors in ...
1
vote
2
answers
2k
views
Goal Programming in Cplex
Let's say I have the two goals. I want to reach that goals really close:
i=1) profit goal: 12𝑥 + 9y ≥ 125
i=2) cost-goal: 5𝑥 + 7y ≤ 50
In the literature you can do goal-programming by inserting ...
1
vote
1
answer
386
views
CPLEX minimize piecewise linar functions
I'm currently setting up a Java program using cplex. I want to find the minimum of a cost function with lots of terms.
Now it turns out that some of these cost terms should not be linear but ...
0
votes
1
answer
868
views
Java Cplex results different than IBM Optimization studio
I implemented a LP problem in IBM Optimization Studio using OPL to create the model. After verification of the model I wanted to put it in Java to script the parameters for simulation purposes. I ...
0
votes
1
answer
280
views
Setting termination time in CPLEX using Java
Using java and OptimJ plugin, I am writing a Cplex model and testing it using many test cases. But when I execute it, some cases takes long time to finish, which is not practical. I am wondering if ...