help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Ruby LP Solver issues - "row name too long" for more tha


From: Chris Matrakidis
Subject: Re: [Help-glpk] Ruby LP Solver issues - "row name too long" for more than 29 items
Date: Sat, 18 Jun 2016 17:40:27 +0300

Lukas,

Note that the example you provided specifies names for each constraint
(c1 and c2):

> Constraints:
> c1: 398 x1 + 151 x2 + 129 x3 + 275 x4 + 291 x5 <= 800
> c2: 111 x1 + 139 x2 + 56 x3 + 54 x4 + 123 x5 <= 200

In contrast, the test code you attached has no names for the
constraints. What happens is that OPL searches for a colon in each
constraint and assumes that anything before it is the name. When no
colon is found, the whole line is used as the name, which is limited
to 255 characters in GLPK. This is a bug in OPL, and you should report
it. However the obvious workaround of adding a name in your constraint
should work.


Best Regards,

Chris Matrakidis



reply via email to

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