Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
question on lsqnonlin

Subject: question on lsqnonlin

From: Aidy

Date: 9 Jan, 2011 22:36:04

Message: 1 of 3

Hello guys,

I implemented a non-linear optimization algorithm without using any Matlab optimization toolboxes. I do the iterations as usual with continuous for looping after having input my initial estimates for the unknowns I'm trying to solve for.

I have no weighting or damping scheme involved , so convergence in my code takes a few hundred iterations and thus take a bit of time....too much for me.

I need some advice about the benefits I would have using the Matlab Optimization toolbox with the function 'lsqnonlin' . My questions are:

i) Will the 'lsqnonlin' function make my optimization very much faster than my created software that uses ' for' looping for iterations?

ii) I have been reading the help on 'lsqnonlin' and can't seem to notice where I would input my Initial estimates of the unknowns I am trying to solve for in the Optimzation procedure. Can I get a bit of advice on where I could find it?

Thanks
aidy

Subject: question on lsqnonlin

From: Michael Croucher

Date: 10 Jan, 2011 14:45:41

Message: 2 of 3

On Jan 9, 10:36 pm, "Aidy " <aidenj...@gmail.com> wrote:
> Hello guys,
>
> I implemented a non-linear optimization algorithm without using any Matlab optimization toolboxes. I do the iterations as usual with continuous for looping after having input my initial estimates for the unknowns I'm trying to solve for.
>
> I have no weighting or damping scheme involved , so convergence in my code takes a few hundred iterations and thus take a bit of time....too much for me.
>
> I need some advice about the benefits I would have using the Matlab Optimization toolbox with the function 'lsqnonlin' . My questions are:
>
> i) Will the 'lsqnonlin' function make my optimization very much faster than my created software that uses ' for' looping for iterations?
>
> ii) I have been reading the help on 'lsqnonlin' and can't seem to notice where I would input my Initial estimates of the unknowns I am trying to solve for in the Optimzation procedure. Can I get a bit of advice on where I could find it?
>
> Thanks
> aidy

Hi Aidy

Email me your code and any information I'd need to run it and I'll do
a comparison with lsqnonlin for you. If lsqnonlin is faster (I
suspect it will be) then I'll let you know how much faster and show
you my output.

Best Wishes,
Mike

Subject: question on lsqnonlin

From: Aidy

Date: 11 Jan, 2011 12:47:04

Message: 3 of 3

Hi Mike,

I emailed you the stuff you need.

thanks a lot mate,
aiden

Tags for this Thread

No tags are associated with this thread.

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.

Contact us