gaevaldata.h
来自「单目标遗传算法优化的经典例子c++源码」· C头文件 代码 · 共 28 行
H
28 行
// $Header: /usr/people/mbwall/src/galib/ga/RCS/GAEvalData.h,v 1.2 1998/10/05 21:30:09 mbwall Exp $
/* ----------------------------------------------------------------------------
eval.h
mbwall 3dec95
Copyright (c) 1995 Massachusetts Institute of Technology
all rights reserved
DESCRIPTION:
This is the basic interface for the object that contains evaluation data. It
can be used with genomes and/or populations in combination with their
respective evaluation methods.
---------------------------------------------------------------------------- */
#ifndef _ga_eval_h_
#define _ga_eval_h_
class GAEvalData {
public:
GAEvalData() {}
GAEvalData(const GAEvalData&) {}
virtual ~GAEvalData() {}
GAEvalData& operator=(const GAEvalData& orig)
{ if(&orig != this) copy(orig); return *this; }
virtual GAEvalData* clone() const =0;
virtual void copy(const GAEvalData&) =0;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?