Greetings,
Is there an efficient way to simplify the following expression using powersets in AMPL?
Specifically, I defined one
powerset for p and the other one for Qmax where p represent failure probabilities of
suppliers and Qmax represent capacity (p and Qmax values are set
in .dat file).
I do not know how to combine these two power sets correctly.
p[1]*(1-p[2])*(1-p[3])*min(D[p,t],Qmax[p,2,t]+Qmax[p,3,t])+
p[2]*(1-p[1])*(1-p[3])*min(D[p,t],Qmax[p,1,t]+Qmax[p,3,t])+
p[3]*(1-p[1])*(1-p[2])*min(D[p,t],Qmax[p,1,t]+Qmax[p,2,t])+
p[1]*p[2]*(1-p[3])*min(D[p,t],Qmax[p,3,t])+
p[1]*p[3]*(1-p[2])*min(D[p,t],Qmax[p,2,t])+
p[2]*p[3]*(1-p[1])*min(D[p,t],Qmax[p,1,t])+
p[1]*p[2]*p[3]);
Any guide is highly appreciated.
Thank you
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.