[Top][All Lists]

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

Re: [Help-glpk] Questions to MathProg

From: Andrew Makhorin
Subject: Re: [Help-glpk] Questions to MathProg
Date: Thu, 12 May 2005 03:11:30 +0400

>> 2) I have a restriction of the form
>> s.t. Rb{v1 in V,v2 in V: v1<v2}: ...
>> This works, if V contains numbers. If V contains symbols, v1<v2 is not
>> allowed.
>> Is there a function to convert symbols to their position in the set or
>> something like that?
> Yes, this is explained in the discussion of "ordered sets" in Section 5.6 of
> the AMPL book.  If you don't have the book, you may be able to figure out
> what you need by looking at the following example:

Unfortunately "ordered sets" are not implemented in MathProg.

(The reason was that the AMPL implementation seems to be very
artificial. Introducing a binary relation between set's elements could
be more natural way, however, this feature is incompatible with AMPL.)

Andrew Makhorin

reply via email to

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