help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fwd: What is this format?]


From: Andrew Makhorin
Subject: [Fwd: What is this format?]
Date: Tue, 26 Jan 2021 14:00:29 +0300

-------- Forwarded Message --------
From: Alexandre Garreau <galex-713@galex-713.eu>
To: help-glpk@gnu.org
Subject: What is this format?
Date: Tue, 26 Jan 2021 11:46:03 +0100

Hello,

In my university, they use cplex for teaching linear programming, and
I’d 
like not to install anything proprietary on my computer, but I have to 
figure out how to deal with the files given while only doc for cplex,
which 
I don’t have and never used…  Do you know what format this is? it uses 
“.mod” as an extension, apparently that’s what glpk uses for its own 
format… but in this case, it’s not isn’t it? I thought maybe free mps,
but 
reading it with --freemps doesn’t work either.  Here I attach a sample 
file, with the various errors I get:

$ glpsol --freemps charpentier1.mod 
GLPSOL: GLPK LP/MIP Solver, v4.65
Parameter(s) specified in the command line:
 --freemps charpentier1.mod
Reading problem data from 'charpentier1.mod'...
charpentier1.mod:1: invalid indicator record
MPS file processing error
$ glpsol --glp charpentier1.mod        
GLPSOL: GLPK LP/MIP Solver, v4.65
Parameter(s) specified in the command line:
 --glp charpentier1.mod
Reading problem data from 'charpentier1.mod'...
charpentier1.mod:1: error: line designator missing or invalid
GLPK LP/MIP file processing error
$ glpsol --math charpentier1.mod    
GLPSOL: GLPK LP/MIP Solver, v4.65
Parameter(s) specified in the command line:
 --math charpentier1.mod
Reading model section from charpentier1.mod...
charpentier1.mod:1: syntax error in model section
Context:                                                            /
MathProg model processing error
$ glpsol --lp charpentier1.mod 
GLPSOL: GLPK LP/MIP Solver, v4.65
Parameter(s) specified in the command line:
 --lp charpentier1.mod
Reading problem data from 'charpentier1.mod'...
charpentier1.mod:1: 'minimize' or 'maximize' keyword missing
CPLEX LP file processing error
$ glpsol --freemps -m charpentier1.mod 
GLPSOL: GLPK LP/MIP Solver, v4.65
Parameter(s) specified in the command line:
 --freemps -m charpentier1.mod
Reading model section from charpentier1.mod...
charpentier1.mod:1: syntax error in model section
Context:                                                            /
MathProg model processing error
$ glpsol --glp -m charpentier1.mod 
GLPSOL: GLPK LP/MIP Solver, v4.65
Parameter(s) specified in the command line:
 --glp -m charpentier1.mod
Reading model section from charpentier1.mod...
charpentier1.mod:1: syntax error in model section
Context:                                                            /
MathProg model processing error
$ glpsol --math -m charpentier1.mod 
GLPSOL: GLPK LP/MIP Solver, v4.65
Parameter(s) specified in the command line:
 --math -m charpentier1.mod
Reading model section from charpentier1.mod...
charpentier1.mod:1: syntax error in model section
Context:                                                            /
MathProg model processing error
$ glpsol --lp -m charpentier1.mod 
GLPSOL: GLPK LP/MIP Solver, v4.65
Parameter(s) specified in the command line:
 --lp -m charpentier1.mod
Reading model section from charpentier1.mod...
charpentier1.mod:1: syntax error in model section
Context:                                                            /
MathProg model processing error

Attachment: charpentier1.mod
Description: audio/mod


reply via email to

[Prev in Thread] Current Thread [Next in Thread]