help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] out of domain


From: glpk xypron
Subject: Re: [Help-glpk] out of domain
Date: Wed, 04 Jul 2012 06:54:31 +0200

Hello Daniele,

set K;
data;
set K := 0..Deadline ;
end;

defines that K is a set containing one string with value "0..Deadline".

There is no operator ".." available in the data section.

Might it be that you wanted to write something like:

set SLA;
param Deadline{SLA};
set K{i in SLA} := {0..Deadline[i]};
solve;
display K;
data;
set SLA := A17 A18 A25;
param Deadline :=
  A17  32
  A18  40
  A25  44 ;
end;

Best regards

Xypron


-------- Original-Nachricht --------
> Datum: Tue, 3 Jul 2012 23:15:39 +0200
> Von: Daniele Micarelli <address@hidden>
> An: address@hidden
> Betreff: [Help-glpk] out of domain

> Hi,
> i have this bond:  *subject to DLINE{i in SLA}: sum{t in K} x[i,t]=1 ; */*
> vincolo di Deadline sulle SLA */  in the file.mod
> 
> where the set K is defined as: *set K := 0..Deadline ; *in the file.dat
> *
> *Deadline is a parameter defined in the file.dat :
> *param Deadline :=
> 
> A17  32
> A18  40
> A25  44 ;*
> 
> When A17,A18 and A25 are activities and 32,40 and 44 are the values
> ​​of the
> corresponding deadline
> 
> But when i try i get this error: x[A17, "0..Deadline"] out of domain
> what it means?
> how can i fix it?
> 
> thank you very much



reply via email to

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