📄 expertga.cs
字号:
using System;
using SimpleGA;
namespace expert
{
/// <summary>
/// ExpertGA 的摘要说明。
/// </summary>
///
public class ExpertGA
{
public ExpertGA()
{
//
// c=new SimpleGA.CYQGA();
b=new SimpleGA.MYClass();
// TODO: 在此处添加构造函数逻辑
//
}
//private SimpleGA.CYQGA c;
private SimpleGA.MYClass b;
public unsafe int Do()
{
//c.OnClick+=new SimpleGA.CYQGA.__Delegate_OnClick(abc);
int ret= b.Do();
return ret;
}
public float NpCrossover
{
get
{
return b.NpCrossover();
}
set
{
b.NpCrossover(value);
}
}
public float NpMutation
{
get
{
return b.NpMutation();
}
set
{
b.NpMutation(value);
}
}
public int NnGenerations
{
get
{
return b.NnGenerations();
}
set
{
b.NnGenerations(value);
}
}
public float NpReplacement
{
get
{
return b.NpReplacement();
}
set
{
b.NpReplacement(value);
}
}
public unsafe float[] UserData
{
/*
get
{
return *(c.UserData());
}
*/
set
{
fixed(float* p = value) {
value[0]=value.Length;
b.UserData(p);
}
}
}
public int ProgressStep
{
get
{
return b.ProgressStep();
}
set
{
b.ProgressStep(value);
}
}
public int Width
{
get
{
return b.Width();
}
set
{
b.Width(value);
}
}
public int Height
{
get
{
return b.Height();
}
set
{
b.Height(value);
}
}
public int NpopulationSize
{
get
{
return b.NpopulationSize();
}
set
{
b.NpopulationSize(value);
}
}
public int abc()
{
System.Windows.Forms.MessageBox.Show("asdkfjklasdfjkldj");
return 1001;
}
}//end class
}//end namespace
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -