[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Example for reading CLEXP LP format file
From: |
glpk xypron |
Subject: |
Re: [Help-glpk] Example for reading CLEXP LP format file |
Date: |
Fri, 20 Jun 2008 20:47:28 +0200 |
Hello Paul,
the glpk package comes with the stand alone solver glpsol, which processes
CPLEX LP files.
The relevant source is in src/glplpx20.c
http://glpk.dyndns.org/viewvc/svn/glpk/glpk/trunk/glpk-4.28/src/glplpx20.c?revision=226&view=markup
A minimum program (without presolver, solving LP only, using Simplex, without
error handling) is:
#include "glpapi.h"
int main()
{
LPX *lp = NULL;
lp = lpx_read_cpxlp("examples/plan.lp");
lpx_std_basis(lp);
lpx_simplex(lp);
lpx_delete_prob(lp);
}
plan.lp is supplied with the glpk source.
Best regards
Xypron
-------- Original-Nachricht --------
> Datum: Sat, 21 Jun 2008 01:11:33 +0800 (SGT)
> Von: RC Loh <address@hidden>
> An: address@hidden
> Betreff: [Help-glpk] Example for reading CLEXP LP format file
> Hi,
> I tried using the function in GLPK package to read a CLEXP LP format file
> but it failed. Can some one show me a working example of a C program that
> calls the function that reads a CLEXP LP format file?
> Thank you.
> Rdgs,
> Paul
>
>
> Get your preferred Email name!
> Now you can @ymail.com and @rocketmail.com
> http://mail.promotions.yahoo.com/newdomains/sg/
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer