Skip to content

Commit

Permalink
Cleaned up unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tansey committed Nov 13, 2012
1 parent a1221d8 commit 5ede052
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions BatchExperiment/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace BatchExperiment
class Program
{
static int numRuns;
static SensorDictionary sensorDict;
string _name;
SocialExperiment _experiment;
NeatEvolutionAlgorithm<NeatGenome> _ea;
Expand Down Expand Up @@ -242,7 +241,6 @@ void RunExperiment(string XMLFile, string filename)
XmlDocument xmlConfig = new XmlDocument();
xmlConfig.Load(XMLFile);
_experiment.Initialize("SimpleEvolution", xmlConfig.DocumentElement);
_experiment.World.SensorLookup = sensorDict;

// Create the evolution algorithm and attach the update event.
_ea = _experiment.CreateEvolutionAlgorithm();
Expand Down
3 changes: 0 additions & 3 deletions CondorApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ namespace CondorApp
{
class Program
{
static int numRuns;
static SensorDictionary sensorDict;
string _name;
SocialExperiment _experiment;
NeatEvolutionAlgorithm<NeatGenome> _ea;
Expand Down Expand Up @@ -63,7 +61,6 @@ void RunExperiment(string XMLFile, string filename)
XmlDocument xmlConfig = new XmlDocument();
xmlConfig.Load(XMLFile);
_experiment.Initialize("EgalitarianSocialLearning", xmlConfig.DocumentElement);
_experiment.World.SensorLookup = sensorDict;
_experiment.TrialId = _trialNum;

// Create the evolution algorithm and attach the update event.
Expand Down
1 change: 0 additions & 1 deletion social_learning/ForagingEvaluator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public class ForagingEvaluator<TGenome> : IGenomeListEvaluator<TGenome>
private IList<NeatGenome> _genomeList;
private int _generations;
private FastRandom _random;
private int _minReward;
private List<int> _rewards;
private double _rewardThreshold;
private int[] _agentGroups;
Expand Down
2 changes: 0 additions & 2 deletions social_learning/SocialExperiment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ public void Initialize(string name, XmlElement xmlConfig)
_maxMemorySize = XmlUtils.GetValueAsInt(memSection, "MaxSize");
}
_teaching = (TeachingParadigm)Enum.Parse(typeof(TeachingParadigm), XmlUtils.TryGetValueAsString(xmlConfig, "TeachingParadigm"));
if(_teaching == null)
throw new Exception("Failed to read file");
}
var species = new List<PlantSpecies>();

Expand Down

0 comments on commit 5ede052

Please sign in to comment.