Search found 12 matches
- 2 years ago
- Forum: Solvers
- Topic: LP convergence plot using CPLEX
- Replies: 1
- Views: 2848
LP convergence plot using CPLEX
Hi everyone I have been requested for my paper to add the convergence diagram of the resolution of my LP optimization model. I wonder how to process. My first thought is to plot how the solver got to the optimal value. Hence I will need objective function values in terms of iterations but also I don...
- 2 years ago
- Forum: API
- Topic: syntax error 148 during Matlab-gams wgdx
- Replies: 0
- Views: 5814
syntax error 148 during Matlab-gams wgdx
Hi everyone I am trying to run gams in Matlab using the command gams. In Matlab, the parameters Q_m, Q_p, R_m and R_p; the set t are updated and write in a gdx so that gams can update them while running and give cost. but unfortunately, I am having the syntax error 148. It seems that Q_m, Q_p, R_m a...
- 2 years ago
- Forum: Syntax
- Topic: syntax error 148 during Matlab-gams wgdx
- Replies: 1
- Views: 1821
syntax error 148 during Matlab-gams wgdx
Hi everyone I am trying to run gams in Matlab using the command gams. In Matlab, the parameters Q_m, Q_p, R_m and R_p; the set t are updated and write in a gdx so that gams can update them while running and give cost. but unfortunately, I am having the syntax error 148. It seems that Q_m, Q_p, R_m a...
- 2 years ago
- Forum: API
- Topic: Matlab-gams wgdx
- Replies: 3
- Views: 9387
Re: Matlab-gams wgdx
Thanks Mr Renke.Kuhlmann I correct my Matlab code and I have no more errors while compiling the coding, but updating the structures' value of the parameters, and set in Matlab gives the same cost. I expect the cost to be changing as the new value of these parameters and set is pass to gams for the n...
- 2 years ago
- Forum: API
- Topic: Matlab-gams wgdx
- Replies: 3
- Views: 9387
Matlab-gams wgdx
Hi everyone I want to solve a gams code in matlab and get the cost function, the objective function for each update of some parameters and set. I wrote the gams code which works perfectly. I created in gams the gdx file with the parameters and set that I want to update in matlab. here is the coding ...
- 3 years ago
- Forum: Tools
- Topic: Access Excel file error
- Replies: 1
- Views: 3540
Access Excel file error
Hi everyone I have a gams code working perfectly, so I want to report the results in excel using report1, report2, and report. Report1 is perfectly reported in the first sheet name classic1 of the excel spreadsheet but when gams tries to export report2 and report3 to the sheet2 (classic2) and sheet3...
- 3 years ago
- Forum: Modeling
- Topic: Assign previous iteration result to starting value of next iteration
- Replies: 3
- Views: 3640
Re: Assign previous iteration result to starting value of next iteration
thanks, Ms. Fred for your answer and code explanation. How should I code if I want gams to assign the result R.l (s=3, it=1) as fixed value R.fx(s=1, it=2) for iteration it=2 and R.l(s=3, it=2) for R.fx(s=1, it=3) and finally for the last iteration R.l(s=3, it=3) for R.fx(s=1, it=4) thanks to help me.
- 3 years ago
- Forum: Modeling
- Topic: Assign previous iteration result to starting value of next iteration
- Replies: 3
- Views: 3640
Assign previous iteration result to starting value of next iteration
Good morning everyone I am optimizing an iterative process and I have to assign a certain variable result as the fixed value of that variable for the next iteration optimization. I wonder how to code this. I tried to code it but when I run the model, from the listing file it seems that Gams assigns ...
- 3 years ago
- Forum: Syntax
- Topic: looping solve statement over time set
- Replies: 4
- Views: 5574
Re: looping solve statement over time set
Many thanks Ms Renger
the code works very well.
the code works very well.
- 3 years ago
- Forum: Syntax
- Topic: looping solve statement over time set
- Replies: 4
- Views: 5574
Re: looping solve statement over time set
Many thanks to you Ms. Renger I integrated your recommendations. the model works fine but there is a problem, taking R, and Q as parameters allows GAMS to give them any value during the optimization process. Yet R and Q as used as energy storage levels and can not take negative values. I attached th...