copasi API
0.1
|
#include <COptMethod.h>
Public Member Functions | |
COptMethod (const COptMethod &src, const CCopasiContainer *pParent=NULL) | |
virtual | ~COptMethod () |
virtual bool | optimise () |
bool | isBounded (void) |
void | setProblem (COptProblem *problem) |
virtual bool | initialize () |
virtual bool | isValidProblem (const CCopasiProblem *pProblem) |
Static Public Member Functions | |
static COptMethod * | createMethod (CCopasiMethod::SubType subType=CCopasiMethod::RandomSearch) |
Protected Member Functions | |
COptMethod (const CCopasiTask::Type &taskType, const SubType &subType, const CCopasiContainer *pParent=NULL) | |
virtual bool | cleanup () |
Protected Attributes | |
COptProblem * | mpOptProblem |
COptTask * | mpParentTask |
const bool | mBounds |
const std::vector < UpdateMethod * > * | mpSetCalculateVariable |
const std::vector< COptItem * > * | mpOptItem |
const std::vector< COptItem * > * | mpOptContraints |
:pos 36.4,4.15
COptMethod::COptMethod | ( | const CCopasiTask::Type & | taskType, |
const SubType & | subType, | ||
const CCopasiContainer * | pParent = NULL |
||
) | [protected] |
Specific constructor
const | CCopasiTask::Type & type |
const | CCopasiMethod::SubType & subType |
const | CCopasiContainer * pParent (default: NULL) |
COptMethod::COptMethod | ( | const COptMethod & | src, |
const CCopasiContainer * | pParent = NULL |
||
) |
Copy constructor
const | COptMethod & src |
const | CCopasiContainer * pParent (default: NULL) |
COptMethod::~COptMethod | ( | ) | [virtual] |
Destructor
bool COptMethod::cleanup | ( | ) | [protected, virtual] |
Cleanup arrays and pointers.
COptMethod * COptMethod::createMethod | ( | CCopasiMethod::SubType | subType = CCopasiMethod::RandomSearch | ) | [static] |
Create a optimization method. Note: the returned object has to be released after use with delete
COptMethod class This class describes the interface to all optimization methods. The various method like RandomSearch or GA have to be derived from this class.
Created for COPASI by Stefan Hoops 2002
Reimplemented in CFitMethod.
bool COptMethod::initialize | ( | ) | [virtual] |
bool COptMethod::isBounded | ( | void | ) |
Returns True if this method is capable of handling adjustable parameter boundary constraints, False otherwise
bool COptMethod::isValidProblem | ( | const CCopasiProblem * | pProblem | ) | [virtual] |
Check if the method is suitable for this problem
Reimplemented from CCopasiMethod.
Reimplemented in CFitMethod.
bool COptMethod::optimise | ( | void | ) | [virtual] |
Execute the optimization algorithm calling simulation routine when needed. It is noted that this procedure can give feedback of its progress by the callback function set with SetCallback. @ return success;
Reimplemented in CRandomSearch, COptMethodEP, COptMethodStatistics, COptMethodSteepestDescent, COptMethodPraxis, COptMethodTruncatedNewton, COptMethodGASR, COptMethodGA, COptMethodLevenbergMarquardt, COptMethodNelderMead, COptMethodPS, COptMethodSA, COptMethodHookeJeeves, and COptMethodSRES.
void COptMethod::setProblem | ( | COptProblem * | problem | ) |
Set the problem to be optmised
COptProblem * | problem |
const bool COptMethod::mBounds [protected] |
const std::vector< COptItem * >* COptMethod::mpOptContraints [protected] |
A vector of pointers to the functional constraints
const std::vector< COptItem * >* COptMethod::mpOptItem [protected] |
A vector of pointers to the optimization parameter
COptProblem* COptMethod::mpOptProblem [protected] |
:route 0,2; h,36.4,4.15,33.95,4.15,23.0576
COptTask* COptMethod::mpParentTask [protected] |
const std::vector< UpdateMethod * >* COptMethod::mpSetCalculateVariable [protected] |
A vector of pointers to the update methods for the optimization parameters