Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: fmincon complexity

Subject: fmincon complexity

From: Jun Li

Date: 16 May, 2008 09:56:02

Message: 1 of 4

hi, all:

i am using the fmincon to solve problems.

like: f = log det(Q)
Q is n- square,
and it has n equality constraints,
n*m inequality constraints.

what is the complexity of the algorithm?

thanks

Jun

Subject: Re: fmincon complexity

From: John D'Errico

Date: 16 May, 2008 10:15:03

Message: 2 of 4

"Jun Li" <twofishleft@gmail.com> wrote in message
<g0jlni$idj$1@fred.mathworks.com>...
> hi, all:
>
> i am using the fmincon to solve problems.
>
> like: f = log det(Q)
> Q is n- square,
> and it has n equality constraints,
> n*m inequality constraints.
>
> what is the complexity of the algorithm?

Its probably roughly O(n^3)

I doubt that you can be much more
accurate than that. Unless m is quite
large, that should be the dominant
part.

If m is large, then I don't know there
will be a simple answer. It probably
depends on how many of your
constraints become active.

John

Subject: Re: fmincon complexity

From: Jun Li

Date: 16 May, 2008 10:27:02

Message: 3 of 4

thank you so much, John.

m is quite large, around 10,000 or even more.
but the algorithm starts at a feasible solution,

so i think the complexity just depends on n, right?

thanks

Jun

Subject: Re: fmincon complexity

From: John D'Errico

Date: 16 May, 2008 11:42:03

Message: 4 of 4

"Jun Li" <twofishleft@gmail.com> wrote in message
<g0jnhl$6ge$1@fred.mathworks.com>...
> thank you so much, John.
>
> m is quite large, around 10,000 or even more.
> but the algorithm starts at a feasible solution,
>
> so i think the complexity just depends on n, right?

What worries me is, suppose n was 1. With n*m
inequalities and m = 10000, just the test for
the constraints will be a dominant factor.

The medium scale solver (required for this
class of problem) is an active set solver as I
recall. So once it knows which inequalities are
active, the problem gets much smaller, and
O(n^3). But since it may be forced to shuffle
the active constraints around a lot, things will
get nasty.

John

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
fmincon complexity constraints Jun Li 16 May, 2008 06:00:06
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics