コード例 #1
0
            public IObjectiveScores <ICloneableSystemConfiguration> EvaluateScore(ICloneableSystemConfiguration systemConfiguration)
            {
                double x      = ((UnivariateReal)systemConfiguration).Value;
                double y      = x - 2;
                var    result = new SCH1ObjectiveScores(x * x, y * y);

                result.SystemConfiguration = systemConfiguration;
                return(result);
            }
コード例 #2
0
        public IObjectiveScores <UnivariateReal> EvaluateScore(UnivariateReal systemConfiguration)
        {
            double x      = systemConfiguration.Value;
            double y      = x - 2;
            var    result = new SCH1ObjectiveScores(x * x, y * y);

            result.SystemConfiguration = systemConfiguration;
            return(result);
        }