Пример #1
0
        public override void GlobalContext()
        {
            base.GlobalContext();
            var simulationFile      = HelperForSpecs.DataFile("S1.pkml");
            var simulationPersister = Api.GetSimulationPersister();
            var pkParametersTask    = Api.GetPKParameterTask();

            _simulation          = simulationPersister.LoadSimulation(simulationFile);
            _sensitivityAnalysis = new SensitivityAnalysis(_simulation)
            {
                NumberOfSteps = 2, VariationRange = 0.2
            };

            //Should calculate CMax/100
            _userDefinedPKParameter = new UserDefinedPKParameter {
                Name = "Toto", NormalizationFactor = 100, StandardPKParameter = StandardPKParameter.C_max
            };
            pkParametersTask.AddUserDefinedPKParameter(_userDefinedPKParameter);

            _userDefinedCLParameter = new UserDefinedPKParameter {
                Name = "MyCL", StandardPKParameter = StandardPKParameter.CL
            };
            pkParametersTask.AddUserDefinedPKParameter(_userDefinedCLParameter);

            var containerTask = Api.GetContainerTask();
            var liverVolumes  = containerTask.AllParametersMatching(_simulation, "Organism|Liver|Volume");

            _sensitivityAnalysis.AddParameterPaths(liverVolumes.Select(x => x.ConsolidatedPath()));
        }
Пример #2
0
        public override void GlobalContext()
        {
            base.GlobalContext();
            var simulationFile      = HelperForSpecs.DataFile("S1.pkml");
            var simulationPersister = Api.GetSimulationPersister();

            _simulation          = simulationPersister.LoadSimulation(simulationFile);
            _sensitivityAnalysis = new SensitivityAnalysis(_simulation)
            {
                NumberOfSteps = 2, VariationRange = 0.2
            };
            var containerTask = Api.GetContainerTask();
            var liverVolumes  = containerTask.AllParametersMatching(_simulation, "Organism|Liver|Volume");

            _sensitivityAnalysis.AddParameterPaths(liverVolumes.Select(x => x.ConsolidatedPath()));
        }