Import a parameter from GDX file

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

Import a parameter from GDX file

Post by shaparak » 1 month ago

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: 8
Joined: 2 months ago

Re: Import a parameter from GDX file

Post by shaparak » 1 month ago

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: 150
Joined: 4 years ago
Location: Fairfax, VA

Re: Import a parameter from GDX file

Post by dirkse » 1 month ago

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

-Steve

shaparak
User
User
Posts: 8
Joined: 2 months ago

Re: Import a parameter from GDX file

Post by shaparak » 1 month ago

dirkse wrote:
1 month 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