I believe the problem is that you put the statement in the "data"
section.  It might be that you did not define the set T in the "model"
section.

The option that I generally use is to have the first part (the "model"
part) of the code like:

        param NumOfPeriods;  
        set T:= 1.. NumOfPeriods;

And in the second ("data") section like:

        param NumOfPeriods := 6;

That way, you keep the flexibility of having the set size be
data-driven, and you could re-use the parameter NumOfPeriods in other
calculations.

-Marc

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Monday, January 29, 2007 12:54
To: Juan Pablo Caballero Villalobos
Cc: [email protected]
Subject: Re: [Help-glpk] Out of domain error

> Hello for everybody, I have a problem with a little model I wrote in
> mathprog. When I try to execute it, I get the following error message:

> data;
>
> set T:= 1..6; /*Periodos*/

This statement specifies T as a set containing the only element "1..6".

The correct specification is the following:

set T := 1 2 3 4 5 6;





_______________________________________________
Help-glpk mailing list
[email protected]
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.
---------------------------------------------------------------------------- 



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

Reply via email to