Import a parameter from GDX file

Questions on using the GAMS APIs (Python, .NET, etc.)
Post Reply
shaparak
User
User
Posts: 11
Joined: 2 years ago

Import a parameter from GDX file

Post by shaparak »

Hello
I am trying to import a parameter through MATLAB within a GDX file.

Code: Select all

$GDXIN 'data.gdx'
Set
   bus        / 1*14   /
   slack(bus) / 1     /
parameter
Inc(*,*);
$load Inc
$GDXIN
I get the error (error 492): Symbol not in GDX
While I have a parameter named Inc in data.gdx file as shown below.
image.png
what is wrong here?
It is worth mentioning there is not any problem with importing the set shown in the GDX file
Attachments
Screenshot 2021-06-16 174244.png
shaparak
User
User
Posts: 11
Joined: 2 years ago

Re: Import a parameter from GDX file

Post by shaparak »

I do not know why this post is not shown in recent posts! could anyone help me with this, please?
User avatar
dirkse
Moderator
Moderator
Posts: 214
Joined: 7 years ago
Location: Fairfax, VA

Re: Import a parameter from GDX file

Post by dirkse »

The GDX file is not so large. Perhaps you could attach it.

-Steve
shaparak
User
User
Posts: 11
Joined: 2 years ago

Re: Import a parameter from GDX file

Post by shaparak »

dirkse wrote: 2 years ago The GDX file is not so large. Perhaps you could attach it.

-Steve
it is a test model, Sir. I want to enter a large parameter
Post Reply