bug-glpk
[Top][All Lists]
Advanced

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

[Bug-glpk] Writing CPLEX LP files


From: Bernhard Schmidt
Subject: [Bug-glpk] Writing CPLEX LP files
Date: Fri, 22 Aug 2003 15:49:16 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.0.2) Gecko/20030208 Netscape/7.02

It seems that

case LPX_FR:
               fprintf(fp, " c%d free\n", j);

in the source file glplpx8c.c should be replaced by something like

case LPX_FR:
        fprintf(fp, " %s free\n", cname);

Otherwise errors occur when writing CPLEX LP files for problems
with free variables (see attachment for an example).

Bernhard Schmidt
* Problem:    UNKNOWN
* Class:      LP
* Rows:       3
* Columns:    5
* Non-zeros:  15
*
NAME
ROWS
 N  R0000000
 G  R0000001
 L  R0000002
 E  R0000003
COLUMNS
    C0000001  R0000000           -90   R0000001            93
    C0000001  R0000002            45   R0000003           -61
    C0000002  R0000000           -53   R0000001           -14
    C0000002  R0000002            76   R0000003           -59
    C0000003  R0000000           -69   R0000001           -99
    C0000003  R0000002             6   R0000003             6
    C0000004  R0000000           -84   R0000001           -67
    C0000004  R0000002            72   R0000003           -87
    C0000005  R0000000            46   R0000001            78
    C0000005  R0000002           -28   R0000003            72
RHS
    RHS1      R0000001           -46   R0000002            32
    RHS1      R0000003           -42
RANGES
    RNG1      R0000003           100
BOUNDS
 FR BND1      C0000001
 LO BND1      C0000002          -193
 UP BND1      C0000002             7
 LO BND1      C0000003          -168
 UP BND1      C0000003            32
 LO BND1      C0000004          -148
 UP BND1      C0000004            52
 LO BND1      C0000005          -164
 UP BND1      C0000005            36
ENDATA

reply via email to

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