Re: Minimum distance from a point to a surface defined by constraints

From: carkaci (carkaci_at_yahoo.com)
Date: 03/03/05


Date: 3 Mar 2005 06:46:18 -0800


astanoff@yahoo.fr wrote:
> Numerically, you can do it this way, with mathematica (3D example) :
>
> pointP = {2,3,4};
>
> pointX = {x,y,z};
>
> distance = Sqrt[(pointP-pointX).(pointP-pointX)];
>
> constraints = x+y+z <= 1 && x+2y+z <= 2;
>
> NMinimize[{distance, constraints}, pointX]
>
> {4.6188, {x -> -0.666667, y -> 0.333333, z -> 1.33333}}

I think, you clearly understand what i mean. However, I wonder the
algorithm. Is there a faster way to compute the minimum distance ? I
suppose, it can be solved much simpler and more fast than any other
Optimization problems. Of course, I hope so. Because, the constraints
are normalized.



Relevant Pages

  • Re: Minimum distance from a point to a surface defined by constraints
    ... algorithm. ... Is there a faster way to compute the minimum distance? ... Optimization problems. ... Because, the constraints ...
    (sci.math)
  • Re: Optimization problem
    ... Alan Weiss wrote: ... Try setting Algorithm to 'interior-point' and don't use the LargeScale option (unless you are running an older version of MATLAB; the interior-point algorithm was introduced in R2008a). ... You cannot use the LargeScale algorithm in any case because you are not supplying derivatives, and because the algorithm does not handle both bound and linear constraints simultaneously. ...
    (comp.soft-sys.matlab)
  • Re: Optimization problem
    ... I suggest you start with the default tolerances, then gradually tighten them, perhaps by a factor of 2 to 10 smaller each time, until you obtain something satisfactory. ... Try setting Algorithm to 'interior-point' and don't use the LargeScale option (unless you are running an older version of MATLAB; the interior-point algorithm was introduced in R2008a). ... You cannot use the LargeScale algorithm in any case because you are not supplying derivatives, and because the algorithm does not handle both bound and linear constraints simultaneously. ...
    (comp.soft-sys.matlab)
  • Re: A dungeon generator
    ... algorithm couldn't meet all the constraints sometimes. ... spending some days at a country 3000 km. away from my code, ... when I thought I was outputting costs of nodes that I ...
    (rec.games.roguelike.development)
  • Re: Global Optinization : Fmincon
    ... You are probably using the active-set algorithm, ... Though I start with a initial value satisfying the constraints, fmincon ...
    (comp.soft-sys.matlab)