@for (var j = 0; j < Model.exp.Optimizers.Count; j++)
{
@if (Model.exp.Optimizers[j] is HeuristicLab.Optimization.IAlgorithm)
{
@Html.Partial("OpenFilePartials/_AlgorithmSmall",
new HeuristicLab.Clients.Hive.WebJobManager.Models.AlgorithmContainer(
((HeuristicLab.Optimization.IAlgorithm)Model.exp.Optimizers[j]),
Model.depth.ToList(),
new int[] { j, 0 },
Model.randy))
}
else if (Model.exp.Optimizers[j] is HeuristicLab.Optimization.BatchRun)
{
@Html.Partial("OpenFilePartials/_BatchRunSmall",
new HeuristicLab.Clients.Hive.WebJobManager.Models.BatchRunContainer(
((HeuristicLab.Optimization.BatchRun)Model.exp.Optimizers[j]),
Model.depth.ToList(),
new int[] { j, 0 },
Model.randy)) ;
}
else if (Model.exp.Optimizers[j] is HeuristicLab.Optimization.Experiment)
{
@Html.Partial("OpenFilePartials/_ExperimentSmall",
new HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer(
((HeuristicLab.Optimization.Experiment)Model.exp.Optimizers[j]),
Model.depth.ToList(),
new int[] { j, 0 },
Model.randy)) ;
}
}