Search found 1 match

by yashas1354
5 years ago
Forum: Modeling
Topic: WGDX help for newbie
Replies: 1
Views: 2175

WGDX help for newbie

Writing a 3-dimensional table that is dynamically updated using MATLAB. Having a table indexed over three sets (n,i,s) this is the following code that I use to write the GDX file using MATLAB: t.name = 'SOR'; t.type = 'parameter'; t.form = 'sparse'; t.dim = 3; t.val = [1 1 1 n.a(1,1) 1 1 2 n.a(1,2) ...