[AMPL 2894] How to force matrix display?

View: New views
2 Messages — Rating Filter:   Alert me  

[AMPL 2894] How to force matrix display?

by Thomas Granz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to ampl@...
To unsubscribe from this group, send email to ampl+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/ampl?hl=en
-~----------~----~----~----~------~----~------~--~---


[AMPL 2898] Re: How to force matrix display?

by Robert Fourer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



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
4er@...


> -----Original Message-----
> From: ampl@... [mailto:ampl@...]
> On Behalf Of Thomas Granz [amplbox@...]
> Sent: Monday, October 19, 2009 3:09 PM
> To: ampl google group
> Subject: [AMPL 2894] How to force matrix display?
>
>
> 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
>
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to ampl@...
To unsubscribe from this group, send email to ampl+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/ampl?hl=en
-~----------~----~----~----~------~----~------~--~---