Imp
[using it]
Interface Manipulation Package v4.0 (2008-06-25) a-projector ©copyright Author


imp.trajectory
Class Trajectory.Constraint

java.lang.Object
  extended by imp.trajectory.Trajectory.Obstacle
      extended by imp.trajectory.Trajectory.Constraint
Enclosing class:
Trajectory

public abstract static class Trajectory.Constraint
extends Trajectory.Obstacle

Defines an obstacle from an equation: c(x) > 0 for x outside the obstacle.


Constructor Summary
Trajectory.Constraint(double step)
          Constructs a constraint.
 
Method Summary
abstract  double c(double[] x)
          Defines the constraint equation positive outside and negative inside
 double[] g(double[] x)
          Defines the gradients of the constraint equation
The default implementation is a numerical gradient calculation but an analytic evaluation is to be preferred.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trajectory.Constraint

public Trajectory.Constraint(double step)
Constructs a constraint.

Parameters:
step - Minimal distance between two distinguishable points.
Method Detail

c

public abstract double c(double[] x)
Defines the constraint equation positive outside and negative inside


g

public double[] g(double[] x)
Defines the gradients of the constraint equation
The default implementation is a numerical gradient calculation but an analytic evaluation is to be preferred.