遗传算法的源代码下载,遗传算法的源代码下载

源代码在线查看: done.c

软件大小: 3748 K
上传用户: dounob
关键词: 算法 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				/*
				 *  GENESIS  Copyright (c) 1986, 1990 by John J. Grefenstette
				 *  This program may be freely copied for educational
				 *  and research purposes.  All other rights reserved.
				 *
				 *  file:	done.c
				 *
				 *  purpose:	test experiment-termination conditions.
				 *
				 *  modified:	7 feb 86
				 */
				
				#include "extern.h"
				
				int Done()
				{
					if (Interflag)  /* user will indicate when to quit */
						return(0);
				
					return ((Trials >= Totaltrials)  || ( Lost >= Length)
					    || (Spin >= Maxspin));
				}
				
				/* end of file */
							

相关资源