using a matlab function as one of the parameter in gams

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

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