class OEOpt::OEAdaptor
OEAdaptor is a base class which defines the interface for
classes which adapt or transform variables and gradients during an
optimization. Adaptors are useful in cases where function evaluations
are performed in a different coordinate system than the variables
being optimized (i.e. optimize polar coordinates but evaluate
Cartesian coordinates).
virtual bool AdaptVar(double *adaptedVar,const double *optVar)
The AdaptVar method takes a set of variables as the second
argument and copies a set of transformed variables into the first
argument. This method is commonly used to transform optimized
variables back into the coordinate system of the original reference
variables.
virtual void ClearPredicates()
The ClearPredicates method deletes all stored predicates set
previously using one of the overloaded Set methods. Predicates
control function initialization behavior of overridden
OEAdaptor::Setup methods.
virtual const double *GetVar(const double *refVar)
The GetVar method takes reference variables as an argument, and
transforms them into the variable type or coordinate system that will
be used during an optimization. Reference variables normally use the
same coordinate system as the function evaluations that will be
performed in an optimization. Many adaptors take Cartesian
coordinates as the argument to the method, and return an array of
variables containing the initial adapted state, such as torsion angles
or a quaternion.