On Mon, Feb 25, 2008 at 1:30 AM, Andrew Makhorin <
address@hidden> wrote:
> Error:
> Model.mod:127: shipmWtoD[Prod1,WhsA,DptE,1] out of domain
> Model processing error
You should not refer to members of a variable which are not in its
domain. To avoid such references you need to add corresponding
conditions everywhere you refer to the variable. For example:
s.t. foo{i in I}: sum{j in J, k in K}
(if (i,j,k) in DOMAIN then x[i,j,k] else 0) = ... ;
('else 0' is used by default, so it can be omitted).