Previous: The Computationally-Efficient Layout Up: Easy Ways to Manage Next: Interchanging the Three Methods

The Memory-Efficient Layout

Choosing a ``compact'' 53#53 matrix and matrix 12#12 is probably the most memory-efficient configuration: model.matrix(..., shape = "compact") (the default) produces an 129#129 matrix, where 130#130 is the number of unique variables (5 in this case)8.1 in all of the equations. Let 112#112 be an 106#106 vector representing variable x1, 113#113 x2, and so forth.

133#133   134#134  

The 135#135 parameter is used twice to implement the constraint, and the number of empty cells is minimized by implementing the constraints in 12#12 rather than 53#53 . Furthermore, since 53#53 is 136#136 and 12#12 is 137#137 , 138#138 is 109#109 .



Gary King 2011-11-29