os.h
来自「求解梯级水库群优化调度」· C头文件 代码 · 共 24 行
H
24 行
#ifndef _OS_H_
#define _OS_H_
#pragma warning(disable:4786)
#include <math.h>
#include <deque>
#include <cmath>
#include <time.h>
#include <iomanip>
#ifndef _PLANT_H_
#include "Plant.h"
#endif
#ifndef _TABULIST_H_
#include "TabuList.h"
#endif
#define STEP_MAX 1.2
#define STEP_MIN 0.8
#define P_MAX 0.8
#define P_MIN 0.2
#define ERROR_LEVEL 0.05
void GetDataOfString(vector<double > &vec,string str,char compart);
double getrandom(double l,double h);
int getrandom(int l,int h);
int between(double l,double h,double x);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?