COPASI API  4.16.103
Functions | Variables
COptItem.cpp File Reference
#include <algorithm>
#include <limits>
#include <cmath>
#include <sstream>
#include <stdlib.h>
#include "copasi.h"
#include "COptItem.h"
#include "randomGenerator/CRandom.h"
#include "report/CCopasiContainer.h"
#include "CopasiDataModel/CCopasiDataModel.h"
#include "report/CCopasiObjectName.h"
#include "utilities/CCopasiParameterGroup.h"
#include "utilities/CCopasiMessage.h"
#include "utilities/utility.h"
Include dependency graph for COptItem.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const COptItem &o)
 

Variables

UpdateMethod DoNothing
 
C_FLOAT64 NaN = std::numeric_limits< C_FLOAT64 >::quiet_NaN()
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const COptItem o 
)

Output stream operator

Parameters
ostream& os
constCOptItem & A
Returns
ostream & os

Definition at line 505 of file COptItem.cpp.

References COptItem::getLowerBound(), CCopasiObject::getObjectDisplayName(), COptItem::getStartValue(), COptItem::getUpperBound(), COptItem::mpLowerObject, COptItem::mpObject, and COptItem::mpUpperObject.

506 {
507  if (o.mpObject == NULL && !const_cast<COptItem *>(&o)->compile())
508  return os << "Invalid Optimization Item";
509 
510  if (o.mpLowerObject)
512  else
513  os << o.getLowerBound();
514 
515  os << " <= ";
516  os << o.mpObject->getObjectDisplayName();
517  os << " <= ";
518 
519  if (o.mpUpperObject)
521  else
522  os << o.getUpperBound();
523 
524  os << "; Start Value = " << o.getStartValue();
525 
526  return os;
527 }
virtual std::string getObjectDisplayName(bool regular=true, bool richtext=false) const
const std::string getUpperBound() const
Definition: COptItem.cpp:189
const CCopasiObject * mpLowerObject
Definition: COptItem.h:303
const CCopasiObject * mpUpperObject
Definition: COptItem.h:318
const CCopasiObject * mpObject
Definition: COptItem.h:288
const C_FLOAT64 & getStartValue() const
Definition: COptItem.cpp:199
const std::string getLowerBound() const
Definition: COptItem.cpp:164

Variable Documentation

UpdateMethod DoNothing

Definition at line 35 of file COptItem.cpp.

Referenced by COptItem::compile().

C_FLOAT64 NaN = std::numeric_limits< C_FLOAT64 >::quiet_NaN()