From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Max distance from point on ellipsoid to surface
Date: Tue, 22 May 2012 20:13:07 +0000 (UTC)
Organization: Boeing Co
Lines: 6
Message-ID: <jpgs0i$m6s$>
References: <jpgh3q$c1$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1337717587 22748 (22 May 2012 20:13:07 GMT)
NNTP-Posting-Date: Tue, 22 May 2012 20:13:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 756104
Xref: comp.soft-sys.matlab:768665

"stefaneli" wrote in message <jpgh3q$c1$>...
> I want to find a point on an given ellipsoid that is the farthest from a given surface. (The distance between a point on ellipsoid and the surface should be max). So how can I do this? I was thinking about some kind of Lagrange multipliers. But what do you think? Thanks.

Another way is to brute force it. Write functions to parametrically descibe each surface, define a function to calculate the distance between surface points on each surface (or the negative of this if you are looking for max distance), and then pass a function handle to this function and a starting guess to fminsearch.

James Tursa