Beispiel #1
0
        public static UpdateGaVm Direct()
        {
            var randy = Rando.Standard(Seed);
            var gasd  = randy.ToDirectGaSortingData(
                order: Order,
                sorterCount: SorterCount,
                sortableCount: SortableCount,
                stageCount: StageCount,
                sortableWinRate: SortableWinRate,
                sorterWinRate: SorterWinRate,
                stageReplacementMode: StageReplacementMode);

            var gaRet = new UpdateGaVm(
                gaSortingData: gasd,
                order: Order,
                width: GridSpan,
                height: GridSpan,
                sorterWinRate: SorterWinRate,
                sortableWinRate: SortableWinRate,
                sorterCount: SorterCount,
                stageCount: StageCount,
                sortableCount: SortableCount,
                proc: ProcScheme2,
                update_params: UpdateParams);

            return(gaRet);
        }
Beispiel #2
0
 public static void UpdateGGView(ProcResult result, UpdateGaVm ugvm)
 {
     //ugvm.GraphLatticeTempVm.Update(result.Data["ThermGrid"]);
     //ugvm.GraphLatticeFlipVm.Update(result.Data["FlipGrid"]);
     //var th = (float)result.Data["TotalHeat"];
     //ugvm.TotalHeat = th;
 }
Beispiel #3
0
        public static UpdateGaVm GaConjOrbitVm()
        {
            var randy = Rando.Standard(Seed);
            var gasd  = randy.ToGaConjOrbitData(
                order: Order,
                sorterCount: SorterCount,
                sortableCount: SortableCount,
                stageCount: StageCount,
                sortableWinRate: SortableWinRate,
                sorterWinRate: SorterWinRate);

            var gaRet = new UpdateGaVm(
                gaSortingData: gasd,
                order: Order,
                width: GridSpan,
                height: GridSpan,
                sorterWinRate: SorterWinRate,
                sortableWinRate: SortableWinRate,
                sorterCount: SorterCount,
                stageCount: StageCount,
                sortableCount: SortableCount,
                proc: ProcScheme5,
                update_params: UpdateParams);

            return(gaRet);
        }