cloudflight
2023-12-02 c0f9915265878e56e91ee97f7f8d925db1e12626
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
using AForge;
//using NPOI.SS.Formula.Functions;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
 
namespace CommonBase
{
    public class CalcExt
    {
        /// <summary>
        /// 种群数量
        /// </summary>
        public int populationNum { get; set; } = 50;
 
 
        /// <summary>
        /// 搜索深度
        /// </summary>
        public int iterationNum { get; set; } = 20; 
        /// <summary>
        /// 种群数量
        /// </summary>
        public int populationNum_full { get; set; } = 50;
 
 
        /// <summary>
        /// 搜索深度
        /// </summary>
        public int iterationNum_full { get; set; } = 20;
 
        /// <summary>
        /// 搜索深度_最小
        /// </summary>
        public int iterationNum_Min { get; set; } = 1;
        /// <summary>
        /// 线程数
        /// </summary>
        public int MaxThread { get; set; } = 4;
 
        /// <summary>
        /// 多时刻
        /// </summary>
        public int MultiTimes { get; set; } = 0;
 
        /// <summary>
        /// 是否只显示最优解
        /// </summary>
        public bool ShowOnlyBest { get; set; } = true;
 
        /// <summary>
        /// 是否优选
        /// </summary>
        public bool 是否优选方案 { get; set; } = true;
 
        /// <summary>
        /// 是否优选
        /// </summary>
        public bool 启用数据库存储 { get; set; } = false;
        /// <summary>
        /// 是否优选
        /// </summary>
        public bool 启用内存存储 { get; set; } = false;
 
        public bool 是否枚举 { get; set; } = false;
 
        /// <summary>
        /// 开启水力计算
        /// </summary>
        public bool isWaterModelCalc { get; set; } = true;
 
 
        /// <summary>
        /// 开启水质计算
        /// </summary>
        public bool isQualityCalc { get; set; } = false;
 
        /// <summary>
        /// 显示详细日志
        /// </summary>
        public bool 显示详细日志 { get; set; } = false;
 
 
        /// <summary>
        /// 输出运行情况
        /// </summary>
        public bool 输出运行情况 { get; set; } = false;
 
 
        /// <summary>
        /// 输出运行情况
        /// </summary>
        public bool 自动发送指令 { get; set; } = false;
 
 
        /// <summary>
        /// 输出运行情况
        /// </summary>
        public string OrderUrl { get; set; } = "";
        /// <summary>
        /// 输出运行情况
        /// </summary>
        public string AlarmUrl { get; set; } = "";
        /// <summary>
        /// 输出运行情况
        /// </summary>
        public bool 方案择优 { get; set; } = false;
 
        /// <summary>
        /// 是否水量分配
        /// </summary>
        public bool waterdistribute { get; set; } = false;
 
 
        /// <summary>
        /// 0当量分配;1随机分配;
        /// </summary>
        public int waterdistributeMode { get; set; } = 0;
 
 
        /// <summary>
        /// 分配总水量
        /// </summary>
        public float Distribution_TotalDemand { get; set; } = 25;
 
        /// <summary>
        /// 分配总水量是否从小到大计算
        /// </summary>
        public bool isDistributionStepCalc { get; set; } = true;
 
 
        /// <summary>
        /// 分配总水量计算步长
        /// </summary>
        public float DistributionCalcStep { get; set; } = 1;
 
        /// <summary>
        /// 每个节点最多分配水量:平均值 * Distribution_OverAvgFactor
        /// </summary>
        public double Distribution_OverAvgFactor { get; set; } = 2;
 
 
        
 
        /// <summary>
        /// 当量表
        /// </summary>
        public float[] Distribution_UnitDemands { get; set; } =new float[] { 0.36f,0.54f,0.72f };
 
 
        private string[] ChildSolutions = new string[0];
 
        /// <summary>
        /// 子方案集
        /// </summary>
        public Solution[] ChildSolutionArr = new Solution[0];
 
        ///// <summary>
        ///// 子方案集线程数量
        ///// </summary>
        //public int[] ChildSolutionsThread = new int[0];
 
        public int TimeStep;
 
        public int TimeDuration;
 
        public int PeriodCount;
 
        //public string SolutionSaveName;
 
 
    }
 
    
 
}