65 lines
1.1 KiB
C++
65 lines
1.1 KiB
C++
#pragma once
|
|
#include<iostream>
|
|
#include<math.h>
|
|
#include<string>
|
|
#include<list>
|
|
#include<vector>
|
|
#include<map>
|
|
#include <algorithm>
|
|
|
|
using namespace std;
|
|
|
|
// 能力参数类
|
|
|
|
|
|
struct Save_str;
|
|
typedef struct MAPing
|
|
{
|
|
|
|
MAPing(string n = "") :
|
|
value1(n)
|
|
{}
|
|
|
|
string value1;//外框f() 大写;
|
|
list<Save_str> outmaping;
|
|
list<list<Save_str>> inmaping;
|
|
};
|
|
struct Save_str
|
|
{
|
|
string name;
|
|
MAPing* address;
|
|
};
|
|
struct Detail_in_out
|
|
{
|
|
string model;
|
|
string type;
|
|
vector<string> T_in;
|
|
vector<string> R_out;
|
|
map<string , vector<string>> R_C_out;
|
|
|
|
};
|
|
|
|
|
|
struct ALT_Classs
|
|
{
|
|
string name;
|
|
int num;
|
|
int num_model;
|
|
double DetectAbility; // 探测能力值
|
|
double AttackAbility; // 攻击能力值
|
|
double SurAbility; // 生存能力值
|
|
double InterfereAbility; // 干扰能力值
|
|
ALT_Classs() : name(""), num(0), num_model(0), DetectAbility(0), AttackAbility(0), SurAbility(0), InterfereAbility(0) {}
|
|
};
|
|
|
|
struct Individual1 {
|
|
int kj500, j16d, j20, wg2, gj11, h6k, j11, yg9, wuzhen10, kj2000;
|
|
double fitness;
|
|
|
|
Individual1() : kj500(0), j16d(0), j20(0), wg2(0), gj11(0), h6k(0), j11(0), yg9(0), wuzhen10(0), kj2000(0), fitness(0.0) {}
|
|
};
|
|
|
|
|
|
|
|
|