⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 definition.h

📁 基于遗传算法的机器人路径规划问题.选择一条很好的路径
💻 H
字号:
//#include "stdio.h"
#include "iostream.h"
#include "stdlib.h"
#include "time.h"
#include "math.h"

#define POPSIZE2 500
#define MINIMIZATION2 2
#define MAXIMIZATION2 1

#define Cmax2 100
#define Cmin2 0
#define CHROMLENGTH2 100
int FunctionMode2=MINIMIZATION2;
int PopSize2=120;
int MaxGeneration2=10;
double Pc2=0.5;
double Pm2=0.001;


struct individual2
  { char chrom[CHROMLENGTH2+1];
    double value;
    double fitness;
    int flag;
  };
int generation2;
int best_index2;
int worst_index2;
struct individual2 bestindividual2;
struct individual2 worstindividual2;
struct individual2 currentbest2;
struct individual2 population2[POPSIZE2];

⌨️ 快捷键说明

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