#include <COptItem.h>
List of all members.
Constructor & Destructor Documentation
| COptItem::COptItem |
( |
| ) |
[protected] |
| COptItem::COptItem |
( |
const CCopasiContainer * |
pParent, |
|
|
const std::string & |
name = "OptimizationItem" |
|
) |
| |
Specific constructor
- Parameters:
-
| const | CCopasiContainer * pParent |
| const | std::string & name (default: OptimizationItem) |
Copy constructor
- Parameters:
-
Specific constructor used for reading COPASI files
- Parameters:
-
| COptItem::~COptItem |
( |
| ) |
[virtual] |
Member Function Documentation
| C_INT32 COptItem::checkConstraint |
( |
| ) |
const [virtual] |
This functions check whether the current value is within the limits of the optimization item.
- Returns:
- C_INT32 result (-1: to small, 0: within boundaries, 1 to large)
Reimplemented in CFitConstraint, and CFitItem.
| C_INT32 COptItem::checkConstraint |
( |
const C_FLOAT64 & |
value | ) |
const |
This functions check whether the value is within the limits of the optimization item.
- Parameters:
-
- Returns:
- C_INT32 result (-1: to small, 0: within boundaries, 1 to large)
| bool COptItem::checkLowerBound |
( |
const C_FLOAT64 & |
value | ) |
const |
Checks whether the value fulfills the lower bound constraint.
- Parameters:
-
- Returns:
- bool fulfills
| bool COptItem::checkUpperBound |
( |
const C_FLOAT64 & |
value | ) |
const |
Checks whether the value fulfills the upper bound constraint.
- Parameters:
-
- Returns:
- bool fulfills
Compile the optimization item. This function must be called before any of the check functions are called.
- Parameters:
-
| const | std::vector< CCopasiContainer * > listOfContainer |
- Returns:
- bool success
Reimplemented in CFitItem.
| C_FLOAT64 COptItem::getConstraintViolation |
( |
| ) |
const [virtual] |
Retrieve the magnitude of the constraint violation This is always a positive number
- Returns:
- C_FLOAT64 constraintViolation;
Reimplemented in CFitConstraint, and CFitItem.
| const std::string COptItem::getLowerBound |
( |
| ) |
const |
Retrieve the lower bound.
- Returns:
- const std::string lowerBound
| const C_FLOAT64* COptItem::getLowerBoundValue |
( |
| ) |
const [inline] |
Retrieve the value of the lower bound.
- Returns:
- const C_FLOAT64 * lowerBoundValue
Retrieve the item object. This may only be called after compile
- Returns:
- const CCopasiObject *
Retrieve the object of the optimization item.
- Returns:
- const CCopasiObjectName objectCN
| std::string COptItem::getObjectDisplayName |
( |
| ) |
const |
Retrieve the display name of the optimization item.
- Returns:
- std::string displayName
| const C_FLOAT64 * COptItem::getObjectValue |
( |
| ) |
const [virtual] |
Retrieve the value of the optimization object.
- Returns:
- const C_FLOAT64 * objectValue
Reimplemented in CFitItem.
| C_FLOAT64 COptItem::getRandomValue |
( |
CRandom * |
pRandom = NULL | ) |
|
Retrieve a random value in the interval (lower bound, upper bound). Optionally one may provide a random number generator to be used to create the random value.
- Parameters:
-
- Returns:
- C_FLOAT64 randomValue
| const C_FLOAT64 & COptItem::getStartValue |
( |
| ) |
const |
Retrieve the sart value of the optimization object.
- Returns:
- const C_FLOAT64 & startValue
| UpdateMethod * COptItem::getUpdateMethod |
( |
| ) |
const [virtual] |
| const std::string COptItem::getUpperBound |
( |
| ) |
const |
Retrieve the upper bound.
- Returns:
- const std::string upperBound
| const C_FLOAT64* COptItem::getUpperBoundValue |
( |
| ) |
const [inline] |
Retrieve the value of the upper bound.
- Returns:
- const C_FLOAT64 * upperBoundValue
| bool COptItem::isValid |
( |
| ) |
const [virtual] |
Check the validity of the optimization item.
Reimplemented in CFitItem.
Check whether the group describes a valid optimization item.
- Returns:
- bool isValid
Reimplemented in CFitItem.
Set the lower bound.
- Parameters:
-
- Returns:
- bool success
Set the object of the optimization item.
- Parameters:
-
- Returns:
- bool success
| bool COptItem::setStartValue |
( |
const C_FLOAT64 & |
value | ) |
|
Set the value start value.
- Parameters:
-
| const | C_FLOAT64 & startValue |
- Returns:
- bool succes
Set the upper bound.
- Parameters:
-
- Returns:
- bool success
Friends And Related Function Documentation
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const COptItem & |
o |
|
) |
| [friend] |
Output stream operator
- Parameters:
-
- Returns:
- ostream & os
Member Data Documentation
The value of the lower bound (only if not on object)
A pointer to the lower bound value
A pointer to the object for the lower bound
A pointer to the object update method
A pointer to the object value
A pointer to the random number generator used in randomizeStartValue
A pointer to the upper bound value
A pointer to the object for the upper bound
The value of the upper bound (only if not on object)
The documentation for this class was generated from the following files: