public bool FromValue(string[] value) { if ((value == null) || (value.Length < this.NumAgents)) { return(false); } var valueSplit = value.Split(this.NumAgents); for (var i = 0; i < this.NumAgents; i++) { var arrayParameter = new ArrayParameter(); if (!arrayParameter.FromValue(valueSplit[i])) { return(false); } this._parameters[i] = arrayParameter; } return(true); }
public override bool FromValue(string[] value) { if ((value == null) || (value.Length < this.NumAgents)) { return(false); } var valueSplit = value.Split(this.NumAgents); for (var i = 0; i < this.NumAgents; i++) { var arrayParameter = new ArrayParameter(); if (!arrayParameter.FromValue(valueSplit[i])) { return(false); } this._chromosomes[i] = new ArrayChromosome(this.Population, arrayParameter); } return(true); }