[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] glpk
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] glpk |
Date: |
Tue, 2 Feb 2010 21:26:32 +0300 |
Ramesh,
> i am ramesh bhuvanagiri. i have downloaded and installed the
> glpk software in windows. The programs that are given in the examples
> folder with .mod extension are compiled successfully.
> I have copied another program from glpk manual which is given
> under introduction for MIP Problem. This program has an extension of
> .c, but i saved it with .mod extension. while trying to compile it, i
> am getting an error as follows. This program is very useful to me in
> my project. Is there any other way of compiling executing this
> program. when i save it with .c extension, again it is giving an error.
>>C:\Documents and Settings\B RAMESH\My
>>Documents\Downloads\gusek\glpsol.exe --check --cover --clique
>>--gomory --mir -m "sample.mod"
> GLPSOL: GLPK LP/MIP Solver, v4.42
> Parameter(s) specified in the command line:
> --check --cover --clique --gomory --mir -m sample.mod
> Reading model section from sample.mod...
> sample.mod:5: colon missing where expected
> Context: int main
> MathProg model processing error
>>Exit code: 1 Time: 0.431
> please help me in this regard. awaiting reply.
Looks like you are attempting to feed Gusek with a program written in C.
Please note that Gusek is *not* a programming language compiler (like MS
Visual Studio). Gusek assumes that you write your lp or mip model in
MathProg, a modeling language, which is subset of AMPL, not in C.