Exemplo n.º 1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public ParameterEstimationParameter()
 {
     m_estimationFormulator = "";
     m_simulationTime = 10.0;
     m_population = 10;
     m_generation = 20;
     m_type = EstimationFormulatorType.Max;
     m_param = new SimplexCrossoverParameter();
 }
        /// <summary>
        /// Set the parameter and display the set parameter.
        /// </summary>
        /// <param name="param">parameter object.</param>
        public void SetParameter(ParameterEstimationParameter param)
        {
            parameterEstimationSimulationTimeTextBox.Text = Convert.ToString(param.SimulationTime);
            parameterEstimationPopulationTextBox.Text = Convert.ToString(param.Population);
            parameterEstimationGenerationTextBox.Text = Convert.ToString(param.Generation);
            estimationFormulatorTextBox.Text = param.EstimationFormulator;

            m_param = param;
            m_simParam = param.Param;

            PEMTextBox.Text = Convert.ToString(m_simParam.M);
            PEUpsilonTextBox.Text = Convert.ToString(m_simParam.Upsilon);
            PEM0TextBox.Text = Convert.ToString(m_simParam.Initial);
            PEKTextBox.Text = Convert.ToString(m_simParam.K);
            PEMaxRateTextBox.Text = Convert.ToString(m_simParam.Max);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Constructor with the initial parameters.
 /// </summary>
 /// <param name="formulator">The formulator to estimate the result.</param>
 /// <param name="simTime">The simulation time.</param>
 /// <param name="populationNum">The number of population.</param>
 /// <param name="generationNum">The number of generation.</param>
 /// <param name="type">The type of fomulator.</param>
 /// <param name="param">The parameter data of simplex cross over.</param>
 public ParameterEstimationParameter(string formulator, double simTime, int populationNum, 
     int generationNum, EstimationFormulatorType type, SimplexCrossoverParameter param)
 {
     m_estimationFormulator = formulator;
     m_simulationTime = simTime;
     m_population = populationNum;
     m_generation = generationNum;
     m_type = type;
     m_param = param;
 }