Ejemplo n.º 1
0
        /// <summary>
        /// Create the analysis instance.
        /// </summary>
        /// <param name="group">the group object.</param>
        /// <returns>new ParameterEstimation object.</returns>
        public IAnalysisModule CreateNewInstance(JobGroup group)
        {
            ParameterEstimation instance = new ParameterEstimation(m_owner);
            instance.Group = group;

            return instance;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// This program execute the program of parameter estimation.
 /// </summary>
 public void ExecuteParameterEstimation()
 {
     if (m_env.PluginManager.Status == ProjectStatus.Uninitialized)
         return;
     m_estimationParameter = m_estimationDialog.GetParameter();
     ShowGridStatusDialog();
     string modelName = m_env.DataManager.CurrentProject.Model.ModelID;
     List<EcellObject> sysObj = new List<EcellObject>();
     foreach (EcellObject e in m_env.DataManager.CurrentProject.SystemDic[modelName])
     {
         sysObj.Add(e.Clone());
     }
     List<EcellObject> stepperObj = new List<EcellObject>();
     foreach (EcellObject e in m_env.DataManager.CurrentProject.StepperDic[modelName])
     {
         stepperObj.Add(e.Clone());
     }
     JobGroup g = m_env.JobManager.CreateJobGroup(ParameterEstimation.s_analysisName, sysObj, stepperObj);
     ParameterEstimation parameterEstimation = new ParameterEstimation(this);
     parameterEstimation.Group = g;
     parameterEstimation.AnalysisParameter = m_estimationParameter;
     parameterEstimation.ExecuteAnalysis();
 }