[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Help-glpk] Russian characters not allowed in GMPL?
From: |
Meketon, Marc |
Subject: |
RE: [Help-glpk] Russian characters not allowed in GMPL? |
Date: |
Sun, 13 Jun 2010 22:12:37 -0400 |
Andrew and Xypron: Thank you. It's great that you respond so quickly to all
types of questions. It significantly increases the value of GLPK to know that
there is such a dedicated user community. Kudos also go for all the others
that regularly respond to help requests (Noli, Nigel, Michael and so many
others).
I'll probably go the unicode to win-1251 route, since the data file is
generated via a C# program so using Notepad or the utf8proc is a bit more work
than I want to do for now. I believe that if I detect a Russian character,
then subtracting 848 from it will get me into the win-1251 realm. I try it out
in the next day or two.
I was amused that "Russian" software did not handle Russian.
I am using GMPL to create the initial model - it's great for quick modeling and
analysis. I expect to finalize the model within the next week or two. GMPL
takes a couple of minutes to generate the matrix, and then GLPK takes less than
a second to solve it. For performance, I will then bypass GMPL and use direct
calls to the GLPK library using the C# interface that Nigel and others helped
me with a couple of days ago. At that point I would not need to store any
Russian terms.
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Andrew Makhorin
Sent: Sunday, June 13, 2010 8:00 PM
To: Meketon, Marc
Cc: address@hidden
Subject: Re: [Help-glpk] Russian characters not allowed in GMPL?
> I #8217;m have a GMPL data set, and some of the symbolic
> parameters have some Russian characters (example: 70000_70460_1×Ó_20).
> GMPL issues an error statement like #8220;character Ð not allowed #8221;.
> Any easy fix?
Glpk does not support unicode as was noticed by Xypron. However, you can
use some cyrillic encoding like koi-8 or windows-1251. Note also that such
string literals should be enclosed within quotes, e.g.
set S := "cyrillic text", "another abracadabra", ... ;
Another way is to use multibyte characters; but in this case you need to
have a specialized text editor.
_______________________________________________
Help-glpk mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-glpk
----------------------------------------------------------------------------
This e-mail and any attachments may be confidential or legally privileged. If
you received this message in error or are not the intended recipient, you
should destroy the e-mail message and any attachments or copies, and you are
prohibited from retaining, distributing, disclosing or using any information
contained herein. Please inform us of the erroneous delivery by return e-mail.
Thank you for your cooperation.
----------------------------------------------------------------------------