Page 1 of 1

Import a parameter from GDX file

Posted: Wed Jun 16, 2021 3:20 pm
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

Re: Import a parameter from GDX file

Posted: Thu Jun 17, 2021 2:18 pm
by shaparak
I do not know why this post is not shown in recent posts! could anyone help me with this, please?

Re: Import a parameter from GDX file

Posted: Thu Jun 17, 2021 3:48 pm
by dirkse
The GDX file is not so large. Perhaps you could attach it.

-Steve

Re: Import a parameter from GDX file

Posted: Thu Jun 17, 2021 6:39 pm
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