📄 knapsack.h
字号:
#ifndef _knapsack_h#define _knapsack_h#include <time.h>#include <strstream.h>#include <fstream.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <iomanip.h>#include <moea/MOEA.h>void initProblem(int items, int sacks);void startLog(const MOEA& moea);void endLog(const MOEA& moea);void knapsackEvaluator(IND&, ObjectiveVector&);extern dVector maxProfitVector; // regardless of capacity constrain.extern fstream os;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -