newops.h

来自「遗传规划工具」· C头文件 代码 · 共 61 行

H
61
字号
/*======================================================================+| PGPC: Parallel Genetic Programming in C                               || (c) 1995 Genetic Algorithm Technology Corp. all rights reserved       ||   written by David Andre                                              |+======================================================================*//*======================================================================+| FILE: newops.h                                                        || DESCRIPTION: Function prototypes for newops.c.                        ||                                                                       |       | REVISIONS:                                                            || Jan 24, 1995:  Works as of today, no known bugs.                      |+======================================================================*/#define LEXUS 1#define PINTO 2void SafeCopySubtree(                                       /*funcdef*/                        Branch   *from_br,                  /*funcdef*/                        int             from_start,         /*funcdef*/                        int             from_end,           /*funcdef*/                        Branch   *to_br,                    /*funcdef*/                        int             to_start);          /*funcdef*/void CopyFunctionVector(                                    /*funcdef*/                        Branch   *br1,                      /*funcdef*/                        Branch   *br2);                     /*funcdef*/void MoveBranch(       Branch   *src,                       /*funcdef*/                        Branch   *dest);                    /*funcdef*//* ANSI prototypes for new operations.  Slight violation of spec   in the sense that these return int rather than void: a return   value less than 0 indicates failure.  */int DoBranchCreation(Individual * child, Individual * parent);          /*funcdef*/int DoBranchDuplication(Individual * child, Individual * parent);       /*funcdef*/int DoBranchDeletion(Individual * child, Individual * parent);          /*funcdef*/int DoArgumentDuplication(Individual * child, Individual * parent);     /*funcdef*/int DoArgumentDeletion(Individual * child, Individual * parent);        /*funcdef*/int DoIterationPerformingBranchCreation(Individual * child,Individual * parent);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?