ecga.hpp

来自「这是遗传算法的源代码」· HPP 代码 · 共 39 行

HPP
39
字号
// -*- c++ -*-////  File:         ecga.hpp////  Description:  C++ interface for the ecga class.////  Author:       Fernando Lobo////  Date:         June/1999////  Extended to deal with chi-ary problems by Luis de la Ossa//  GCC 3.4 and 4 series compliance by Kumara Sastry ////  Date:         March/2006#ifndef _ecga_hpp#define _ecga_hpp#include <iostream>#include <fstream>#include "population.hpp"class ecga{  private:    void report( std::ofstream &outfile, population *pop, int gen );    bool done( population *pop, int gen );  public:    ecga() {}    ~ecga() {}    void run( std::ofstream &outfile );};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?