NLToolbox
 All Classes Namespaces Functions
Public Member Functions
nltool::Ball Class Reference
Inheritance diagram for nltool::Ball:
nltool::Set

List of all members.

Public Member Functions

 Ball ()
 Ball (const unsigned dim, const Number rad, const stdVector center)
 Ball (const unsigned dim, const Number rad=0)
virtual ~Ball ()
virtual Number optimize (const Vector &direction, Vector &optPoint, bool max=true)
stdVector getCenter () const
Number getRadius () const
void setCenter (stdVector center)
void setRadius (Number radius)

Constructor & Destructor Documentation

Non-consistent constructor

nltool::Ball::Ball ( const unsigned  dim,
const Number  rad,
const stdVector  center 
)

Creates a ball representation

Parameters:
dimdimension of the set
radradius of the ball
centercenter of the ball
nltool::Ball::Ball ( const unsigned  dim,
const Number  rad = 0 
)

Creates a ball representation centered at the origin

Parameters:
dimdimension of the set
radradius of the ball
nltool::Ball::~Ball ( ) [virtual]

Destructor


Member Function Documentation

Number nltool::Ball::optimize ( const Vector &  direction,
Vector &  optPoint,
bool  max = true 
) [virtual]

Performs a quick linear optimisation in this ball

Parameters:
directionoptimization
optPointthe problem solution
maxis a maximization problem (otherwise minimization)
Returns:
optimization result

Reimplemented from nltool::Set.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions