How to force matrix display?

254 views
Skip to first unread message

Thomas Granz

unread,
Oct 19, 2009, 4:09:07 PM10/19/09
to ampl google group
Hi all,

I have some problems while displaying large matrices. My matrices consist of three dimensions ([a,b,c]). When 'a' is small compared to 'b' and 'c' the output is;
for every 'a':
c_1..c_n
b_1
.
.
b_n

But when 'a' is large compared to 'b' and 'c'
The output is something like:
for every 'c':
a_1..a_n
b_1
.
.
b_n

My question: How can I force the output when 'a' is large to the first format?:

for every 'a':
c_1..c_n
b_1
.
.
b_n

Thanks,
L. J.


__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com

Robert Fourer

unread,
Oct 20, 2009, 2:26:10 PM10/20/09
to am...@googlegroups.com, Thomas Granz

Try something like this:

display {i in 1..7}: {j in 1..5, k in 1..3} a[i,j,k];

This has the effect of doing a separate "display" of a 2-dimensional table
for each i in 1..7.

Bob Fourer
4...@ampl.com
Reply all
Reply to author
Forward
0 new messages