適用度を算出するコスト関数(評価関数)のデリゲート
Namespace: fvalgcliAssembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)
Syntax
C# |
---|
public delegate double F_GA_FUNC( f_ga_type gene_type, int gene_num, IntPtr chrom_top ) |
Visual Basic |
---|
Public Delegate Function F_GA_FUNC ( gene_type As f_ga_type, gene_num As Integer, chrom_top As IntPtr ) As Double |
Parameters
- gene_type
- Type: fvalgcli..::..f_ga_type
遺伝子の型
- gene_num
- Type: System..::..Int32
1染色体当たりの遺伝子の個数(1以上)
- chrom_top
- Type: System..::..IntPtr
適応度を計算する染色体の先頭アドレス
Return Value
Type: Doubleコスト関数の出力値は 0.0〜1.0 の範囲に入っていなければなりません。