00001 #include <string> 00002 #include "MTAnisoGAConfParser.hpp" 00003 #include "MTAnisoGAConfLexer.hpp" 00004 00005 class MTAnisoGAConf{ 00006 public: 00007 void GetData(std::ifstream &instream); 00008 void GetData(std::string filename); 00009 void WriteData(std::ofstream &outstream); 00010 void WriteData(std::string filename); 00011 bool verbose; 00012 int mtfitexponent; 00013 int popsize; 00014 double inittemp; 00015 double coolingratio; 00016 int generations; 00017 double mutationprob; 00018 double crossoverprob; 00019 int threads; 00020 double starttime; 00021 double endtime; 00022 double tensorerror; 00023 double reserror; 00024 double phaseerror; 00025 std::string gatype; 00026 std::string outputbase; 00027 std::string mode; 00028 std::string mtfit; 00029 std::string mtinputdata; 00030 std::string ptensordata; 00031 int annealinggeneration; 00032 bool elitist; 00033 std::vector< double > thickbase; 00034 std::vector< double > thickstep; 00035 std::vector< int > thicksizes; 00036 std::vector< double > resbase; 00037 std::vector< double > resstep; 00038 std::vector< int > ressizes; 00039 std::vector< double > anisobase; 00040 std::vector< double > anisostep; 00041 std::vector< int > anisosizes; 00042 std::vector< double > strikebase; 00043 std::vector< double > strikestep; 00044 std::vector< int > strikesizes; 00045 std::vector< double > weights; 00046 double conddiffweight; 00047 double anisotropyweight; 00048 double strikediffweight; 00049 MTAnisoGAConf(std::string filename){GetData(filename);} 00050 MTAnisoGAConf(){} 00051 };
1.5.8