I want to maximize over multiple time periods, with a given starting quantity. What I would like to do is specify
Parameter
A(J)
/A1 100
A2 100
A3 100/;
then have a variable Alpha(I,K), such that for K=1, Alpha=A(J), and for every K>1, Alpha(J,K+1)=B(J,K), where B is a decision variable.
Thank you!
–
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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Hi Kendra
You could use something like:
Yourequation(j,k).
Alpha(j, k) =E= A(i)(ord(j) = 1) + B(j,k)(ord(j) > 1);
Cheers
Renger
From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Kendra Williamson
Sent: Dienstag, 12. Januar 2016 18:35
To: gamsworld
Subject: How can I specify the first row of the table, and allow the rest to be solved?
I want to maximize over multiple time periods, with a given starting quantity. What I would like to do is specify
Parameter
A(J)
/A1 100
A2 100
A3 100/;
then have a variable Alpha(I,K), such that for K=1, Alpha=A(J), and for every K>1, Alpha(J,K+1)=B(J,K), where B is a decision variable.
Thank you!
–
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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
–
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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Renger,
Perfect, thank you!
On Wednesday, January 13, 2016 at 3:06:15 AM UTC-6, Renger van Nieuwkoop wrote:
Hi Kendra
You could use something like:
Yourequation(j,k).
Alpha(j, k) =E= A(i)(ord(j) = 1) + B(j,k)(ord(j) > 1);
Cheers
Renger
From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Kendra Williamson
Sent: Dienstag, 12. Januar 2016 18:35
To: gamsworld
Subject: How can I specify the first row of the table, and allow the rest to be solved?
I want to maximize over multiple time periods, with a given starting quantity. What I would like to do is specify
Parameter
A(J)
/A1 100
A2 100
A3 100/;
then have a variable Alpha(I,K), such that for K=1, Alpha=A(J), and for every K>1, Alpha(J,K+1)=B(J,K), where B is a decision variable.
Thank you!
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
–
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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.