void CSensProblem::initDebugProblem() { CSensItem item; item.setSingleObjectCN(this->getCN()); addVariables(item); item.setListType(CObjectLists::NON_CONST_METAB_CONCENTRATIONS); addVariables(item); }
/** * Default constructor. * @param "CModel *" pModel */ CSensProblem::CSensProblem(const CDataContainer * pParent): CCopasiProblem(CTaskEnum::Task::sens, pParent), mpSubTaskType(NULL), mpTargetFunctions(NULL), mpVariablesGroup(NULL), mpResultAnnotation(NULL), mpScaledResultAnnotation(NULL), mpCollapsedResultAnnotation(NULL) { initializeParameter(); initObjects(); // Default Problem CSensItem item; item.setListType(CObjectLists::NON_CONST_METAB_CONCENTRATIONS); setTargetFunctions(item); item.setListType(CObjectLists::ALL_PARAMETER_VALUES); addVariables(item); item.setListType(CObjectLists::EMPTY_LIST); addVariables(item); }
/** * Default constructor. * @param "CModel *" pModel */ CSensProblem::CSensProblem(const CCopasiContainer * pParent): CCopasiProblem(CCopasiTask::sens, pParent), mpSubTaskType(NULL), mpTargetFunctions(NULL), mpVariablesGroup(NULL), mpResultAnnotation(NULL), mpScaledResultAnnotation(NULL), mpCollapsedResultAnnotation(NULL) { addParameter("SubtaskType", CCopasiParameter::UINT, (unsigned C_INT32) 0); mpSubTaskType = (CSensProblem::SubTaskType*)getValue("SubtaskType").pUINT; //--------------------------------------------------- addGroup("TargetFunctions"); mpTargetFunctions = dynamic_cast<CCopasiParameterGroup*>(getParameter("TargetFunctions")); createParametersInGroup(mpTargetFunctions); //--------------------------------------------------- addGroup("ListOfVariables"); mpVariablesGroup = dynamic_cast<CCopasiParameterGroup*>(getParameter("ListOfVariables")); //create a useful default problem setSubTaskType(SteadyState); CSensItem item; item.setListType(CObjectLists::NON_CONST_METAB_CONCENTRATIONS); changeTargetFunctions(item); item.setListType(CObjectLists::ALL_PARAMETER_VALUES); addVariables(item); // initDebugProblem(); initObjects(); CONSTRUCTOR_TRACE; }