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 | |
| ActiveSet & | operator= (const ActiveSet &set) |
| assignment operator | |
| void | reshape (size_t num_fns, size_t num_deriv_vars) |
| reshape requestVector and derivVarsVector | |
| const ShortArray & | request_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 UIntArray & | derivative_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 | |
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).
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.
1.5.1