Page 1 of 1

using a matlab function as one of the parameter in gams

Posted: Mon May 17, 2021 8:31 pm
by amir_bagherzadeh
Hi,
I'm trying to use the repository here (https://github.com/DrKeHan/DTA to calculate one of the parameters in my model. The problem is I need this function to be called in every iteration of optimization. Most of the documentation I have found on the GDXMRW page just calls the function once and will never call it again. I'll appreciate if anyone could help me with this.
Thanks

Re: using a matlab function as one of the parameter in gams

Posted: Sat May 22, 2021 6:17 pm
by abhosekar
I am not aware of the function but if you want to just evaluate a parameter once (i.e. parameter value stays the same for each solve, once the solver starts you won't change parameter value in this case) you can use system call using $call.
It should be noted that you cannot change parameter value during a solve based on variable values. This is not allowed in general, in equation oriented optimization.

- Atharv