From your info I can only see that Sale_C is a variable with a
definition which uses the stochastic variable Yield_C.
In order to help, I need more info:
1. What is the complete definition of the variable Sales_C ? In
particular, does its definition also use other variables, besides
Yield_C ?
2. Is the variable Sales_C declared with the Stochastic property ? If
so, does it also have the Stage attribute filled ?
3. Are all variables in the definition of Sales_C declared with the
Stochastic property ? If so, do they also have the Stage attribute
filled ?
I am asking for info above, because it seems that you have something
like
S_C = def = p * Y_C + ... ?
The problem may be that S_C is missing the Stochastic property or
perhaps it has a too low stage (compared to the stage of Y_C or the
other vars in its def).
Regards,
Ovidiu Listes
--
You received this message because you are subscribed to the Google Groups "AIMMS - The Modeling System" group.
To post to this group, send email to ai...@googlegroups.com.
To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/aimms?hl=en.
So, your variable Sale_C(yr,cl) is defined as
Sale_C(yr,cl) = Yield_C(yr,cl)*Pcorn(yr)
where both Sale_C and Yield_C are declared with Stochastic property
and
their stage attribute is filled by the year-to-stage mapping (ie, yr=1
mapped to stage 1, yr=2 mapped to stage 2, etc...)
For yr = '1', both Sale_C.Stochastic(sc,'1',cl) and
Yield.Stochastic(sc,'1',cl) become stage 1 variables.
That means they are not allowed to vary across scenarios.
So, for any two scenario's, say sc1 and sc2, the following need to
hold (according to the nonanticipativity constraints):
Sale_C.Stochastic(sc1,'1',cl) = Sale_C.Stochastic(sc2,'1',cl) (1)
Yield.Stochastic(sc1,'1',cl) = Yield.Stochastic(sc2,'1',cl) (2)
At the same time, you say that Pcorn(yr) is a stochastic parameter.
Apparently, there are two scenarios sc1 and sc2 for which
Pcorn.Stochastic assumes different values:
Pcorn.Stochastic(sc1,'1') <> Pcorn.Stochastic(sc2,'1') (3)
The relations (1),(2), and (3) above lead to inconsistency in the
generated constraints
Sale_C.Stochastic(sc1,'1',cl) = Yield_C.Stochastic(sc1,'1',cl) *
Pcorn(sc1,'1')
Sale_C.Stochastic(sc2,'1',cl) = Yield_C.Stochastic(sc2,'1',cl) *
Pcorn(sc2,'1')
I think this is the cause of the warnings you mentioned initially in
this thread.
Regards,
Ovidiu Listes