Search found 5 matches

by mohamed.omer
1 month ago
Forum: Modeling
Topic: Calling another GAMS code during execution
Replies: 7
Views: 1325

Re: Calling another GAMS code during execution

Greetings Michael. Many thanks for your tremendous assistance on this code. when I ran new2.gms "driver" code, I got the following error. Error 772: "execute.async or execute.sync expected" for both of the first two execute statements. Could you please let me know how I can fix this issue and many t...
by mohamed.omer
2 months ago
Forum: Modeling
Topic: Calling another GAMS code during execution
Replies: 7
Views: 1325

Re: Calling another GAMS code during execution

Greetings Mr. Michael, Thank you for all the help you are extending to me. As per your request I included all the notes for each code in the code file. Here I will explain the general syntax that I am trying to develop: 1. Run the “Opt_24h” Code 2. Run the “Dis_h1” Code using the variable values of ...
by mohamed.omer
2 months ago
Forum: Modeling
Topic: Calling another GAMS code during execution
Replies: 7
Views: 1325

Re: Calling another GAMS code during execution

Many Thanks for your reply Michael, I would really appreciate it if you could help me with the syntax for the above problem. I have two codes: Optimization Code & Real Time Dispatch Cod 1st iteration: 1. Run the optimization code for 24hours. The code has 3 output variables. 2. Take the results of t...
by mohamed.omer
2 months ago
Forum: Modeling
Topic: Calling another GAMS code during execution
Replies: 7
Views: 1325

Calling another GAMS code during execution

Greetings I have two separate GAMS codes and I would like to call the second code during the execution of the first one multiple times. Note that, some of the results from the first code is used in find the solution of the second code. Is that possible in GAMS? And if so, are there any materials tha...
by mohamed.omer
2 months ago
Forum: Modeling
Topic: Linearizing the absolute value function of a binary variable
Replies: 0
Views: 1026

Linearizing the absolute value function of a binary variable

Hi Guys, I am a new user of GAMS and I would like to know how to linearize the absolute value function of a binary variable in the model Here is my mathematical equation: W= abs((x*y)-z)/max(z,1) Kindly note that X is a binary variable while Y & Z are both parameters Here is how I wrote it in GAMS: ...