using a matlab function as one of the parameter in gams

Questions on using the GAMS APIs (Python, .NET, etc.)
Post Reply
amir_bagherzadeh
User
User
Posts: 1
Joined: 2 months ago

using a matlab function as one of the parameter in gams

Post by amir_bagherzadeh » 2 months ago

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

abhosekar
Moderator
Moderator
Posts: 190
Joined: 10 months ago

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

Post by abhosekar » 2 months ago

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

Post Reply