Hi everybody,
I’m new in the group, but I’ll try to help when I can …
My problem is:
I have 4 factories (p) that exchanging raw material between them and I want to control the inventory every day (t).
I created an alias:
alias(p,q);
And I have a variable x(p,q,t), that is the flow between the factories. How can I subtract x(p,q,t) to the inventory of factory p and sum x(p,q,t) to the inventory of factory q.
With the equation2, I can control the inventory that exit the factory, but how I take in account also the one that entry into the factory q?
eq2(p,t)… invp(p,t) =E= invp(p,t-1) + buy(p,t) - sum(q,x(p,q,t)) + InicialInvent(p,t);
I hope you understand my problem…
\
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.
Hi ASaLu !
eq2(p,t)… invp(p,t) =E= invp(p,t-1) + buy(p,t) - sum(q,x(p,q,t)) +
sum(q,x(q,p,t)) + InicialInvent(p,t);
adding the same inverted term should do the trick
Regards
Claudio
On Thu, Jan 30, 2014 at 8:50 AM, ASaLu wrote:
Hi everybody,
I’m new in the group, but I’ll try to help when I can …
My problem is:
I have 4 factories (p) that exchanging raw material between them and I want
to control the inventory every day (t).
I created an alias:
alias(p,q);
And I have a variable x(p,q,t), that is the flow between the factories. How
can I subtract x(p,q,t) to the inventory of factory p and sum x(p,q,t) to
the inventory of factory q.
With the equation2, I can control the inventory that exit the factory, but
how I take in account also the one that entry into the factory q?
eq2(p,t)… invp(p,t) =E= invp(p,t-1) + buy(p,t) - sum(q,x(p,q,t)) +
InicialInvent(p,t);
I hope you understand my problem…
–
“gamsworld” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.
\