Dear all user,

I want to write a GDX file in MATLAB with wgdx function. This 3D set is:

i1.j2.k3

i1.j3.k2

i2.j2.k3

i2.j2.k4

i2.j3.k2

i2.j3.k4

i2.j4.k2

i2.j4.k3

What should be written in setname.uels?

\

Hello,

I am attaching some code to do this for two dimensions. If you

understand how it works extending it to three-D is trivial.

-Steve

On Tue, Jul 3, 2012 at 11:11 AM, hossein karimi

wrote:

Dear all user,

I want to write a GDX file in MATLAB with wgdx function. This 3D set is:

i1.j2.k3

i1.j3.k2

i2.j2.k3

i2.j2.k4

i2.j3.k2

i2.j3.k4

i2.j4.k2

i2.j4.k3

What should be written in setname.uels?–

writeset2D.m (520 Bytes)

Thanks so much, i understand how it works.

On 7/5/12, Steven Dirkse wrote:

Hello,

I am attaching some code to do this for two dimensions. If you

understand how it works extending it to three-D is trivial.-Steve

On Tue, Jul 3, 2012 at 11:11 AM, hossein karimi

wrote:Dear all user,

I want to write a GDX file in MATLAB with wgdx function. This 3D set is:

i1.j2.k3

i1.j3.k2

i2.j2.k3

i2.j2.k4

i2.j3.k2

i2.j3.k4

i2.j4.k2

i2.j4.k3

What should be written in setname.uels?–

“gamsworld” group.

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.–

Steven Dirkse, Ph.D.

GAMS Development Corp., Washington DC

Voice: (202)342-0180 Fax: (202)342-0181

sdirkse@gams.com

http://www.gams.com–

“gamsworld” group.

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.

\

Dear Steven;

What is this error?

??? Error using ==> wgdx

Could not write parameter MAP with gdxDataWriteMap

On 7/5/12, hossein karimi wrote:

Thanks so much, i understand how it works.

On 7/5/12, Steven Dirkse wrote:

Hello,

I am attaching some code to do this for two dimensions. If you

understand how it works extending it to three-D is trivial.-Steve

On Tue, Jul 3, 2012 at 11:11 AM, hossein karimi

wrote:Dear all user,

I want to write a GDX file in MATLAB with wgdx function. This 3D set is:

i1.j2.k3

i1.j3.k2

i2.j2.k3

i2.j2.k4

i2.j3.k2

i2.j3.k4

i2.j4.k2

i2.j4.k3

What should be written in setname.uels?–

You received this message because you are subscribed to the Google

Groups

“gamsworld” group.

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.–

Steven Dirkse, Ph.D.

GAMS Development Corp., Washington DC

Voice: (202)342-0180 Fax: (202)342-0181

sdirkse@gams.com

http://www.gams.com–

“gamsworld” group.

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.

\

Hello Steve,

I have the following three dimensional table:

Distance Cost Capacity

Node_1 . Node_6 200 20 500

Node_2 . Node_3 400 30 250

Node_3 . Node_7 600 25 200

Node_4 . Node_8 400 30 250

Node_5 . Node_3 600 25 200

Is there a way to generate gdx file of such a table using wgdx without making a separate matrix for each Distance, Cost and Capacity?

Thank you!

Muha

On Thursday, July 5, 2012 4:40:47 PM UTC+2, Steven Dirkse wrote:

Hello,

understand how it works extending it to three-D is trivial.

-Steve

On Tue, Jul 3, 2012 at 11:11 AM, hossein karimi

wrote:

I want to write a GDX file in MATLAB with wgdx function. This 3D set is:

i1.j2.k3

i1.j3.k2

i2.j2.k3

i2.j2.k4

i2.j3.k2

i2.j3.k4

i2.j4.k2

i2.j4.k3

What should be written in setname.uels?–

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.

\

Steven Dirkse, Ph.D.

GAMS Development Corp., Washington DC

Voice: (202)342-0180 Fax: (202)342-0181

sdirkse@gams.com

http://www.gams.com

–

To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/rUB8POij1vEJ.

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.