cloudflight
2024-07-27 49eb2a09634e439090d4a2b13ec7d6f911d3deaf
Hydraulic/Hydro.CommonBase/Helper/CalcExt.cs
@@ -1,4 +1,5 @@
using AForge;
using System;
//using NPOI.SS.Formula.Functions;
using System.Collections.Generic;
using System.ComponentModel;
@@ -6,6 +7,7 @@
namespace Hydro.CommonBase
{
    [Serializable]
    public class CalcExt
    {
        /// <summary>
@@ -38,10 +40,7 @@
        /// </summary>
        public int MaxThread { get; set; } = 4;
        /// <summary>
        /// 多时刻
        /// </summary>
        public int MultiTimes { get; set; } = 0;
        /// <summary>
        /// 是否只显示最优解
@@ -70,6 +69,7 @@
        public bool 是否新版本读取 { get; set; } = true;
        public bool 是否枚举 { get; set; } = false;
        public bool BreakSearchWhenOver { get; set; } = false;
        /// <summary>
        /// 开启水力计算
@@ -118,7 +118,7 @@
        /// </summary>
        public bool waterdistribute { get; set; } = false;
        public bool 本地项目编译 { get; set; } = false;
        /// <summary>
        /// 0当量分配;1随机分配;
        /// </summary>
@@ -167,15 +167,35 @@
        ///// </summary>
        //public int[] ChildSolutionsThread = new int[0];
        /// <summary>
        /// 模型的计算时刻,-1则计算该模型的所有时刻,n则表示计算该模型的第n个时刻(n>=0);
        /// 最终会生成影响TimeStep和TimeDuration的值,从而决定PeriodCount的值,实际生效的为PeriodCount
        /// </summary>
        public int MultiTimes { get; set; } = 0;
        public int EPAPeriodCount { get; set; }
        /// <summary>
        /// 程序计算的步长,单位是分钟
        /// </summary>
        public int TimeStep;
        /// <summary>
        /// 程序计算的总时长,单位是分钟
        /// </summary>
        public int TimeDuration;
        /// <summary>
        /// 程序的阶段数,即程序计算的总时长/程序计算的步长
        /// </summary>
        public int PeriodCount;
        //public string SolutionSaveName;
        /// <summary>
        /// 开始的时间,主要用来显示,单位是分钟
        /// </summary>
        public int TimeStart { get; set; }
        public string[] Branchs { get; set; }
    }
    //public class Solution