[Help-glpk] gmpl+ILOG Cplex

2009-09-25 Thread G Chandramouli
Hello all,     I am doing my project on  facility location problem. It involves almost 20 constraints and 400 binary variables. We have ILOG Cplex installed on our server. AMPL is not installed with it. I need a proper modelling language for using ILOG Cplex. Can I link gmpl to

[Help-glpk] Interface Between Cplex 12.2 Concorde

2011-01-19 Thread Andrew Makhorin
> Many thanks for all your assistance. I should be able to get Glpk and > Concorde working. Regarding the interface between Cplex and Concorde, > I am running Cplex 12.2 at the moment and was wondering if you have > any advice on interfacing between these programs? Would this requ

Re: [Help-glpk] gmpl+ILOG Cplex

2009-09-25 Thread Jose Monreal
GLPK reads and writes models in cplex format, in the source package is the documentation. 2009/9/25 G Chandramouli > Hello all, > I am doing my project on facility location problem. It > involves almost 20 constraints and 400 binary variables. We have ILOG > Cpl

Re: [Help-glpk] gmpl+ILOG Cplex

2009-09-26 Thread glpk xypron
Hello Mouli, please, take a look at COIN-OR Symphony and OSI. These should allow you to read GMPL files with GLPK and solve the problem with CPLEX. Unfortunately GMPL postprocessing is not yet supported. See: https://projects.coin-or.org/Osi/ticket/70 https://projects.coin-or.org/Osi https

Re: [Help-glpk] Converting solutions between CPlex and GLPK

2011-08-31 Thread Andrew Makhorin
> I have a hard mixed integer problem. Due to the size of the problem, I > like to specify it using Mathprog. But I have CPlex to do the number > crunching, leading to the following setup: > > 1) Use GLPK to output the problem into LP format > 2) Use CPlex to solve th

Re: [Help-glpk] Can't read CPLEX file

2006-03-05 Thread Andrew Makhorin
> I currently have GLPK 4.9 installed and the following CPLEX file: > maximize 1 > st > - 2 x1 - 3 x2 <= -1 > 2 x1 + 3 x2 <= 1 > - 1 x1 - 1 x2 <= -4 > 1 x1 + 1 x2 <= 4 > bounds > x1 free > x2 free > end > > Cplex can read it. > glpsolve

Re: [Help-glpk] GLPK-CPLEX Link

2010-12-13 Thread Noli Sicad
Amir, GLPK don't use CPLEX. GPLK is also a solver and API. You don't need another solver for mathprog (i.e) glpsol. For AMPL and CPLEX users. CPLEX/AMPL: GLPK/GMPL(MathProg AMPL:GMPL(MatProg) ampl model.mod model.dat; : glpsol - m model.mod -d

Re: [Help-glpk] Can't read CPLEX file

2006-03-07 Thread Paulo J. Matos
On 06/03/06, Andrew Makhorin <[EMAIL PROTECTED]> wrote: > > I currently have GLPK 4.9 installed and the following CPLEX file: > > maximize 1 > > st > > - 2 x1 - 3 x2 <= -1 > > 2 x1 + 3 x2 <= 1 > > - 1 x1 - 1 x2 <= -4 > > 1 x1 + 1 x2 <= 4

Re: [Help-glpk] gmpl+ILOG Cplex

2009-09-25 Thread Jose Monreal
Can you please tell me how to input a random matrix of 400 * > 400 in GMPL or can I write it from some excel file ? > Regards > Mouli > > > On Fri, Sep 25, 2009 at 11:09 PM, Jose Monreal wrote: > >> GLPK reads and writes models in cplex format, in the source package is

Re: [Help-glpk] Converting solutions between CPlex and GLPK

2011-09-01 Thread Andrew Makhorin
> > You may use 'glpsol -o filename --tmlim 1' to produce a listing that > > contains all rows and columns in the same order as glpsol expects them > > to appear on reading the solution file. Then compare that listing and > > the cplex output to find which

Re: [Help-glpk] How did you rewrite the cplex API?

2012-07-08 Thread Christophe-Marie Duquesne
On Sun, Jul 8, 2012 at 8:19 PM, Andrew Makhorin wrote: > From scratch. I used the reference manual for cplex 9.0 publicly > available on their internet site (IIRC, it was in 2004 or 2005, before > IBM acquired this package) as well as some materials available on a > public cplex for

Re: [Help-glpk] How did you rewrite the cplex API?

2012-07-08 Thread Andrew Makhorin
> Browsing the glpk sources, I found the following file: examples/cplex/cplex.h > > I am the author of lazylpsolverlibs [1], a project aiming at > generating proxy libraries for commercial lp solvers. My goal is to > provide opensource libraries to link to for open source prog

[Help-glpk] Interface Between Cplex 12.2 Concorde

2011-01-18 Thread Matthew Adendorff
Hi Andrew and Xypron Many thanks for all your assistance. I should be able to get Glpk and Concorde working. Regarding the interface between Cplex and Concorde, I am running Cplex 12.2 at the moment and was wondering if you have any advice on interfacing between these programs? Would this require

[Help-glpk] Converting solutions between CPlex and GLPK

2011-08-31 Thread Timon ter Braak
I have a hard mixed integer problem. Due to the size of the problem, I like to specify it using Mathprog. But I have CPlex to do the number crunching, leading to the following setup: 1) Use GLPK to output the problem into LP format 2) Use CPlex to solve the problem 3) Use conversion script to

[Help-glpk] Can't read CPLEX file

2006-03-05 Thread Paulo J. Matos
Hi all, I currently have GLPK 4.9 installed and the following CPLEX file: maximize 1 st - 2 x1 - 3 x2 <= -1 2 x1 + 3 x2 <= 1 - 1 x1 - 1 x2 <= -4 1 x1 + 1 x2 <= 4 bounds x1 free x2 free end Cplex can read it. glpsolve: $ glpsol --cpxlp test.lp lpx_read_cpxlp: reading problem data f

Re: [Help-glpk] GLPK-CPLEX Link

2010-12-14 Thread Marcos Roberto Silva
Hello Amir,You can also use glpk to create a lp file to be used in cplex:glpsol -m model.mod -d data.dat --check --wcpxlp model.lpand on the cplex interactive optimizer prompt:>read model.lp>optimize>...All the best.Marcos Em 14/12/2010 04:49, glpk xypron < xypron.g...@gmx.de >

Re: [Help-glpk] info command --wcpxlp

2012-08-02 Thread Andrew Makhorin
> You can use the lp file directly in cplex. Although I think it is -wlp, > but maybe I'm using an outdated version. The options '--wlp filename' and '--wcpxlp filename' are equivalent (the latter is obsolete and kept for compatibility). > > I want to com

Re: [Help-glpk] GLPK-CPLEX Link

2010-12-13 Thread glpk xypron
Hello Amir, Coin-Or offers software which will allow you to write a model in the GMPL language and to solve it with CPLEX. Please, refer to http://www.coin-or.org/projects/SYMPHONY.xml and http://www.coin-or.org/projects/Osi.xml If these libraries are too much overhead for you, you could also

Re: [Help-glpk] request an enhancement

2006-01-13 Thread Brady Hunsaker
Liambas Christos wrote: > Hello everyone, > > Sorry for disturbing you but is there an implementation for using cplex > in glpk? I’ve already subscribe to the mailing list but no confirmation > mail come!I hope it will. > > Many thanks > > Could you clarify wha

Re: [Help-glpk] Converting solutions between CPlex and GLPK

2011-09-01 Thread Timon ter Braak
On 9/1/11 3:27 AM, Andrew Makhorin wrote: You may use 'glpsol -o filename --tmlim 1' to produce a listing that contains all rows and columns in the same order as glpsol expects them to appear on reading the solution file. Then compare that listing and the cplex output to find wh

[Help-glpk] [Fwd: translate addTerm Cplex Ilog]

2012-01-12 Thread Andrew Makhorin
Forwarded Message From: Simon Vocella To: help-glpk@gnu.org Subject: translate addTerm Cplex Ilog Date: Thu, 12 Jan 2012 12:41:52 +0100 Hi all, I have a linear program with ilog/cplex of my friend and i'm trying to translate in gplk-java. In the objective function i have

Re: [Help-glpk] Callbacks for column generation

2009-12-09 Thread Javier Zambrano
". All columns should be added to the mip instance before a call to glp_integer. > Could you do something like this with CPLEX? AFAIK, cplex also does not allow generating columns during the mip solution process. But I can mistake, so it #39;d be better to ask this qus

[Help-glpk] glpsol - cplex format question

2007-04-24 Thread MarkP
This file: \* MtxLP *\ Maximize OBJ: C + A + B + D Subject To _C1: - A - B = 0 _C2: - A + C - D = 0 Bounds A <= 1 B <= 1 D <= 1 C <= 1 End causes glpsolto bomb out with the message: lpx_read_cpxlp: reading problem data from `MtxLP-pulp.lp'... MtxLP-pulp.lp:9: symbol `B' i

Re: [Help-glpk] CPLEX vs GMPL: different answers for same problem

2012-10-22 Thread Reginald Beardsley
After considering it overnight, I'm inclined to attribute the difference to user error creating the CPLEX version and focus my efforts on validating the GMPL version. I completely changed the problem notation, so even in a consistent format they would be very different and would take a d

[Help-glpk] A Simple MIP model in MathProg - (simple cplex mip model included)

2012-11-06 Thread Noli Sicad
Hi, I got this simple MIP model (Cplex format) from Sample for solving MIP (mixed integer programming) problem with GLPK https://gist.github.com/2450935 Maximize obj: x1 + 2 x2 + 3 x3 + x4 Subject To c1: - x1 + x2 + x3 + 10 x4 <= 20 c2: x1 - 3 x2 + x3 <= 30 c3: x2 - 3.5

[Help-glpk] Fw: " Matlab don't see glpk.dll ?

2012-10-23 Thread Michael Rudzsky
is as follows: MILES a.. MILES Code ZIP file You will need a solver, e.g., CPLEX or GLPK, to solve the LP. The results reported in the paper were obtained using CPLEX. Here we provide a solver based on GLPK (for Win XP), which is a little slower than CPLEX for the datase

Re: [Help-glpk] MIP Solvers (i.e CBC, CPLEX, GLPK, GUROBI, LPSOLVE, SCIPC, SCIPL, SCIPS and XPRESS) Benchmark

2012-11-18 Thread Noli Sicad
> FYI: You can try to post your instance to the neos server; see > http://www.neos-server.org/neos/solvers/index.html . > I submitted the mps format and CPLEX format in Neos server Results. 1. MPS format in Gurobi - Objective function is 0. 2. CPLEX format. It was solved quickly

[Help-glpk] Fw: " Matlab don't see glpk.dll ?

2012-10-23 Thread Michael Rudzsky
is as follows: MILES a.. MILES Code ZIP file You will need a solver, e.g., CPLEX or GLPK, to solve the LP. The results reported in the paper were obtained using CPLEX. Here we provide a solver based on GLPK (for Win XP), which is a little slow

[Help-glpk] [Fwd: MathProg to Cplex problem]

2014-04-07 Thread Andrew Makhorin
Forwarded Message From: smor...@ibisc.univ-evry.fr To: help-glpk@gnu.org Subject: MathProg to Cplex problem Date: Mon, 7 Apr 2014 11:24:10 +0200 Hi All, I'm a new user of both Cplex and Glpsol, and i'm currently facing a strange problem which you guys might know

Re: [Help-glpk] glpsol - cplex format question

2007-04-24 Thread Andrew Makhorin
reading problem data from `MtxLP-pulp.lp'... > MtxLP-pulp.lp:9: symbol `B' in wrong position > CPLEX LP file processing error This is because 'B' in the first position is recognized as the first letter of the 'Bounds' keyword. A common rule is *not to begin* ide

Re: [Help-glpk] Callbacks for column generation

2009-12-09 Thread Andrew Makhorin
ls checks that and raises the fatal error "operation not allowed". All columns should be added to the mip instance before a call to glp_integer. > Could you do something like this with CPLEX? AFAIK, cplex also does not allow generating columns during the mip solution process. But I c

Re: [Help-glpk] GLPK reading problem

2017-06-16 Thread Andrew Makhorin
, most solvers are supporting LP file without problem, such as CBC, > LP_solve, Cplex, AMPL, GAMS, and SCIP. > On using other packages you will encounter the same issue, because, as I mentioned earlier, cplex lp format doesn't allow encoding lp/mip in a general form. AFAIK, for example,

[Fwd: Re: [Help-glpk] Gusek : a GLPK IDE for Windows]

2008-12-09 Thread Luiz M. M. Bettoni
Hello again, Andrew. Hi All. I need some opinions. Actually Gusek use the following associations with common language actions: - Compile = Check GMPL sintax (--check) - Build = Generate Cplex LP from GMPL (--wcpxlp) - (build expanded equations, like a CTRL+G on lingo) - Go = Run GMPL Model And

Re: [Help-glpk] Fw: " Matlab don't see glpk.dll ?

2012-10-23 Thread Noli Sicad
sky > > A file of this package describing what to do with > glpkmex.dll , glpk.dll, glpk49.dll > is as follows: > MILES > > > ---- > > a.. MILES Code > > > ZIP file > > &g

Re: [Help-glpk] [Fwd: translate addTerm Cplex Ilog]

2012-01-13 Thread glpk xypron
intuitive interface to GLPK. See http://www.xypron.de/projects/linopt/xref/de/xypron/linopt/examples/CutSimple.html for an example. Best regards Xypron > Forwarded Message > Subject: translate addTerm Cplex Ilog > Date: Thu, 12 Jan 2012 12:41:52 +0100 > > Hi all, >

[Help-glpk] Re: GLPK-CPLEX Link

2010-12-13 Thread Amir Hajimiragha
♫ Thanks very much, Noli. I'll go through the information you kindly provided. My main intention was to use the capabilities of the new versions of CPLEX. Regards, Amir ___ Help-glpk mailing list Help-glpk@gnu.org http://lists.gnu.org/mailman/lis

Re: [Help-glpk] interpretation of MPS files

2011-03-07 Thread Andrew Makhorin
ite upper bound, see > http://lpsolve.sourceforge.net/5.5/mps-format.htm > > Same is true for Gurobi and ILOG CPLEX, see > http://www.gurobi.com/doc/40/refman/node580.html > http://www.lix.polytechnique.fr/~liberti/teaching/xct/cplex/reffileformatscplex.pdf Xypron, looks like you have the same m

Re: [Help-glpk] Translated MPS (fixed and freemps) and CPLEX (LP) from MathProg Model have 0.000 Objective function whiel MathProg Model has correct one

2016-03-12 Thread Noli Sicad
Hi Andew, Thanks Andrew. Learn more tricks on dealing with mps and lp files now. We have to put "--max" or probably "--min" as well in submitting / passing these files in glpsol. MPS and Cplex lp files work perfectly now. Thanks. Noli On 3/13/16, An

Re: [Help-glpk] gmpl manual

2008-03-20 Thread Andrew Makhorin
> In general I don't recommend generating instance files like MPS or CPLEX > LP directly. If you don't want to use a modeling language because of > size or other issues, then look at the APIs that solvers have to > directly input an instance. COIN-OR OSI (Open Solver Int

[Help-glpk] CPLEX API - missing routines

2009-11-08 Thread Chris Alford
Hi, I want to use the CPLEX API interface code supplied with the distribution to link an existing application with GLPK. The notes supplied indicate that the API roughly matches CPLEX 9.0. Going through the list of unresolved external symbols, I have identified a small number of routines that

RE: [Help-glpk] Understanding the LPX_K_TOLOBJ parameter

2008-02-23 Thread Joey Rios
> > In CPLEX, I'd set the > > mipgap value appropriately. After reading through the GLPK manual, > Do not change tol_obj. Set the relative mip gap, say, to 0.01 (that > means 1%) to prematurely stop the search. In this case you obtain > a suboptimal solution. Bes

[Help-glpk] Print names of all rows after presolve?

2008-06-20 Thread Joey Rios
I am debugging the code I plan to use to generate cplex-format input files. I am comparing my generated files to my "gold standard" which is a MathProg model. I provide the MathProg model to glpsol and write out a cplex translation to compare against my directly-generated cplex file

[Help-glpk] Specifying a constraint in CPLEX notation

2012-10-03 Thread Reginald Beardsley
I'm doing basis pursuit using glpsol w/ input in CPLEX LP format. This has worked extremely well, but I decided to modify my problem formulation and have gotten myself into trouble. The new problem formulation is: D[k] = sum(i in m)(A[i] + sum(j in n)( B[i][j]*S[j][k])) where the A[i]

Re: [Help-glpk] CPLEX vs GMPL: different answers for same problem

2012-10-21 Thread Kevin Hunter
At 7:13pm -0400 Sat, 20 Oct 2012, Reginald Beardsley wrote: I've successfully converted from CPLEX to GMPL but have discovered that the answers are different. They're both excellent, but they're not the same. I *think* I'm solving the same problems, but the input to glp

Re: [Help-glpk] Can't read CPLEX file

2006-03-07 Thread Andrew Makhorin
> Thanks, and is it possible to have it output the solution found? > I searched --help flag but found nothing. To write the solution into a file for further browsing use the option '-o filename'. P.S. Another, more correct way to specify a dummy objective in cplex lp format

Re: [Help-glpk] Fw: " Matlab don't see glpk.dll ?

2012-10-23 Thread Noli Sicad
obj,x]=onenormsvm(Ktrain,label_train,lambda,mu); >>> >>> I would be very obliged to obtain your help >>> >>> Michael Rudzsky >>> >>> A file of this package describing what to do with >>> glpkmex.dll , glpk.dll, glpk49.dll >>&

Re: [Help-glpk] suboptimal solution from glp_intopt

2013-10-25 Thread Andrew Makhorin
On Fri, 2013-10-25 at 15:41 +0200, Jonas Behr wrote: > Hi, > > I would like to switch from CPLEX to glpk and encountered the following > problem. > > The solution returned by glp_intopt satisfies all constraints, but when > compared to the > CPLEX solution it is

[Help-glpk] GLPK-CPLEX Link

2010-12-13 Thread Amir Hajimiragha
Hello, Is there any way to call CPLEX within a mod file in GLPK? In AMPL, it is possible to do this by providing the path before the solve command; for example, the following will do this job: option solver "C:\AMPL112\cplexamp"; I am wondering if similar approach can be used in GLP

[Help-glpk] Indicator constraints

2011-12-16 Thread Xypron
Hello Andrew, users of GLPK have had often had problems with the accuracy of big M formulations. In CPLEX big M formulations can be replaced by indicator constraints. This is a constraint switched on and off by a binary. http://yalma.fime.uanl.mx/cplex11-manual/Content/Optimization/Documentation

Re: [Help-glpk] A Simple MIP model in MathProg - (simple cplex mip model included)

2012-11-06 Thread Raniere Gaia Silva
Noli, when you use > ### > var x{n in NUMBER}, integer; > # all the variables will be integers. > X2 and X3 needs to Float / Real, based on the results of the Original > Cplex problem. If some variables are integers and others ara real, than you have to use ###

[Help-glpk] research with glpk

2006-11-14 Thread carlos herrera
Hello world: I need information about papers of mathematical programming and operation research where they use glpk, to argue in my master thesis (relations between integer programming problems and its polyhedron) the use of glpk and not only cplex. In other words, for what is possible use glpk

Re: [Help-glpk] OPB output file anomaly

2008-02-29 Thread Andrew Makhorin
> I'm just a little lost as to where to start looking or how to > interpret what the problem is exactly.  Any insight appreciated.  I'm > happy to provide more info if it would be helpful. You could write your instance also in cplex format specifying the option '--wc

Re: [Help-glpk] restarting GLPK via a CPLEX LP file from the command line

2011-02-06 Thread glpk xypron
ion when glp_ios_reason returns GLP_IHEUR for the first time. Best regards Xypron Original-Nachricht > Datum: Sat, 05 Feb 2011 23:22:29 -0500 > Betreff: [Help-glpk] restarting GLPK via a CPLEX LP file from the command > line > Hello List, > > When invoked

Re: [Help-glpk] [Fwd: MathProg to Cplex problem]

2014-04-08 Thread Andrew Makhorin
> I'm a new user of both Cplex and Glpsol, and i'm currently facing a > strange problem which you guys might know how to go through. I want to > convert a MathProg file into cplex formulation so that i can solve it > faster. > > I use the simple command : glpsol -m m

Re: [Help-glpk] glpsol - cplex format question

2007-04-24 Thread Mark Poolman
; > A <= 1 > > B <= 1 > > D <= 1 > > C <= 1 > > End > > > > causes glpsolto bomb out with the message: > > > > lpx_read_cpxlp: reading problem data from `MtxLP-pulp.lp'... > > MtxLP-pulp.lp:9: symbol `B' in wrong pos

Re: [Help-glpk] CPLEX API - missing routines

2009-11-08 Thread xypron
/software/fachuebergreifend/or/cplex_doku/refcallablelibrary/html/functions/CPXchgcoeflist.html To change a coefficient in GLPK you first have to read the row, column, or matrix and then replace it. Best regards Xypron Chris Alford wrote: > > Hi, > > I want to use the CPLEX API in

[Help-glpk] [Fwd: Re: [No Memory Available Error]]

2012-08-18 Thread Andrew Makhorin
o work? I understand Xypron's advice regarding switching my database to MySql. I could potentially do this in the future, but for now, I really need to connect to Excel and Access! 2. I used to use CPLEX through generating the .lp or the .mps file through GLPK, then solve that using CPLEX.

Re: [Help-glpk] [Fwd: No Memory Available Error]

2012-08-18 Thread Robbie Morrison
can > I get it to work? I don't use these tools, but have you looked here: http://en.wikibooks.org/wiki/GLPK/ODBC http://en.wikibooks.org/wiki/GLPK/Windows_IDEs#Microsoft_Excel_integration [snip : migrating to MySql] > 2. I used to use CPLEX through generating the .lp > or t

Re: [Help-glpk] interpretation of MPS files

2011-03-08 Thread Mike Steglich
to be an upper bound of 1. >> >> lpsolve assumes an infinite upper bound, see >> http://lpsolve.sourceforge.net/5.5/mps-format.htm >> >> Same is true for Gurobi and ILOG CPLEX, see >> http://www.gurobi.com/doc/40/refman/node580.html >> http://www.lix.polytech

[Help-glpk] restarting GLPK via a CPLEX LP file from the command line

2011-02-05 Thread Kevin Hunter
Hello List, When invoked from the command line, I note that GLPK has options to shut off the presolver (--nopresol, --nointopt). Given the constraints that I must use a CPLEX LP file to give GLPK my optimization problem, and that I must run GLPK via the glpsol binary, is there a way to

Re: [Help-glpk] Translated MPS (fixed and freemps) and CPLEX (LP) from MathProg Model have 0.000 Objective function whiel MathProg Model has correct one

2016-03-12 Thread Andrew Makhorin
> Translated MPS (fixed and freemps) and CPLEX (LP) from MathProg Model > have 0.000 Objective function whereas the MathProg has correct > objective function ( 7.153413121e+07) > > What causes these problems, not getting the right results? > > The logs of the 2 models (Ma

Re: [Help-glpk] memory usage seems very high

2009-06-17 Thread Joey Rios
> Generating cc... >> So it does not get to the optimization >> piece. Are you sure it failed? Could it have been still working? On that >> point...> Another, much better way for such plain models is to use cplex lp > format.From experience with larger models, if

Re: [Help-glpk] [Fwd: Re: [No Memory Available Error]]

2012-08-18 Thread glpk xypron
Driver (*.xls)} > dbq=TestOne.xls > > Any thoughts why this is not working, and how can I get it to work? > > I understand Xypron's advice regarding switching my database to MySql. I > could potentially do this in the future, but for now, I really need to > connect

Re: [Help-glpk] Specifying a constraint in CPLEX notation

2012-10-03 Thread glpk xypron
J} B[i,j]; Best regards Xypron Original-Nachricht > Datum: Wed, 3 Oct 2012 09:55:18 -0700 (PDT) > Betreff: [Help-glpk] Specifying a constraint in CPLEX notation > I'm doing basis pursuit using glpsol w/ input in CPLEX LP format. This has > worked extremely well,

[Help-glpk] Webinterface to GLPK

2006-10-19 Thread Paul Mars
A very basic webinterface to the GLPK stand-alone solver is available at http://server1.managementscience.nl/demo/lp. You can enter a LP program in CPLEX format and feed it to the solver. The interface returns the solver output in plain text.   Best regards, Paul Mars A very basic

[Help-glpk] Linear Integer Arithmetic

2005-11-10 Thread Paulo Jorge Matos
t's the best way to say I don't need an objective function? In cplex I do: 'maximize 0' Now, the central issue has to do with strict inequalities. Are they supported in glpk? I've seen on some posts (some of them years ago, 2002) that they are not but I've also read ab

Re: [Help-glpk] Piecewise linear objective functions

2007-08-09 Thread Andrew Makhorin
e of a decision variable is greater than a given constant value, > and wich is equal to the product of a cost constant and the > difference of the constant and the decision variable. > I use ILOG OPL Studio for developing the model and CPLEX for solving > it. Please note that glpk is much wea

[Help-glpk] Re: mps format problems

2007-04-17 Thread Andrew Makhorin
Hi Serge, > The .lp files is solved by glpsol and cplex qith exactly the same > answer. But the .mps file, even though it is solved by glpsol with > the same solution, is rejected by Cplex, by Cbc (Coin-or) and by > Qsopt as INFEASIBLE. So if everybody (except glpk) says the

Re: [Help-glpk] Print names of all rows after presolve?

2008-06-20 Thread Andrew Makhorin
> I am debugging the code I plan to use to generate cplex-format > input files.  I am comparing my generated files to my "gold standard" > which is a MathProg model.  I provide the MathProg model to glpsol and > write out a cplex translation to compare against my directly-

[Help-glpk] [Fwd: input file to glpk sample code in java]

2011-11-28 Thread Andrew Makhorin
Forwarded Message From: Wang, Paul T. R. To: help-glpk@gnu.org Cc: Niedringhaus, William P. Subject: input file to glpk sample code in java Date: Mon, 28 Nov 2011 15:38:30 + Sir/lady, I have an input file, myLPFile, in CPLEX LP format, I import org.gnu.glpk.* to my

Re: [Help-glpk] info command --wcpxlp

2012-08-02 Thread Mate Hegyhati
Dear Daniele, You can use the lp file directly in cplex. Although I think it is -wlp, but maybe I'm using an outdated version. Best regards, Mate On 08/02/2012 11:06 AM, Daniele Micarelli wrote: > Hi > I want to compare the results obtained with GLPSOL with those obtained >

Re: GLPK Dualprices

2022-05-29 Thread Andrew Makhorin
On Sun, 2022-05-29 at 18:42 +0200, Harald Mumm wrote: > Hi Andrew, > > thank you very much for your help, but I could solve my problem in > the  > meantime alone. > > Instead of glp_simplex I use now glp_exact and all dual prices are > the  > same as in CPLEX >

Re: [Help-glpk] OPB output file anomaly

2008-02-29 Thread Andrew Makhorin
>> You could write your instance also in cplex format specifying the >> option '--wcpxlp outfile' along with '--wopb' and then check both >> the files. AFAIK cplex lp format is very similar to opb format. >> > I did as you suggested and it was qui

Re: [Help-glpk] A Simple MIP model in MathProg - (simple cplex mip model included)

2012-11-06 Thread Noli Sicad
<= x[1] <= 40; s.t. x4: 2 <= x[4] <= 3; maximize obj: x[1] + 2 * x[2] + 3 * x[3] + x[4]; # X2 and X3 needs to Float / Real, based on the results of the Original Cplex problem. This is the answer of the CPLEX problem. ## No. Column name Activity Lower b

Re: [Help-glpk] GLPK add-on for Excel

2010-07-12 Thread glpk xypron
Hello Larry, > There is a new add-on for Excel called OpenSolver. > http://www.opensolver.org > I was wondering if it is possible to make a GLPK add-on > for Excel similar to this one. opensolver creates a cplex file, calls cbc.exe with the cplex file and then parses the solution fil

[Help-glpk] inf as RHS of constraint

2011-01-17 Thread Kevin Hunter
Hullo List, I've recently created an LP that file that both CPlex and Gurobi accept and solve, but that GLPK does not (LP file attached). The issue is the use of infinity ('inf') on the right-hand side of a constraint. Judging from the grammar in the comments above 'p

Re: [Help-glpk] inf as RHS of constraint

2011-01-18 Thread glpk xypron
Hello Kevin >> P.S. The ironic thing is that the only place that I can find a thorough >> grammar for the *CPLEX* LP format is within the GLPK project. Kudos to >> GLPK for quality code backed by an actual grammar! You can find the ILOG documentation at http://publ

Re: [Help-glpk] filetype .lp

2011-11-14 Thread Xypron
Dear Asma, the CPLEX file format is not aware of sets and indices. The only way you can indicate indices is by using concatenated variable names like a(1,2). See glpk-4.47/doc/glpk.pdf, section CPLEX LP Format. Best regards Xypron On 14.11.2011 17:38, esma mehiaoui wrote: otherwise how

[Help-glpk] CPLEX vs GMPL: different answers for same problem

2012-10-20 Thread Reginald Beardsley
I've successfully converted from CPLEX to GMPL but have discovered that the answers are different. They're both excellent, but they're not the same. My problem is quite floating point sensitive, so I'm using --exact for both. I *think* I'm solving the same problems, b

Re: [Help-glpk] A Simple MIP model in MathProg - (simple cplex mip model included)

2012-11-06 Thread Noli Sicad
Hi Reniere, > ### > var x{n in NUMBER_OF_INTEGER}, integer; > var y{n in NUMBER_OF_REAL}; > # OK. You are talking about 2 variables now. It is different topic, 2 matrices involved. We need to return to the original question, how to translate this simple CPLEX MIP model i

Re: [Help-glpk] GLPK reading problem

2017-06-15 Thread Andrew Makhorin
On Thu, 2017-06-15 at 08:29 -0500, Shuo Xu wrote: > Dear GLPK makers: > > Currently, I am using GLPK to read a cplex-LP file. > > But ,the lp name is not available while using: > glp_read_lp(lp, NULL, "Level_1.lp"); > // get the name > char Prob

Re: [Help-glpk] GLPK Enhancement: Variable Name Match for Other File Format

2007-09-18 Thread Andrew Makhorin
> GLPK can transfer the GLPK modeling into other file format, such as CPLEX > and MPS. This is a very nice feature, and it would be nicer if variable > name match is given for the transfer, i.e., a name match file listing the > variable names in the GLPK model and the names in other

[Fwd: Re: GLPK Dualprices]

2022-05-29 Thread Andrew Makhorin
LPK sometimes calculates wrong dual prices? > > > > I send you an example  in the attachment,  where CPLEX calculates > > > > other dual prices than GLPK. > > Please note that LP may have multiple optimal solutions (in degenerate > cases). This means that some co

Re: [Help-glpk] OPB output file anomaly

2008-03-10 Thread Andrew Makhorin
; objective (which is now missing). > So, more concretely: > glpsol --math -m a.mod -d a.dat --wcpxlp a.cplex > /* and subsequently */ > glpsol --cpxlp a.cplex > provides different solutions. > Something just doesn't seem right about that.  Am I still missing > somet

Re: [Help-glpk] inf as RHS of constraint

2011-01-17 Thread Xypron
Hello Kevin, if the right hand side is infinity the constraint is not really needed. Which version of GLPK have you been using? GLPK 4.45 should support inf and infinity. Best regards Xypron Kevin Hunter wrote: Hullo List, I've recently created an LP that file that both CPlex and G

Re: [Help-glpk] info command --wcpxlp

2012-08-02 Thread Robbie Morrison
+0400 [snip] > Files produced by the '--wlp filename' option are in > cplex lp format and must work with the original cplex > package. Please see: http://en.wikibooks.org/wiki/GLPK/Interoperability http://en.wikibooks.org/w

[Help-glpk] Conversion of AMPL model defect #1

2012-08-07 Thread Harley Mackenzie
I am presently working on converting a large AMPL/CPLEX model so I can learn how the model works and also to compare the execution times with CPLEX. I have managed to fix most of the obvious problems but I have a couple of issues that I need to ask for help from the GLPK experts. The first one is

Re: [Help-glpk] Setting initial integer solution in GLPSOL

2008-12-16 Thread Ali Baharev
? In case of CPLEX one can use the so-called indicators: http://www.ilog.com/products/cplex/news/whatsnew.cfm I find the proposal in page 14 interesting: J. N. Hooker, A principled approach to mixed integer/linear problem formulation, June, revised August, to appear in ICS Proceedings 2009

Re: Solver performance solving examples/life_goe.mod

2020-09-26 Thread Andrew Makhorin
On Sat, 2020-09-26 at 13:54 +0200, Domingo Alvarez Duarte wrote: > Hello ! > > Testing GLPK I left it solving examples/lie_goe.mod for more than 2  > hours and it didn't found a solution (wasm and native) then I stopped  > then and tried with cplex/gurobi/xpress/scip

Re: [Help-glpk] GLPK as a C library for large number of inputs

2010-02-25 Thread Andrew Makhorin
> The only reason , I am reading the manual is I am writing a code in C++ > which should solve an MIP problem,Then if I understood you correctly, I > can not use the way described in manual I have to save my data in order > to feed GLPK in AMPL or cplex lp format, right? I mean that i

Re: [Help-glpk] Wrong optimal solution with Glpk-4.34

2010-10-01 Thread Yingjie Lan
solutions are now correct and the same as optimal solutions given by CPLEX and Gurbobi. Best regards Marc On 01.10.10 11:13, "Yingjie Lan" wrote: > I have solved a MIP with 3 different solvers. Each solver > gives an optimal solution after a few seconds. > I w

[Help-glpk] How did you rewrite the cplex API?

2012-07-08 Thread Christophe-Marie Duquesne
Hi, Browsing the glpk sources, I found the following file: examples/cplex/cplex.h I am the author of lazylpsolverlibs [1], a project aiming at generating proxy libraries for commercial lp solvers. My goal is to provide opensource libraries to link to for open source programs that use commercial

[Help-glpk] StackOverflow question on best open MIP solver

2012-11-06 Thread Robbie Morrison
Hello all The StackOverflow site has the following question: http://stackoverflow.com/questions/502102/best-open-source-mixed-integer-optimization-solver http://stackoverflow.com/questions/502102 Best open source mixed integer optimization solver "I am using CPLEX for solving

Re: [Help-glpk] MIP Solvers (i.e CBC, CPLEX, GLPK, GUROBI, LPSOLVE, SCIPC, SCIPL, SCIPS and XPRESS) Benchmark

2012-11-19 Thread Robbie Morrison
Hi Andrew, Noli To: Noli Sicad Subject: Re: [Help-glpk] MIP Solvers (i.e CBC, CPLEX, GLPK, GUROBI, .. Message-ID: <1353314481.1952.3.camel@corvax> From: Andrew Makhorin Date: Mon, 19 Nov 2012 12

Re: [Help-glpk] MILP solutions using different solvers

2013-03-01 Thread Andrew Makhorin
; > To verify and evaluate my solutions, I wanted to solve them using > other commercial solvers. I used Gusec to translate my mod files (no > external dat file) into lp and mps files. I ran each of my lp files on > CPLEX and each of my mps files on Gurobi. Gurobi and CPLEX solutions >

[Help-glpk] reporting bugs / problems with GLPK 4.8

2005-08-01 Thread Björn
the final result, but no prior iterations. - The Interior Point solver lpx_interior(lp) gives exactly the same output as when LPX_K_MSGLEV is set to 3 (full output). b) I wrote the following code which reads data from a CPLEX LP file and should not display anything on the screen. lp

Re: [Help-glpk] Piecewise linear objective functions

2007-08-09 Thread Ivo van Baren
constant and the decision variable. > > > I use ILOG OPL Studio for developing the model and CPLEX for solving > > it. > > Please note that glpk is much weaker than cplex in the sense of > ability to solve large or hard MIPs. > > > Recently I got the hint to look for

RE: [Help-glpk] OPB output file anomaly

2008-02-29 Thread Joey Rios
Thanks again for the response. > You could write your instance also in cplex format specifying the > option '--wcpxlp outfile' along with '--wopb' and then check both > the files. AFAIK cplex lp format is very similar to opb format. > I did as you suggested and

RE: [Help-glpk] OPB output file anomaly

2008-03-10 Thread Joey Rios
a.mod -d a.dat --wcpxlp a.cplex /* and subsequently */ glpsol --cpxlp a.cplex provides different solutions. Something just doesn't seem right about that. Am I still missing something fundamental here? I looked at the cplex file as you suggested and I see at the end of the objective funct

[Help-glpk] MILP and CP

2015-03-31 Thread Luiz Bettoni
Hi, All! I'm starting to research some bindings between MILP and CP (Constraint Programming, also know as CLP - Constraint Logic Programming). Here at UTFPR are some people here working on CPLEX with CLPEX CP <http://www-01.ibm.com/software/commerce/optimization/cplex-cp-optimizer/>, b

  1   2   3   4   5   >