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

List of all members.

Public Member Functions

 Box ()
 Box (const stdVector &l, const stdVector &u)
 Box (unsigned dim, const Vertices &vertices)
 Box (unsigned dim, const Template &A, const Vector &b)
 Box (Hpolyhedron &poly)
virtual ~Box ()
Number optimize (const Vector &direction, Vector &optPoint, bool max=true)
Vertices generateVertices ()
Vector centroid ()
std::vector< PolynomcomputeUnitBoxMap ()
bool include (Hpolyhedron &poly)
Number getMaxInterval ()
Number getMinInterval ()
stdVector getBl () const
stdVector getBu () const
void setBl (stdVector bl)
void setBu (stdVector bu)

Constructor & Destructor Documentation

Non-consistent constructor

nltool::Box::Box ( const stdVector &  l,
const stdVector &  u 
)

Creates a box represented by lower and upper bounds

Parameters:
la vector corresponding to the lower bounds
ua vector corresponding to the upper bounds
nltool::Box::Box ( unsigned  dim,
const Vertices &  vertices 
)

Creates the minimal box representation which contains a vertices list

Parameters:
dimthe set dimension
verticesa list of vertices
nltool::Box::Box ( unsigned  dim,
const Template &  A,
const Vector &  b 
)

Creates a box that approximates a set of constraints given by the inequalities A*x<=b

Parameters:
dimthe set dimension
Aa matrix representing the left part of the inequalities
ba vector representing the right part of the inequalities

Creates a box from a polyhedron represented by a set of constraints

Parameters:
polya polyhedron represented by a set of constrains
nltool::Box::~Box ( ) [virtual]

Destructor


Member Function Documentation

Computes the box center

Returns:
the box center

Computes a set of affine functions that maps each interval of this box to the unit box (needed by the Bernstein based methods)

Returns:
a vector of affine functions

Generates a list of 2^n vertices

Returns:
the vertices list

Returns the maximal lenght of the box

Returns:
maximal lenghts

Returns the minimal lenght of the box

Returns:
minimal lenghts

Inclusion test with poluhedron

Parameters:
polya polyhedron represented by a set of constraints
Returns:
is poly included in this box?
Number nltool::Box::optimize ( const Vector &  direction,
Vector &  optPoint,
bool  max = true 
) [virtual]

Performs a quick linear optimisation in this box

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