Exemplo n.º 1
0
        public static SPNetWay ToWay(ISPNet Net, SolverInputs Input)
        {
            var Way = ToWay(Net);

            foreach (var j in Enumerable.Range(0, Input.input.Count))
            {
                Way.layers[0].blocks[0].active_inputs[j] = Input.input[j];
            }
            return(Way);
        }
Exemplo n.º 2
0
 public Rule(AvailableSolverTypes SolverType, int MaxActiveBlocksOnLayer = 2, bool UseCustomInput = false, SolverInputs Input = new SolverInputs())
 {
     this.MaxActiveBlocksOnLayer = MaxActiveBlocksOnLayer;
     this.SolverType             = SolverType;
     this.Input          = Input;
     this.UseCustomInput = UseCustomInput;
 }