[Quantproject-developers] QuantProject/b4_Business/a2_Strategies/InSample GeneticChooser.cs, 1.3,
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2008-02-25 23:09:08
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/InSample In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18908/a2_Strategies/InSample Modified Files: GeneticChooser.cs Log Message: Deleted an obsolete field; the abstract method setGenomeManager has been changed (it was void; now it has to return a IGenomeManager object; its name is now getGenomeManager) Index: GeneticChooser.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/InSample/GeneticChooser.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** GeneticChooser.cs 22 Feb 2008 20:59:19 -0000 1.3 --- GeneticChooser.cs 25 Feb 2008 23:09:00 -0000 1.4 *************** *** 47,59 **** public event NewProgressEventHandler NewProgress; public event NewMessageEventHandler NewMessage; ! protected int numberOfPortfolioPositions; protected int numberOfBestTestingPositionsToBeReturned; - protected bool choosePositionsWithAtLeastOneDifferentTicker; //the genetic chooser will return the requested number //of genome (which meaning is a TestingPositions) that ! //have a different hash code //the method that returns the hash code for genome ! //is virtual protected TestingPositions[] bestTestingPositions; protected Benchmark benchmark; --- 47,58 ---- public event NewProgressEventHandler NewProgress; public event NewMessageEventHandler NewMessage; ! protected int numberOfPortfolioPositions; protected int numberOfBestTestingPositionsToBeReturned; //the genetic chooser will return the requested number //of genome (which meaning is a TestingPositions) that ! //have a different hash code ( //the method that returns the hash code for genome ! //is virtual) protected TestingPositions[] bestTestingPositions; protected Benchmark benchmark; *************** *** 207,213 **** } ! protected abstract void setGenomeManager(EligibleTickers eligibleTickers , ReturnsManager returnsManager); ! //sets the member genomeManager in inherited classes private TestingPositions[] getBestTestingPositionsInSample( --- 206,212 ---- } ! protected abstract IGenomeManager getGenomeManager(EligibleTickers eligibleTickers , ReturnsManager returnsManager); ! //returns a specific IGenomeManager object in inherited classes private TestingPositions[] getBestTestingPositionsInSample( *************** *** 216,220 **** ) { ! this.setGenomeManager(eligibleTickers, returnsManager); this.geneticOptimizer = new GeneticOptimizer( this.crossoverRate , --- 215,219 ---- ) { ! this.genomeManager = this.getGenomeManager(eligibleTickers, returnsManager); this.geneticOptimizer = new GeneticOptimizer( this.crossoverRate , |