亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? setup.c

?? matlab遺傳算法程序 GATOOLS 遺傳算法資源 GA
?? C
字號:
/*
SGPC: Simple Genetic Programming in C
(c) 1993 by Walter Alden Tackett and Aviram Carmi
 
 This code and documentation is copyrighted and is not in the public domain.
 All rights reserved. 
 
 - This notice may not be removed or altered.
 
 - You may not try to make money by distributing the package or by using the
   process that the code creates.
 
 - You may not distribute modified versions without clearly documenting your
   changes and notifying the principal author.
 
 - The origin of this software must not be misrepresented, either by
   explicit claim or by omission.  Since few users ever read sources,
   credits must appear in the documentation.
 
 - Altered versions must be plainly marked as such, and must not be
   misrepresented as being the original software.  Since few users ever read
   sources, credits must appear in the documentation.
 
 - The authors are not responsible for the consequences of use of this 
   software, no matter how awful, even if they arise from flaws in it.
 
If you make changes to the code, or have suggestions for changes,
let us know!  (gpc@ipld01.hac.com)
*/

#ifndef lint
static char setup_c_rcsid[]="$Id: setup.c,v 2.12 1993/05/14 21:41:39 gpc-avc Exp gpc-avc $";
#endif

/*
 *
 * $Log: setup.c,v $
 * Revision 2.12  1993/05/14  21:41:39  gpc-avc
 * Changed pdiv to return 1 on div by zero (per Koza)
 *
 * Revision 2.11  1993/04/30  05:01:48  gpc-avc
 * Restructured directories and Makefile
 *
 * Revision 2.9  1993/04/15  09:15:30  gpc-avc
 * deleted code for that was added for regression testing
 *
 *
 */

#include <stdio.h>
#include "gpc.h"
#include "prob.h"


#ifdef ANSI_FUNC

VOID make_function_table(
  int 	numpops,
  pop_struct *pop
  )
#else

VOID make_function_table(numpops,pop)
  int		numpops;
  pop_struct	*pop;
#endif

{

  /* 
    Assigns function pointers, print names, arity, macro-flag, etc, to 
    function table entries for all populations.  In this case all 
    populations share the same function set.
  */

  int	p;

  for (p=0; p<numpops; p++) {
    pop[p].function_table_size = 5;
    pop[p].function_table =
      (function_table_entry *) malloc(pop[p].function_table_size *
				      sizeof(function_table_entry));

    pop[p].function_table[0].arity = 2;
    pop[p].function_table[0].macro = FALSE;
    pop[p].function_table[0].enabled = TRUE;
    pop[p].function_table[0].printname = "+";
    pop[p].function_table[0].code = plus;
    
    pop[p].function_table[1].arity = 2;
    pop[p].function_table[1].macro = FALSE;
    pop[p].function_table[1].enabled = TRUE;
    pop[p].function_table[1].printname = "-";
    pop[p].function_table[1].code = minus;
    
    pop[p].function_table[2].arity = 2;
    pop[p].function_table[2].macro = FALSE;
    pop[p].function_table[2].enabled = TRUE;
    pop[p].function_table[2].printname = "*";
    pop[p].function_table[2].code = xtimes;
    
    pop[p].function_table[3].arity = 2;
    pop[p].function_table[3].macro = FALSE;
    pop[p].function_table[3].enabled = TRUE;
    pop[p].function_table[3].printname = "%";
    pop[p].function_table[3].code = pdiv;
    
    pop[p].function_table[4].arity = 4;
    pop[p].function_table[4].macro = TRUE;
    pop[p].function_table[4].enabled = FALSE;
    pop[p].function_table[4].printname = "IFLTE";
    pop[p].function_table[4].code = iflte;
    
  }

}


#ifdef ANSI_FUNC

VOID make_terminal_table(
  int		numpops,
  pop_struct 	*pop
  )
#else

VOID make_terminal_table(numpops,pop)
  int		numpops;
  pop_struct 	*pop;
#endif
{
  /* 
     IMPORTANT NOTE: terminal_table_size should be equal to the number of
     terminals, but there should be (terminal_table_size+1) entries to allow
     for reading/printing actual constants
   */


  int p;

  /*
    NOTE: all populations are the same for this case
  */

  for (p=0; p<numpops; p++) {

    pop[p].terminal_table_size = 1;

    pop[p].terminal_table =
      (terminal_table_entry *) malloc((pop[p].terminal_table_size+1) *
				      sizeof(terminal_table_entry));
    pop[p].terminal_table[0].val = 0;
    pop[p].terminal_table[0].printname = "X";
    pop[p].terminal_table[0].constant_generator = random_constant;

    /*
    pop[p].terminal_table[1].val = 0;
    pop[p].terminal_table[1].printname = "F01";
    pop[p].terminal_table[1].constant_generator = random_constant;

    pop[p].terminal_table[2].val = 0;
    pop[p].terminal_table[2].printname = "F02";
    pop[p].terminal_table[2].constant_generator = random_constant;
    
    pop[p].terminal_table[3].val = 0;
    pop[p].terminal_table[3].printname = "F03";
    pop[p].terminal_table[3].constant_generator = random_constant;
    
    pop[p].terminal_table[4].val = 0;
    pop[p].terminal_table[4].printname = "F04";
    pop[p].terminal_table[4].constant_generator = random_constant;
    
    pop[p].terminal_table[5].val = 0;
    pop[p].terminal_table[5].printname = "F05";
    pop[p].terminal_table[5].constant_generator = random_constant;
    
    pop[p].terminal_table[6].val = 0;
    pop[p].terminal_table[6].printname = "F06";
    pop[p].terminal_table[6].constant_generator = random_constant;
    */

    pop[p].terminal_table[pop[p].terminal_table_size].val = 0;
    pop[p].terminal_table[pop[p].terminal_table_size].printname = FORMAT;
    pop[p].terminal_table[pop[p].terminal_table_size].constant_generator =
      random_constant;

    pop[p].format = FORMAT;
    pop[p].ckpt_format = CKPT_FORMAT;

  }
}
   
#ifdef ANSI_FUNC

GENERIC plus(
  GENERIC *args
  )
#else

GENERIC plus(args)
  GENERIC *args;
#endif
{
  return args[0]+args[1];
}

#ifdef ANSI_FUNC

GENERIC minus(
  GENERIC *args
  )
#else

GENERIC minus(args)
  GENERIC *args;
#endif
{
  return args[0]-args[1];
}

#ifdef ANSI_FUNC

GENERIC xtimes(
  GENERIC *args
  )
#else

GENERIC xtimes(args)
  GENERIC *args;
#endif
{
  return args[0]*args[1];
}

#ifdef ANSI_FUNC

GENERIC pdiv(
  GENERIC *args
  )
#else

GENERIC pdiv(args)
  GENERIC *args;
#endif
{
  return (args[1] ? args[0]/args[1] : 1);
}


/* this is an example of a macro: arguments are evaluated conditionally */
/* note that args are unevaluated trees, not GENERIC values */

#ifdef ANSI_FUNC

GENERIC iflte(
  tree **args
  )
#else

GENERIC iflte(args)
  tree 	**args;
#endif
{
  return ((eval(args[0]) < eval(args[1])) ? eval(args[2]) : eval(args[3]));
}

#ifdef ANSI_FUNC

GENERIC random_constant(void)
#else

GENERIC random_constant()
#endif
{
  return ((GENERIC)random_float(10.0) - (GENERIC)5.0);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人福利视频网站| 久久国产视频网| 日本黄色一区二区| 日本一区二区综合亚洲| gogogo免费视频观看亚洲一| 中文字幕亚洲精品在线观看| 一本色道久久综合亚洲91| 亚洲自拍偷拍欧美| 欧美三级电影精品| 久久狠狠亚洲综合| 国产人成亚洲第一网站在线播放| av不卡免费电影| 亚洲成人免费在线观看| 欧美一级免费观看| 国产一区二区精品久久| 亚洲欧美区自拍先锋| 欧美精品18+| 欧美日韩一区二区三区不卡| 免费人成在线不卡| 欧美极品另类videosde| 91蝌蚪porny| 日本特黄久久久高潮| 国产视频一区二区在线| 在线影视一区二区三区| 麻豆精品视频在线观看| 中文字幕成人av| 欧美久久久久久久久久| 国产黄色91视频| 亚洲国产视频a| 久久一区二区三区国产精品| 色一情一乱一乱一91av| 男女激情视频一区| 国产精品免费视频一区| 在线不卡欧美精品一区二区三区| 风间由美性色一区二区三区| 亚洲电影一级黄| 国产精品女主播在线观看| 欧美老肥妇做.爰bbww视频| 国产精品资源在线| 亚洲第一成人在线| 国产精品视频九色porn| 欧美一级高清大全免费观看| 成人sese在线| 日本色综合中文字幕| 一区二区在线观看免费视频播放| 日韩欧美国产一区二区三区| 在线免费不卡视频| 国产精品18久久久久久久久久久久| 亚洲第一二三四区| 综合电影一区二区三区 | 亚洲精品一区二区三区在线观看| 99久久亚洲一区二区三区青草 | 欧美日韩精品一二三区| 成人黄页在线观看| 伦理电影国产精品| 亚洲一区在线观看视频| 中文字幕在线观看一区| 久久精品一区四区| 日韩亚洲欧美高清| 67194成人在线观看| 在线亚洲免费视频| 99久久婷婷国产综合精品电影| 精品午夜一区二区三区在线观看| 午夜免费久久看| 亚洲九九爱视频| 1024成人网色www| 国产精品视频免费| 国产日韩精品一区二区三区| 精品久久人人做人人爽| 日韩视频中午一区| 91精品国产入口在线| 欧美日韩国产片| 色悠久久久久综合欧美99| www.欧美日韩国产在线| 国产成人午夜精品影院观看视频| 国产麻豆视频一区二区| 国产毛片精品视频| 欧美日韩久久久| 欧美在线短视频| 欧美午夜寂寞影院| 欧美午夜一区二区| 欧美视频一区二区三区在线观看| 91国偷自产一区二区使用方法| 91欧美激情一区二区三区成人| 91亚洲精品久久久蜜桃网站| 91在线你懂得| 欧美中文字幕一区二区三区| 欧美亚洲愉拍一区二区| 欧美精三区欧美精三区| 8x福利精品第一导航| 欧美成人女星排行榜| 欧美精品一区二区三区在线播放| 久久久久久久综合| 国产精品你懂的| 亚洲精品日产精品乱码不卡| 亚洲午夜三级在线| 秋霞成人午夜伦在线观看| 麻豆国产精品视频| 国产成a人亚洲| 99riav久久精品riav| 欧美性猛交xxxx乱大交退制版| 91超碰这里只有精品国产| 精品欧美黑人一区二区三区| 亚洲国产精品成人综合| 亚洲女女做受ⅹxx高潮| 午夜精品久久久久久久久久久| 蜜臀av一区二区| 国产91丝袜在线18| 日本道色综合久久| 欧美成va人片在线观看| 中文字幕av一区二区三区免费看| 亚洲精品网站在线观看| 日韩电影一二三区| 成人永久免费视频| 欧美三级欧美一级| 久久精品国产亚洲一区二区三区| 国产精品羞羞答答xxdd | 色88888久久久久久影院野外| 欧美日韩和欧美的一区二区| 久久综合九色综合久久久精品综合| 成人欧美一区二区三区视频网页 | 国产福利91精品| 在线观看视频一区| 精品国产1区2区3区| 亚洲精品日韩综合观看成人91| 美女一区二区三区在线观看| eeuss鲁片一区二区三区| 91精品国产91久久久久久最新毛片 | 亚洲一区影音先锋| 国产精品一区二区在线观看网站| 欧美性猛片xxxx免费看久爱| 久久久99久久| 丝瓜av网站精品一区二区| 成人综合日日夜夜| 欧美一区二区三区视频免费| 亚洲日本在线看| 国产精品一级在线| 亚洲精品国产精品乱码不99| 精品一区二区三区在线播放视频| 欧美在线免费观看视频| 国产精品你懂的在线欣赏| 久久99九九99精品| 欧美挠脚心视频网站| 综合久久久久久| 成人动漫在线一区| 久久蜜桃一区二区| 久久草av在线| 日韩一级黄色片| 日韩成人一级片| 欧美色窝79yyyycom| 亚洲人成人一区二区在线观看| 国产福利一区二区| 久久综合久久99| 日韩av网站免费在线| 欧美视频中文一区二区三区在线观看| 中文字幕中文字幕中文字幕亚洲无线| 久久99精品国产| 日韩女优制服丝袜电影| 香蕉久久夜色精品国产使用方法 | 在线免费观看不卡av| 亚洲人成网站在线| 91浏览器在线视频| 亚洲精品视频观看| 色婷婷狠狠综合| **性色生活片久久毛片| av男人天堂一区| 中文字幕成人av| 不卡免费追剧大全电视剧网站| 欧美国产成人在线| zzijzzij亚洲日本少妇熟睡| 国产精选一区二区三区| 久久亚洲一级片| 国产高清不卡一区| 国产精品久久久久婷婷| 成人av片在线观看| 亚洲欧美日韩系列| 欧美亚洲高清一区二区三区不卡| 亚洲综合在线第一页| 欧美老年两性高潮| 麻豆精品久久精品色综合| 精品国产自在久精品国产| 国产在线一区二区综合免费视频| 久久网站热最新地址| 国产99久久久国产精品免费看| 国产欧美日产一区| 色综合久久88色综合天天6 | 国产伦精品一区二区三区免费| 久久久久一区二区三区四区| 粉嫩av亚洲一区二区图片| 中文字幕一区不卡| 欧美日本在线播放| 激情综合一区二区三区| 国产精品女主播av| 欧美无砖砖区免费| 久久成人免费电影| 中文字幕一区二区在线观看| 欧美区视频在线观看| 国产一区在线观看视频| 亚洲人成精品久久久久| 91精品在线免费观看|