[Top][All Lists]

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

RE: [Help-glpk] Out of domain error

From: Meketon, Marc
Subject: RE: [Help-glpk] Out of domain error
Date: Mon, 29 Jan 2007 14:13:41 -0500

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"

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


-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf
Of address@hidden
Sent: Monday, January 29, 2007 12:54
To: Juan Pablo Caballero Villalobos
Cc: address@hidden
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
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.

reply via email to

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