Hi,
I have a problem with the function wgdx(). I want save three sets: jcon(j); jint(j); jbin(j), so I created three struct arrays:
s1.name = ‘jcon’; s1.uels = r1’;
s2.name = ‘jint’; s2.uels = r2’;
s3.name = ‘jbin’; s3.uels = r3’;
For example, the struct s1 is:
s1
s1 =
name: ‘jcon’
uels: {1x470 cell}
Then, I used the function wgdx()as follow:
wgdx(‘fileGDX’,s1,s2,s3)
But, error comes saying: “Error using ==> wgdx Input structure field .val must be double matrix”
In the manual of the GDXMRW tool (page 9) appear the following writing set example:
s.name = ‘l’;
s.uels = {{‘i1’, ‘i2’, ‘i3’}, {‘j1’, ‘j2’}};
c.name = ‘par’;
c.type = ‘parameter’;
c.val = eye(3);
c.form = ‘full’;
c.ts = ‘3 x 3 identity’;
wgdx(‘foo’, s, c)
And the struct s don’t have .val field. Somebody know the reason of the error?
Thanks in advance.
–
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.