The value must be a vector-optimizer question
Jan 07, 2010
03:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 07, 2010
03:00 AM
The value must be a vector-optimizer question
When I try to use the optimizer, I often get this error complaint "value must be a vector" in the optimization step. But I don't know what it's really complaining about. Can someone help?
Labels:
- Labels:
-
Other
3 REPLIES 3
Jan 07, 2010
03:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 07, 2010
03:00 AM
On 1/7/2010 2:15:48 PM, djoffe wrote:
== When I try to use the optimizer, I often get this error complaint "value must be a vector" in the optimization step. But I don't know what it's really complaining about.
You've applied the vectorize operator to optfun - which in turn applies to each argument, including p & z. This means that optfun calls gammamod with scalar p & z, whereas gammamod expects them to be vectors; hence the complaint as gammamod tries to take the indices of p & z.
Stuart
== When I try to use the optimizer, I often get this error complaint "value must be a vector" in the optimization step. But I don't know what it's really complaining about.
You've applied the vectorize operator to optfun - which in turn applies to each argument, including p & z. This means that optfun calls gammamod with scalar p & z, whereas gammamod expects them to be vectors; hence the complaint as gammamod tries to take the indices of p & z.
Stuart
Jan 07, 2010
03:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 07, 2010
03:00 AM
Thanks...I pulled the vectorize off the left hand side in the minerr...the optimization took off running quite happily to a great answer.
Thanks again...
Thanks again...
Jan 10, 2010
03:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 10, 2010
03:00 AM
On 1/7/2010 5:20:12 PM, djoffe wrote:
>Thanks...I pulled the
>vectorize off the left hand
>side in the minerr...the
>optimization took off running
>quite happily to a great
>answer.
>
>Thanks again...
______________________________
You mean everything is OK ?
Don't understand from quick reading.
jmG
>Thanks...I pulled the
>vectorize off the left hand
>side in the minerr...the
>optimization took off running
>quite happily to a great
>answer.
>
>Thanks again...
______________________________
You mean everything is OK ?
Don't understand from quick reading.
jmG
