class1.cs
来自「基因表达式编程 基本算法 能够完成术用于公式发现、函数挖掘」· CS 代码 · 共 34 行
CS
34 行
using System;
using GeneticAlgorithm;
namespace GEPAlgorithm
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
Population p = new Population();
p.WriteNextGeneration();
int count = 0;
while (p.Converged() == false)
{
p.NextGeneration();
if (count % 50 == 0)
p.WriteNextGeneration();
count ++;
}
//
// TODO: Add code to start application here
//
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?