[AMPL 2875] display options

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

[AMPL 2875] display options

by Thomas Granz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello all,

is it possible to display or to write out large matrix(> 40 column) in one line?

Best Regards,
L. J.


     

--~--~---------~--~----~------------~-------~--~----~
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 2897] Re: display options

by Robert Fourer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



It's best to use printf for this sort of thing.  For example:

   for {i in 1..m, j in 1..n} printf '  %g', A[i,j];
   printf '\n';



> -----Original Message-----
> From: ampl@... [mailto:ampl@...]
> On Behalf Of Thomas Granz [amplbox@...]
> Sent: Friday, October 09, 2009 8:55 AM
> To: ampl@...
> Subject: [AMPL 2875] display options
>
>
> Hello all,
>
> is it possible to display or to write out large matrix(> 40 column) in one
> line?
>
> Best Regards,
> L. J.
>



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---