[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] Questions to MathProg
From: |
Gottfried Lindner |
Subject: |
[Help-glpk] Questions to MathProg |
Date: |
Wed, 11 May 2005 11:51:43 +0200 |
Hello,
I have two questions to MathProg.
1) I have a set I, which is an interval. Instead of writing
set I := 1 2 3 4 5;
I thought, I can write
set I := 1 .. 5;
but this is not correct. What's wrong?
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?
Thank's
Gottfried
- [Help-glpk] Questions to MathProg,
Gottfried Lindner <=