Please help anyone!!
Please help anyone!!
Hello everyone,
I am new to GAMS and stuck in a problem "loading the gdx file" and trying it since couple of days. The gdx files are being created in matlab. While loading it to gams it showing the error " error 492:symbol not in gdx"
Attaching here the matlab and gams sample code.
Am unable to find out where am going wrong.
I know, it can simply be done with "$CALL GDXXRW" as a xlsx read and its working fine too. But, I have a many matrices including 2D and 3D structure that I need in my GAMS code. Interfacing directly from MATLAB will be easier.
But, here am stuck with an error "Symbol not in gdx" .
Anyone please help me with this.
--
Thanks
Debasmita
Research Scholar
--
- Attachments
-
[The extension m has been deactivated and can no longer be displayed.]
-
- Untitled.gms
- (827 Bytes) Downloaded 249 times
-
- ElambdaS.gdx
- (19.9 KiB) Downloaded 215 times
-
- BilPrice.gdx
- (19.9 KiB) Downloaded 220 times
Re: Please help anyone!!
$gdxin BilPrice
$load LambdaB <<<<<< LambdaB is not in billprice.gdx, the symbol in bilprice.gdx is called "bil"
$gdxin ElambdaS
$load SptPrice <<<<<< sptprice is not in elambdas.gdx, the symbol in elambdas.gdx is called "explamdas"
To make it work, change to:
Parameter Bil
$gdxin BilPrice
$load Bil
$gdxin
Parameter Explamdas
$gdxin ElambdaS
$load Explamdas
$gdxin
On Wednesday, February 3, 2016 at 8:21:58 AM UTC+1, pandade...@gmail.com wrote:
Hello everyone,
I am new to GAMS and stuck in a problem "loading the gdx file" and trying it since couple of days. The gdx files are being created in matlab. While loading it to gams it showing the error " error 492:symbol not in gdx"
Attaching here the matlab and gams sample code.
Am unable to find out where am going wrong.
I know, it can simply be done with "$CALL GDXXRW" as a xlsx read and its working fine too. But, I have a many matrices including 2D and 3D structure that I need in my GAMS code. Interfacing directly from MATLAB will be easier.
But, here am stuck with an error "Symbol not in gdx" .
Anyone please help me with this.
--
Thanks
Debasmita
Research Scholar
--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Re: Please help anyone!!
Hey AukeGr,
Thanks a lot. It's working now.
--
Thanks
Debasmita
Research Scholar
On Thursday, 4 February 2016 22:43:07 UTC+5:30, AukeGr wrote:
$gdxin BilPrice
$load LambdaB <<<<<< LambdaB is not in billprice.gdx, the symbol in bilprice.gdx is called "bil"
$gdxin ElambdaS
$load SptPrice <<<<<< sptprice is not in elambdas.gdx, the symbol in elambdas.gdx is called "explamdas"
To make it work, change to:
Parameter Bil
$gdxin BilPrice
$load Bil
$gdxin
Parameter Explamdas
$gdxin ElambdaS
$load Explamdas
$gdxin
On Wednesday, February 3, 2016 at 8:21:58 AM UTC+1, pandade...@gmail.com wrote:
Hello everyone,
I am new to GAMS and stuck in a problem "loading the gdx file" and trying it since couple of days. The gdx files are being created in matlab. While loading it to gams it showing the error " error 492:symbol not in gdx"
Attaching here the matlab and gams sample code.
Am unable to find out where am going wrong.
I know, it can simply be done with "$CALL GDXXRW" as a xlsx read and its working fine too. But, I have a many matrices including 2D and 3D structure that I need in my GAMS code. Interfacing directly from MATLAB will be easier.
But, here am stuck with an error "Symbol not in gdx" .
Anyone please help me with this.
--
Thanks
Debasmita
Research Scholar
--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.