> By building a model I have the following problem in defining a set.
> First I have a set of numbers, let's say 1 to 25.
> This may be defined by: set N := 1..25;
> Now I want to create a subset consisting only of the numbers 5, 10, 15, 20,
> 25.
> Normally, I thought it might be possible by writing: set new_N := 1..25 by
> 5;
> But this dows not work. The only solution I know is to write: set new_N := 5
> 10 15 20 25;
> But for large sets this is would take a lot of time.
> Thanks for your time and help!

Probably you get 1 6 11 16 21 ?

The following statement is correct:

set new_N := 5..25 by 5;

For details please see the langauge reference included in the glpk
distribution.



_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to