Thread Subject: logical, sparse JacobPattern as argument to lsqnonlin?

Subject: logical, sparse JacobPattern as argument to lsqnonlin?

From: Noah Snavely

Date: 8 Nov, 2009 22:57:01

Message: 1 of 1

Hi everyone,

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:

"Invalid value for OPTIONS parameter JacobPattern: must be a matrix."

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?

Thanks,
Noah

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
lsqnonlin Noah Snavely 8 Nov, 2009 17:59:03
jacobpattern Noah Snavely 8 Nov, 2009 17:59:03
rssFeed for this Thread

Contact us at files@mathworks.com