[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-glpk] Re: lpx_write_lp
From: |
Andrew Makhorin |
Subject: |
[Bug-glpk] Re: lpx_write_lp |
Date: |
Tue, 23 Sep 2003 23:00:31 +0400 |
>Probably
>char *set = "!\"#$%&()/,.;address@hidden'{}|~"; /* may appear in names */
>(line 206 of glplpx.c of GLPK 4.1)
>should be replaced by
>char *set = "!\"#$%&()/,.;address@hidden'{}|~[]"; /* may appear in names */
>
>Otherwise it happens often that original names of columns and rows
>defined in GNU MathProg files can not be written into CPLEX LP files.
>These names often contain "[" and "]" because of indexing.
Unfortunately cplex format does not allow square brackets in symbolic
names. Here is a citation from Appendix E5 of the CPLEX documentation:
Also, the following characters are not valid in variable names (in
order to allow for quadratic objective information): ^, *, [ and ].
Besides, names in cplex format cannot be longer than 16 chars while the
MathProg translator can generate much longer names (up to 255 chars).