@model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.FileOpeningViewModel
@{System.Random randomizer = new Random();
int randy = randomizer.Next(5000); }
@Model.message
Batch: @Model.SelectedBatchRun.Name
Repeats: @Model.SelectedBatchRun.Repetitions x
Distribute child tasks
@for (var k = 0; k < Model.SelectedBatchRun.Repetitions; k++)
{
@if (Model.SelectedBatchRun.Optimizer is HeuristicLab.Optimization.IAlgorithm)
{
@Html.Partial("OpenFilePartials/_AlgorithmSmall",
new HeuristicLab.Clients.Hive.WebJobManager.Models.AlgorithmContainer(
((HeuristicLab.Optimization.IAlgorithm)Model.SelectedBatchRun.Optimizer),
new List(),
new int[] { 0, k },
randomizer));
}
else if (Model.SelectedBatchRun.Optimizer is HeuristicLab.Optimization.BatchRun)
{
@Html.Partial("OpenFilePartials/_BatchRunSmall",
new HeuristicLab.Clients.Hive.WebJobManager.Models.BatchRunContainer(
((HeuristicLab.Optimization.BatchRun)Model.SelectedBatchRun.Optimizer),
new List(),
new int[] { 0, k },
randomizer));
}
else if (Model.SelectedBatchRun.Optimizer is HeuristicLab.Optimization.Experiment)
{
@Html.Partial("OpenFilePartials/_ExperimentSmall",
new HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer(
((HeuristicLab.Optimization.Experiment)Model.SelectedBatchRun.Optimizer),
new List(),
new int[] { 0, k },
randomizer));
}
}