An urgent help
An urgent help
Dear Gams Users Group,
I am modelling a multistage stochastic programming problem, i have two problems. First problem is Error 795. The second one is one of my set 'k' is changing with scenario. How can i reflect this idea to model and fix 795 problem? My model is in the attachment.
Best regards,
Nazmi
Attachments306/mssp_bd.gms
Re: An urgent help
The GAMS error message tries to be helpful:
110 solve mssp max z1 using mip scenario dict;
**** $795,257
**** The following MIP errors were detected in model mssp:
**** 795 Domain violation for symbol s_ytwo in scenario dictionary
Use declared parameter s_ytwo with domain scen,k,sn the corresponding symbol in dict is ytwo with domain k,j. sn is a subset of j and since the domain on the right needs to be as large as the domain on the left, you get a compilation error. Changing the sn to j in the declaration of s_ytwo fixes this problem.
To your second question, the rim of the model cannot change by scenario, so you can't have different k's by scenario. When you write your explicit deterministic equivalent (without the use of EMPSP) you can do what ever you like.
Best,
Michael Bussieck  GAMSWorld Coordinator
On Wednesday, March 11, 2015 at 12:45:26 PM UTC4, Nazmi wrote:
Dear Gams Users Group,
I am modelling a multistage stochastic programming problem, i have two problems. First problem is Error 795. The second one is one of my set 'k' is changing with scenario. How can i reflect this idea to model and fix 795 problem? My model is in the attachment.
Best regards,
Nazmi

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/d/optout.
Re: An urgent help
Dear Coordinator
I work on GAMS platform and I try to solve a two stochastic program.
I have the same error of Nazmi.
I understand your explabations to overcome this problem. But in my case, I dont see how my the domain could violated.
I think the statement of the sets are exact.
My model and GDX file used are in the attachment. Thank you in advance for your assistance.
Best regards,
SellÃ©
Le jeudi 12 mars 2015 14:37:13 UTC+1, Michael Bussieck a Ã©crit :
The GAMS error message tries to be helpful:
110 solve mssp max z1 using mip scenario dict;
**** $795,257
**** The following MIP errors were detected in model mssp:
**** 795 Domain violation for symbol s_ytwo in scenario dictionary
Use declared parameter s_ytwo with domain scen,k,sn the corresponding symbol in dict is ytwo with domain k,j. sn is a subset of j and since the domain on the right needs to be as large as the domain on the left, you get a compilation error. Changing the sn to j in the declaration of s_ytwo fixes this problem.
To your second question, the rim of the model cannot change by scenario, so you can't have different k's by scenario. When you write your explicit deterministic equivalent (without the use of EMPSP) you can do what ever you like.
Best,
Michael Bussieck  GAMSWorld Coordinator
On Wednesday, March 11, 2015 at 12:45:26 PM UTC4, Nazmi wrote:
Dear Gams Users Group,
I am modelling a multistage stochastic programming problem, i have two problems. First problem is Error 795. The second one is one of my set 'k' is changing with scenario. How can i reflect this idea to model and fix 795 problem? My model is in the attachment.
Best regards,
Nazmi

 Attachments

 data_WLS_MINLP_V1.gdx
 (13.41 KiB) Downloaded 223 times

 WLS_MINLP_EMP.gms
 (11.47 KiB) Downloaded 292 times
Re: An urgent help
Selle,
Similar to Nazmi's problem, the compiler is actually pretty helpful. The error is:
**** 795 Domain violation for symbol s_V in scenario dictionary
The symbol s_V is declared as s_V(scen,nbus) the matching symbol zVreal in dict is declared as zVreal which implies zVreal(*). So you either change s_V to s_V(scen,*) or zVreal to zVreal(nbus). I guess the latter is the better change.
Best,
Michael Bussieck  GAMSWorld Coordinator
On Monday, November 23, 2015 at 2:54:13 AM UTC5, selle.toure@gmail.com wrote:
Dear Coordinator
I work on GAMS platform and I try to solve a two stochastic program.
I have the same error of Nazmi.
I understand your explabations to overcome this problem. But in my case, I dont see how my the domain could violated.
I think the statement of the sets are exact.
My model and GDX file used are in the attachment. Thank you in advance for your assistance.
Best regards,
SellÃ©
Le jeudi 12 mars 2015 14:37:13 UTC+1, Michael Bussieck a Ã©crit :
The GAMS error message tries to be helpful:
110 solve mssp max z1 using mip scenario dict;
**** $795,257
**** The following MIP errors were detected in model mssp:
**** 795 Domain violation for symbol s_ytwo in scenario dictionary
Use declared parameter s_ytwo with domain scen,k,sn the corresponding symbol in dict is ytwo with domain k,j. sn is a subset of j and since the domain on the right needs to be as large as the domain on the left, you get a compilation error. Changing the sn to j in the declaration of s_ytwo fixes this problem.
To your second question, the rim of the model cannot change by scenario, so you can't have different k's by scenario. When you write your explicit deterministic equivalent (without the use of EMPSP) you can do what ever you like.
Best,
Michael Bussieck  GAMSWorld Coordinator
On Wednesday, March 11, 2015 at 12:45:26 PM UTC4, Nazmi wrote:
Dear Gams Users Group,
I am modelling a multistage stochastic programming problem, i have two problems. First problem is Error 795. The second one is one of my set 'k' is changing with scenario. How can i reflect this idea to model and fix 795 problem? My model is in the attachment.
Best regards,
Nazmi

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/d/optout.
Re: An urgent help
Thanks a lot for your help
SellÃ©
On Monday, November 23, 2015 at 1:08:23 PM UTC+1, Michael Bussieck wrote:
Selle,
Similar to Nazmi's problem, the compiler is actually pretty helpful. The error is:
**** 795 Domain violation for symbol s_V in scenario dictionary
The symbol s_V is declared as s_V(scen,nbus) the matching symbol zVreal in dict is declared as zVreal which implies zVreal(*). So you either change s_V to s_V(scen,*) or zVreal to zVreal(nbus). I guess the latter is the better change.
Best,
Michael Bussieck  GAMSWorld Coordinator
On Monday, November 23, 2015 at 2:54:13 AM UTC5, selle...@gmail.com wrote:
Dear Coordinator
I work on GAMS platform and I try to solve a two stochastic program.
I have the same error of Nazmi.
I understand your explabations to overcome this problem. But in my case, I dont see how my the domain could violated.
I think the statement of the sets are exact.
My model and GDX file used are in the attachment. Thank you in advance for your assistance.
Best regards,
SellÃ©
Le jeudi 12 mars 2015 14:37:13 UTC+1, Michael Bussieck a Ã©crit :
The GAMS error message tries to be helpful:
110 solve mssp max z1 using mip scenario dict;
**** $795,257
**** The following MIP errors were detected in model mssp:
**** 795 Domain violation for symbol s_ytwo in scenario dictionary
Use declared parameter s_ytwo with domain scen,k,sn the corresponding symbol in dict is ytwo with domain k,j. sn is a subset of j and since the domain on the right needs to be as large as the domain on the left, you get a compilation error. Changing the sn to j in the declaration of s_ytwo fixes this problem.
To your second question, the rim of the model cannot change by scenario, so you can't have different k's by scenario. When you write your explicit deterministic equivalent (without the use of EMPSP) you can do what ever you like.
Best,
Michael Bussieck  GAMSWorld Coordinator
On Wednesday, March 11, 2015 at 12:45:26 PM UTC4, Nazmi wrote:
Dear Gams Users Group,
I am modelling a multistage stochastic programming problem, i have two problems. First problem is Error 795. The second one is one of my set 'k' is changing with scenario. How can i reflect this idea to model and fix 795 problem? My model is in the attachment.
Best regards,
Nazmi

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/d/optout.

 User
 Posts: 1
 Joined: 4 months ago
Re: An urgent help
i am in problem
my code is giving error 795 domain violation
please help me in this matter
code is attached
my code is giving error 795 domain violation
please help me in this matter
code is attached
 Attachments

 newspaper.gms
 (4.31 KiB) Downloaded 78 times
Re: An urgent help
Without Excel file (or GDX file) this is hard to run to see where your problem is. You can also make a version with dummy data. Michael