From: Alan_Weiss <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Optimization
Date: Mon, 26 Nov 2012 12:37:56 -0500
Organization: MathWorks
Lines: 29
Message-ID: <k909dk$77l$>
References: <k8jaks$fqr$> <k8jjv2$ioc$> <k8lisn$aqf$> <k8ltln$fel$>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: 1353951476 7413 (26 Nov 2012 17:37:56 GMT)
NNTP-Posting-Date: Mon, 26 Nov 2012 17:37:56 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
In-Reply-To: <k8ltln$fel$>
Xref: comp.soft-sys.matlab:783515

On 11/22/2012 2:16 PM, Matt J wrote:
> "Carlos Alejandro Perez Lasso" <> wrote in 
> message <k8lisn$aqf$>...
>> I will try lsqcurvefit and see what happens. Regarding the objective 
>> function, it doesn't have quantizing operations like the once you 
>> described above. It does contain operations that write python scripts 
>> to produce input files for running Abaqus simulation and retrieve 
>> information once the simulation is done.
> =================
> It seems like it would be hard to know in advance whether such a 
> function was even differentiable. As for local flatness, an easy test 
> you can do is
>  small=1e-6;
> for i=1:N
>  f(x)-f(x+small*rand(size(x))) end
> If this returns N zeros, it's a strong sign know your objective 
> function f() is locally flat.

You might want to consult the documentation on optimizing simulations 
for suggestions:

Alan Weiss
MATLAB mathematical toolbox documentation