public IEnumerable <InitializationParameters> GetCase5Settings() { for (int i = 0; i < 2; i++) { var retPar = basicSettings.InitializationParameters(1); costSettingsFactory.SetHelsimCombinedEstimation(retPar); retPar.ParticleMoverFactory = new BiasedParticleMoverFactory(new Random(0), 500f, new Vector3(), 200f); particlePositionFactory.SetBallDistribution(retPar, new Vector3(0.5f, 0.5f, 0.5f), 0.25f, 0.03f); SetSizeSettings(retPar); retPar.ParticleReductionFactor = 1; retPar.CellsPerSectionSingleDim = 1; retPar.ComCostFactory = new CohesionComCalcFactory(); retPar.VisualizationParameters.SnapTime = 1; retPar.VisualizationParameters.ParticleVisualizationSize = new Point(1000, 1000); retPar.VisualizationParameters.MainOutputPath = @"C:\Users\Jasper\Documents\School\Thesis\CASE5SETTINGS" + i + "\\"; retPar.VisualizationParameters.MergedPictureAddPath = "MergedParth\\"; retPar.VisualizationParameters.VideoAddPath = "Video\\"; retPar.VisualizationParameters.VideoName = "Video"; simulationTypeFactory.SetSideSortSettings(retPar, 20); retPar.SectionSize = new Vector3(1f, 1f, 1f); if (i == 1) { simulationTypeFactory.SetMatrixSettings(retPar, 1, 6); retPar.ZCores *= 4; retPar.XCores *= 4; retPar.ParticlesPerCell = 216; } yield return(retPar); } }
public IEnumerable <InitializationParameters> GetCase5Settings() { for (int i = 0; i < 2; i++) { var retPar = basicSettings.InitializationParameters(1); costSettingsFactory.SetHelsimCombinedEstimation(retPar); retPar.ParticleMoverFactory = new BiasedParticleMoverFactory(new Random(0), 1000f, new Vector3(), 500f); particlePositionFactory.SetBallDistribution(retPar, new Vector3(0.5f, 0.5f, 0.5f), 0.5f, 0.03f); SetSizeSettings(retPar); retPar.ParticleReductionFactor = 1; retPar.CellsPerSectionSingleDim = 1; retPar.ComCostFactory = new CohesionComCalcFactory(); retPar.VisualizationParameters.SnapTime = 1; retPar.VisualizationParameters.ParticleVisualizationSize = new Point(300, 300); retPar.VisualizationParameters.MainOutputPath = @"C:\Users\Jasper\Documents\School\Thesis\ArticleMarchKMeansDemo2_" + i + "\\"; retPar.VisualizationParameters.MergedPictureAddPath = "MergedParth\\"; retPar.VisualizationParameters.VideoAddPath = "Video\\"; retPar.VisualizationParameters.VideoName = "Video"; simulationTypeFactory.SetKMeansSettings(retPar); if (i == 1) { simulationTypeFactory.SetMatrixSettings(retPar, 1, 6); //ONLY ONCE SO NB of comparisons is about equal } retPar.SectionSize = new Vector3(1f, 1f, 1f); yield return(retPar); } }
public InitializationParameters GetTimingInitializationParameters() { var retPar = basicSettings.InitializationParameters(1); simulationTypeFactory.SetMatrixSettings(retPar, 2, 6); costSettingsFactory.SetHelsimCombinedEstimation(retPar); const float ballCenter = 0.016675365f; const float ballRadius = 0.00193649f; particlePositionFactory.SetBallDistribution(retPar, new Vector3(ballCenter, ballCenter, ballCenter), ballRadius, 0.03f); retPar.SectionSize = new Vector3(0.03335073f, 0.03335073f, 0.03335073f); retPar.XCores = 2; retPar.XSections = 16; retPar.YCores = 2; retPar.YSections = 16; retPar.ZCores = 1; retPar.ZSections = 32; retPar.TotalSteps = 30; retPar.ParticlesPerCell = 216; retPar.ParticleReductionFactor = 1; retPar.CellsPerSectionSingleDim = 1; retPar.ComCostFactory = new CohesionComCalcFactory(); retPar.VisualizationParameters.MainOutputPath = @"C:\Users\Jasper\Documents\School\Thesis\MATRIXTIMING" + "\\"; retPar.VisualizationParameters.MergedPictureAddPath = "MergedParth\\"; retPar.VisualizationParameters.VideoAddPath = "Video\\"; retPar.VisualizationParameters.VideoName = "Video"; return(retPar); }
public IEnumerable <InitializationParameters> GetKMeansParameters() { for (int i = 0; i < 6; i++) { var settings = basicSettingsFactory.InitializationParameters(10); settings = costSettings.SetHelsimCombinedEstimation(settings); settings.ParticleGenerator = new LocalParticleGenerator(new Random(0)); settings.ParticleMoverFactory = new BiasedParticleMoverFactory(new Random(0), 1f, new Vector3(0.3f), 3f); settings.VisualizationParameters.SnapTime = 1; simulationTypeFactory.SetKMeansSettings(settings); settings.SectionFactory = new KMeansSectionFactory(0, 0.2f, 3); settings.VisualizationParameters.MainOutputPath = solutionPath; if (i == 0) { settings.SorterFactory = new KMeansSorterFactory(0f); settings.VisualizationParameters.MainOutputPath += @"problem1PlaceChanging\"; } if (i == 1) { settings.SorterFactory = new SingleDimKMeansSorterFactory(0f); settings.VisualizationParameters.MainOutputPath += @"Fixed2Problems\"; } if (i >= 2) { settings.SorterFactory = new SingleDimKMeansSorterFactory(0f); settings.SectionFactory = new KMeansSectionFactory(0, 0.2f, 0.2f); settings.VisualizationParameters.MainOutputPath += @"LimitedDistance" + i + @"\"; } yield return(settings); } }
public InitializationParameters GetTimingInitializationParameters(int nbProcessesSingleDim) { var retPar = basicSettings.InitializationParameters(1); simulationTypeFactory.SetHelsimSettings(retPar); costSettingsFactory.SetHelsimCombinedEstimation(retPar); const float ballCenter = 0.016675365f; const float ballRadius = 0.000897554f; particlePositionFactory.SetBallDistribution(retPar, new Vector3(ballCenter, ballCenter, ballCenter), ballRadius, 0.03f); //TODO simulatieruimte is maar deel van de ruimte retPar.SectionSize = new Vector3(0.03335073f, 0.03335073f, 0.03335073f); retPar.XCores = nbProcessesSingleDim; retPar.XSections = 2; retPar.YCores = nbProcessesSingleDim; retPar.YSections = 2; retPar.ZCores = nbProcessesSingleDim; retPar.ZSections = 2; retPar.TotalSteps = 30; retPar.ParticlesPerCell = 432 * 4 * 4 * 4; retPar.ParticleReductionFactor = 64; retPar.CellsPerSectionSingleDim = 16; retPar.ComCostFactory = new CohesionComCalcFactory(); retPar.VisualizationParameters.MainOutputPath = @"C:\Users\Jasper\Documents\School\Thesis\TIMINGRepairedEqualBug" + nbProcessesSingleDim + "\\"; retPar.VisualizationParameters.MergedPictureAddPath = "MergedParth\\"; retPar.VisualizationParameters.VideoAddPath = "Video\\"; retPar.VisualizationParameters.VideoName = "Video"; return(retPar); }
public IEnumerable <InitializationParameters> GetCase1Settings() { for (var j = 1; j < 2; j++) { for (var i = 2; i < 3; i++) { var retPar = basicSettings.InitializationParameters(1); costSettingsFactory.SetHelsimCombinedEstimation(retPar); var pm = new BiasedParticleMoverFactory(new Random(0), 0.1f, new Vector3(), 0.0f); retPar.ParticleMoverFactory = pm; particlePositionFactory.SetBallDistribution(retPar, new Vector3(0.8f, 0.8f, 0.8f), 0.15f, 0.03f); retPar.SectionSize = new Vector3(1f, 1f, 1f); SetSizeSettings(retPar); retPar.ParticleReductionFactor = 1; retPar.CellsPerSectionSingleDim = 1; retPar.ComCostFactory = new CohesionComCalcFactory(); if (j == 1) { retPar.ComCostFactory = new SimpleComCostFactory(); } retPar.VisualizationParameters.SnapTime = 1; retPar.VisualizationParameters.ParticleVisualizationSize = new Point(9200, 5000); retPar.VisualizationParameters.MainOutputPath = @"C:\Users\Jasper\Documents\School\Thesis\CASE1SETTINGS" + i + "_" + j + "\\"; retPar.VisualizationParameters.MergedPictureAddPath = "MergedParth\\"; retPar.VisualizationParameters.VideoAddPath = "Video\\"; retPar.VisualizationParameters.VideoName = "Video"; if (i % 3 == 0) { simulationTypeFactory.SetMatrixSettings(retPar, 1, 6); } if (i % 3 == 1) { simulationTypeFactory.SetHelsimSettings(retPar); } if (i % 3 == 2) { simulationTypeFactory.SetKMeansSettings(retPar); } yield return(retPar); } } }