<div>Hello,</div><div> </div><div>Maybe my question was too long.</div><div> </div><div>Can I use object &#39;big.matrix&#39; and &#39;filebacked.big.matrix&#39;  in Rsymphony package?</div><div> </div><div>Is there any other way to use large matrices in Rsymphony, lets say 100.000 x 100.000 that take 50 GB of drive space? I don&#39;t know how else to work with large matrix if there is any other way to represent a large matrix with less space and I am a bit confused!! I am really new to such big data, because here I think I have already entered through the door of big data!</div>
<div> </div><div>Thanks a lot </div><div>Makro<br><br></div><div class="gmail_quote">On Wed, Jan 16, 2013 at 1:41 PM, Marko Limbek <span dir="ltr">&lt;<a href="mailto:marko.limbek@gmail.com" target="_blank">marko.limbek@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div>Hello everyone</div><div> </div><div>I am turning to the list with my newest issue :)</div>
<div>I have been working on some ILP problem and I have reached the limit of &#39;matrix&#39; function and within it &#39;dim&#39; function, that allows me dimensions up to 10.000 x 10.000 or 15.000 x 15.000, but my current problem is 90.000 x 90.000 at least with my current constraints construction. And I might encounter problem of dimension 10^6 x 10^6. Than retreat and admit defeat? So I have been thinking about using package &#39;bigmatrix&#39;, but the problem is, that function &#39;Rsymphony_solve_LP&#39; accepts &#39;matrix&#39; in the place of &#39;mat&#39; attribute and not &#39;filebacked.big.matrix&#39;. Because it takes ncol(mat) and ncol(row) and object of type &#39;big.matrix&#39; is list and it is quite complicated to reach actual dimensions:</div>

<div> </div><div>Easy access to dimensions:</div><div> </div><div>&gt; A &lt;- cbind(diag(1000), diag(1000), diag(1000), diag(1000))<br>&gt; ncol(A)<br>[1] 4000</div><div> </div><div>Complicated access to dimensions:</div>

<div> </div><div>fbm &lt;- filebacked.big.matrix(5000,5000, init=0,  backingpath=&quot;path&quot;,  backingfile=&quot;bm.txt&quot;, descriptorfile=&quot;descr.txt&quot;)</div><div>A1 &lt;- cbind(fbm, fbm, fbm, fbm)</div>
<div>
&gt; ncol(A1[1][[1]][,])<br>[1] 5000</div><div> </div><div>Plus that Rsymphony_solve_LP uses a internal function &#39;make_csc_matrix&#39;, which I can&#39;t find.</div><div>So I think that is quite complicated and I am looking for a way to use &#39;bigmatrix&#39;. And also I have to make bigmatrix work and give me matrices of dimensions 10^5 x 10^5 and that I also haven&#39;t managed yet.</div>

<div> </div><div> </div><div>Before I have also tried to use only &#39;big.matrix&#39; but it cannot even make a matrix of 20.000 x 20.000</div><div> </div><div>&gt; BM &lt;-big.matrix(20000,20000, init=0, type=&quot;integer&quot;)<br>

Error in big.matrix(20000, 20000, init = 0, type = &quot;integer&quot;) : <br>  Error: memory could not be allocated for instance of type big.matrix</div><div> </div><div>So, would it perhaps be possible for me to get a small piece of advice by anyone, whether I should continue solving that large problem in R?</div>

<div> </div><div> </div><div>Thank you a lot,</div><div> </div><div> </div><div>Marko</div><div> </div><div>PS: By the way, is it also possible that I ask someone about my constraints construction, because maybe it would be possible to reduce it?</div>

<div> </div>
</blockquote></div><br>