public static DoptimizationAlgorithm SelectState(DoptimizeExperimentTable det)
        {
            IDoptimizationDistributionSelection distributionSelection = null;
            LangleyMethodStandardSelection      langleyMethod         = null;

            if (det.det_DistributionState == 0)
            {
                distributionSelection = new Dop_Noraml();
            }
            else if (det.det_DistributionState == 1)
            {
                distributionSelection = new Dop_Logistic();
            }

            if (det.det_StandardState == 0)
            {
                langleyMethod = new Standard();
            }
            else if (det.det_StandardState == 1)
            {
                langleyMethod = new Ln();
            }
            else if (det.det_StandardState == 2)
            {
                langleyMethod = new Log();
            }
            else if (det.det_StandardState == 3)
            {
                langleyMethod = new Pow(double.Parse(det.det_Power));
            }

            return(new DoptimizationAlgorithm(distributionSelection, langleyMethod));
        }
Beispiel #2
0
 public DoptimizationAlgorithm(IDoptimizationDistributionSelection distributionSelection, LangleyMethodStandardSelection standardSelection) : base(distributionSelection, standardSelection)
 {
     DopDistributionSelection = distributionSelection;
     StandardSelection        = standardSelection;
 }