Example #1
0
        /// <summary>
        ///    Set variable initial values which will be varied into SimModel
        /// </summary>
        /// <param name="simulation">SimModel simulation</param>
        private void setVariableInitialValues(SimModelNET.ISimulation simulation)
        {
            var initialValuesPathsToBeVaried = _populationDataSplitter.InitialValuesPathsToBeVaried();
            var allInitialValues             = simulation.SpeciesProperties;
            var initialValuesToBeVaried      = allInitialValues.Where(p => initialValuesPathsToBeVaried.Contains(p.Path));

            simulation.VariableSpecies = initialValuesToBeVaried.ToList();
        }
Example #2
0
 /// <summary>
 ///    Set variable initial values which will be varied into SimModel
 /// </summary>
 /// <param name="simulation">SimModel simulation</param>
 private void setVariableInitialValues(Simulation simulation)
 {
     SetVariableMolecules(simulation, _populationDataSplitter.InitialValuesPathsToBeVaried());
 }