Skip to main content

All Questions

1 vote
1 answer
348 views

Warning cplexlink1261 using Cplex for Matlab: unsupported Matlab verions?

I made a code that solve a Mixed Integer Linear Problem (MILP). In order to be as fast as possible, my code is using Cplex functions to solve the MILP, cplexmilp and cplexoptimset. The only thing I ...
Patapunfate's user avatar
0 votes
1 answer
151 views

How to add constraint x∈{a,b} using cplex in Matlab?

I am trying to get solution for variable x using cplex in Matlab , but I'm confused how to write the syntax since I wanna the solution x∈{a,b}. For example, assume that I have this LP problem: ...
shin's user avatar
  • 1
0 votes
0 answers
397 views

Setting multiple cores option with cplex matlab toolbox function cplexmilp

I am using CPLEX for MATLAB toolbox wherein I formulate my MILP as a huge matrix and use the function cplexmilp to call the solver. Since the model I am solving is really huge, I intend to set the ...
crypto's user avatar
  • 105
0 votes
2 answers
453 views

use CPLEX from MATLAB

I have a text file of lp problem Minimize 5.8 x_1 + 3 x_2 subject to x_1 + 2.1 x_2 = 6 3 x_2 < 4.2 bounds x_1 >= 0 x_2 >= 0 Integer x_1 end I use ...
Dr.PB's user avatar
  • 1,077
0 votes
2 answers
565 views

cplex: lowering the effective tolerance of cplexlp by scaling the linear program

I'm using cplex linear programming in matlab (cplexlp) to solve the problem min f'u s.t. Au>=b, u>=lb using [u,minima,flag] = cplexlp(f,-A,-b,[],[],lb); but I need a solution tolerance of ...
Uri Cohen's user avatar
  • 3,608
0 votes
1 answer
799 views

how to solve integer linear programming when one of the variables belong to a set

I am working on solving optimization problems using integer linear programming, one of the constraints assume that the variable has a value belongs to a set of values like the following min 5*x1 + 2*...
user3216838's user avatar
2 votes
1 answer
4k views

What cause the error "Row 'c1408' infeasible, all entries at implied bounds."? How can I display it in matlab?

I ran into this problem when I tried to use cplexmiqp in matlab to solve a unit commitment problem. I have a lot of constraints but I carefully checked all the constraints, they should be fine. I ...
Dear Darcy's user avatar
0 votes
1 answer
474 views

Multiples of decision variable

I am a newbie for mathematical programming stuff. I want to solve a MILP problem. It aims to maximize summation of x_i s , however I want x_i s either 0 or multiple of some value (let's say, 5). So ...
john m's user avatar
  • 37
1 vote
2 answers
3k views

Giving priority to some variables in linear programming

I have to optimize an objective using binary integer linear programming, my objective function is: Maximize f= (c1 * x1) + (c2 * x2) +(c3 * x3) + ... + (c10000 * x10000) Subject to some constraints ...
oMiD's user avatar
  • 322
4 votes
2 answers
2k views

Weird result of CPLEX "cplexmilp" function in MATLAB

According to my previous question, I want to optimize an objective function using binary integer linear programming (all of variables are binary) as follows: Minimize f = (c1*x1) + (c2*x2) + MAX((...
oMiD's user avatar
  • 322
2 votes
2 answers
738 views

MATLAB has crashed when using CPLEX API for linear programming

Hi I want to solve linear programming (LP) problem which has 25000 binary variables and almost 2555 equality constraints and 50 inequality constraints , so I used cplexbilp function which CPLEX API ...
oMiD's user avatar
  • 322
5 votes
1 answer
10k views

CPLEX + YALMIP -- "Solver not found"?

I'm trying to get started with YALMIP, which is a Matlab interface to optimization solvers such as CPLEX. I have an objective function obj and constraints cons, and I've plugged them into Yalmip... ...
solvingPuzzles's user avatar
2 votes
0 answers
2k views

Sensitivity analysis in LP solvers from MATLAB

As far as I understand, CPLEX, LP_solve and GLPK, among other LP solvers, offer sensitivity analysis. I have the above three solvers installed on my machine, along with these two MATLAB wrappers: ...
Amelio Vazquez-Reina's user avatar