<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265313</link>
    <title>MATLAB Central Newsreader - logical, sparse JacobPattern as argument to lsqnonlin?</title>
    <description>Feed for thread: logical, sparse JacobPattern as argument to lsqnonlin?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sun, 08 Nov 2009 22:57:01 -0500</pubDate>
      <title>logical, sparse JacobPattern as argument to lsqnonlin?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265313#693084</link>
      <author>Noah Snavely</author>
      <description>Hi everyone,&lt;br&gt;
&lt;br&gt;
I'm running a large, non-linear optimization problem using lsqnonlin, and memory is becoming an issue.  I'm passing in a sparsity pattern matrix as the JacobPattern, but for memory reasons I'd like to pass it as a sparse, logical matrix, rather than a sparse matrix of doubles (I can't think of any reason why a logical wouldn't suffice).  However, lsqnonlin complains that:&lt;br&gt;
&lt;br&gt;
&quot;Invalid value for OPTIONS parameter JacobPattern: must be a matrix.&quot;&lt;br&gt;
&lt;br&gt;
Is it possible to convince lsqnonlin to take in a logical matrix as the JacobPattern, or is there a reason why I shouldn't be trying this?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Noah</description>
    </item>
  </channel>
</rss>

