ActiveSet Class Reference

active set request vector and the derivative variables vector. More...

List of all members.

Public Member Functions

 ActiveSet ()
 default constructor
 ActiveSet (size_t num_fns, size_t num_deriv_vars)
 standard constructor
 ActiveSet (const ActiveSet &set)
 copy constructor
 ~ActiveSet ()
 destructor
ActiveSetoperator= (const ActiveSet &set)
 assignment operator
void reshape (size_t num_fns, size_t num_deriv_vars)
 reshape requestVector and derivVarsVector
const ShortArrayrequest_vector () const
 return the request vector
void request_vector (const ShortArray &rv)
 set the request vector
void request_values (const short rv_val)
 set all request vector values
void request_value (const size_t index, const short rv_val)
 set the value of an entry in the request vector
const UIntArrayderivative_vector () const
 return the derivative variables vector
void derivative_vector (const UIntArray &dvv)
 set the derivative variables vector
void derivative_start_value (const unsigned int dvv_start_val)
 set the derivative variables vector values
void read (istream &s)
 read an active set object from an istream
void write (ostream &s) const
 write an active set object to an ostream
void write_annotated (ostream &s) const
 write an active set object to an ostream in annotated format
void read (BiStream &s)
 read an active set object from the binary restart stream
void write (BoStream &s) const
 write an active set object to the binary restart stream
void read (MPIUnpackBuffer &s)
 read an active set object from a packed MPI buffer
void write (MPIPackBuffer &s) const
 write an active set object to a packed MPI buffer

Private Attributes

ShortArray requestVector
 the vector of response requests
UIntArray derivVarsVector
 the vector of variable ids used for computing derivatives

Friends

bool operator== (const ActiveSet &set1, const ActiveSet &set2)
 equality operator
bool operator!= (const ActiveSet &set1, const ActiveSet &set2)
 inequality operator


Detailed Description

active set request vector and the derivative variables vector.

The ActiveSet class is a small class whose initial design function is to avoid having to pass the ASV and DVV separately. It is not part of a class hierarchy and does not employ reference-counting/ representation-sharing idioms (e.g., handle-body).


Member Data Documentation

ShortArray requestVector [private]

the vector of response requests

It uses a 0 value for inactive functions and sums 1 (value), 2 (gradient), and 4 (Hessian) for active functions.

UIntArray derivVarsVector [private]

the vector of variable ids used for computing derivatives

These ids will generally identify either the active continuous variables or the inactive continuous variables.


The documentation for this class was generated from the following files:
Generated on Wed Nov 5 19:54:06 2008 for DAKOTA by  doxygen 1.5.1