From: "Steven_Lord" <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: fmincon does not respect boundaries
Date: Sun, 30 Dec 2012 23:43:09 -0500
Organization: MathWorks
Lines: 20
Message-ID: <kbr54t$135$>
References: <>
Mime-Version: 1.0
Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
X-Trace: 1356928989 1125 (31 Dec 2012 04:43:09 GMT)
NNTP-Posting-Date: Mon, 31 Dec 2012 04:43:09 +0000 (UTC)
In-Reply-To: <>
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726
X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726
Xref: comp.soft-sys.matlab:785649

<> wrote in message
> I have a problem with ten variables.
> I have lower and upper boundaries for each variable. During the 
> optimization process (e.g 2nd iteration), the fmincon uses input variables 
> violating the boundaries. This behavior leads an error in my function, 
> because it loses its consistency.
> Why does fmincon violate the imposed boundaries, lb and ub ?

Steve Lord
To contact Technical Support use the Contact Us link on