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

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

?? parse.c

?? 蟻群算法的程序
?? C
?? 第 1 頁 / 共 3 頁
字號:
/* This file has been generated with opag 0.6.4.  */#include <stdio.h>#include <string.h>#include <assert.h>#include <limits.h>#include <stdlib.h>#include "InOut.h"#include "utilities.h"#include "ants.h"#include "ls.h"#ifndef STR_ERR_UNKNOWN_LONG_OPT# define STR_ERR_UNKNOWN_LONG_OPT   "%s: unrecognized option `--%s'\n"#endif#ifndef STR_ERR_LONG_OPT_AMBIGUOUS# define STR_ERR_LONG_OPT_AMBIGUOUS "%s: option `--%s' is ambiguous\n"#endif#ifndef STR_ERR_MISSING_ARG_LONG# define STR_ERR_MISSING_ARG_LONG   "%s: option `--%s' requires an argument\n"#endif#ifndef STR_ERR_UNEXPEC_ARG_LONG# define STR_ERR_UNEXPEC_ARG_LONG   "%s: option `--%s' doesn't allow an argument\n"#endif#ifndef STR_ERR_UNKNOWN_SHORT_OPT# define STR_ERR_UNKNOWN_SHORT_OPT  "%s: unrecognized option `-%c'\n"#endif#ifndef STR_ERR_MISSING_ARG_SHORT# define STR_ERR_MISSING_ARG_SHORT  "%s: option `-%c' requires an argument\n"#endif#define STR_HELP_TRIES \"  -r, --tries          # number of independent trials\n"#define STR_HELP_TOURS \"  -s, --tours          # number of steps in each trial\n"#define STR_HELP_TIME \"  -t, --time           # maximum time for each trial\n"#define STR_HELP_TSPLIBFILE \"  -i, --tsplibfile     f inputfile (TSPLIB format necessary)\n"#define STR_HELP_OPTIMUM \"  -o, --optimum        # stop if tour better or equal optimum is found\n"#define STR_HELP_ANTS \"  -m, --ants           # number of ants\n"#define STR_HELP_NNANTS \"  -g, --nnants         # nearest neighbours in tour construction\n"#define STR_HELP_ALPHA \"  -a, --alpha          # alpha (influence of pheromone trails)\n"#define STR_HELP_BETA \"  -b, --beta           # beta (influence of heuristic information)\n"#define STR_HELP_RHO \"  -e, --rho            # rho: pheromone trail evaporation\n"#define STR_HELP_Q0 \"  -q, --q0             # q_0: prob. of best choice in tour construction\n"#define STR_HELP_ELITISTANTS \"  -c, --elitistants    # number of elitist ants\n"#define STR_HELP_RASRANKS \"  -f, --rasranks       # number of ranks in rank-based Ant System\n"#define STR_HELP_NNLS \"  -k, --nnls           # No. of nearest neighbors for local search\n"#define STR_HELP_LOCALSEARCH \"  -l, --localsearch    0: no local search   1: 2-opt   2: 2.5-opt   3: 3-opt\n"#define STR_HELP_DLB \"  -d, --dlb            1 use don't look bits in local search\n"#define STR_HELP_AS \"  -u, --as              apply basic Ant System\n"#define STR_HELP_EAS \"  -v, --eas             apply elitist Ant System\n"#define STR_HELP_RAS \"  -w, --ras             apply rank-based version of Ant System\n"#define STR_HELP_MMAS \"  -x, --mmas            apply MAX-MIN ant system\n"#define STR_HELP_BWAS \"  -y, --bwas            apply best-worst ant system\n"#define STR_HELP_ACS \"  -z, --acs             apply ant colony system\n"#define STR_HELP_HELP \"  -h, --help            display this help text and exit\n"#define STR_HELP \	STR_HELP_TRIES \	STR_HELP_TOURS \	STR_HELP_TIME \	STR_HELP_TSPLIBFILE \	STR_HELP_OPTIMUM \	STR_HELP_ANTS \	STR_HELP_NNANTS \	STR_HELP_ALPHA \	STR_HELP_BETA \	STR_HELP_RHO \	STR_HELP_Q0 \	STR_HELP_ELITISTANTS \	STR_HELP_RASRANKS \	STR_HELP_NNLS \	STR_HELP_LOCALSEARCH \	STR_HELP_DLB \	STR_HELP_AS \	STR_HELP_EAS \	STR_HELP_RAS \	STR_HELP_MMAS \	STR_HELP_BWAS \	STR_HELP_ACS \STR_HELP_HELPstruct options {		/* Set to 1 if option --tries (-r) has been specified.  */	unsigned int opt_tries : 1;		/* Set to 1 if option --tours (-s) has been specified.  */	unsigned int opt_tours : 1;		/* Set to 1 if option --time (-t) has been specified.  */	unsigned int opt_time : 1;		/* Set to 1 if option --tsplibfile (-i) has been specified.  */	unsigned int opt_tsplibfile : 1;		/* Set to 1 if option --optimum (-o) has been specified.  */	unsigned int opt_optimum : 1;		/* Set to 1 if option --ants (-m) has been specified.  */	unsigned int opt_ants : 1;		/* Set to 1 if option --nnants (-g) has been specified.  */	unsigned int opt_nnants : 1;		/* Set to 1 if option --alpha (-a) has been specified.  */	unsigned int opt_alpha : 1;		/* Set to 1 if option --beta (-b) has been specified.  */	unsigned int opt_beta : 1;		/* Set to 1 if option --rho (-e) has been specified.  */	unsigned int opt_rho : 1;		/* Set to 1 if option --q0 (-q) has been specified.  */	unsigned int opt_q0 : 1;		/* Set to 1 if option --elitistants (-c) has been specified.  */	unsigned int opt_elitistants : 1;		/* Set to 1 if option --rasranks (-f) has been specified.  */	unsigned int opt_rasranks : 1;		/* Set to 1 if option --nnls (-k) has been specified.  */	unsigned int opt_nnls : 1;		/* Set to 1 if option --localsearch (-l) has been specified.  */	unsigned int opt_localsearch : 1;		/* Set to 1 if option --dlb (-d) has been specified.  */	unsigned int opt_dlb : 1;		/* Set to 1 if option --as (-u) has been specified.  */	unsigned int opt_as : 1;		/* Set to 1 if option --eas (-v) has been specified.  */	unsigned int opt_eas : 1;		/* Set to 1 if option --ras (-w) has been specified.  */	unsigned int opt_ras : 1;		/* Set to 1 if option --mmas (-x) has been specified.  */	unsigned int opt_mmas : 1;		/* Set to 1 if option --bwas (-y) has been specified.  */	unsigned int opt_bwas : 1;		/* Set to 1 if option --acs (-z) has been specified.  */	unsigned int opt_acs : 1;		/* Set to 1 if option --help (-h) has been specified.  */	unsigned int opt_help : 1;		/* Argument to option --tries (-r).  */	const char *arg_tries;		/* Argument to option --tours (-s).  */	const char *arg_tours;		/* Argument to option --time (-t).  */	const char *arg_time;		/* Argument to option --tsplibfile (-i).  */	const char *arg_tsplibfile;		/* Argument to option --optimum (-o).  */	const char *arg_optimum;		/* Argument to option --ants (-m).  */	const char *arg_ants;		/* Argument to option --nnants (-g).  */	const char *arg_nnants;		/* Argument to option --alpha (-a).  */	const char *arg_alpha;		/* Argument to option --beta (-b).  */	const char *arg_beta;		/* Argument to option --rho (-e).  */	const char *arg_rho;		/* Argument to option --q0 (-q).  */	const char *arg_q0;		/* Argument to option --elitistants (-c).  */	const char *arg_elitistants;		/* Argument to option --rasranks (-f).  */	const char *arg_rasranks;		/* Argument to option --nnls (-k).  */	const char *arg_nnls;		/* Argument to option --localsearch (-l).  */	const char *arg_localsearch;		/* Argument to option --dlb (-d).  */	const char *arg_dlb;	};/* Parse command line options.  Return index of first non-option argument,or -1 if an error is encountered.  */int parse_options (struct options *const options, const char *const program_name, const int argc, char **const argv){	static const char *const optstr__tries = "tries";	static const char *const optstr__tours = "tours";	static const char *const optstr__time = "time";	static const char *const optstr__tsplibfile = "tsplibfile";	static const char *const optstr__optimum = "optimum";	static const char *const optstr__ants = "ants";	static const char *const optstr__nnants = "nnants";	static const char *const optstr__alpha = "alpha";	static const char *const optstr__beta = "beta";	static const char *const optstr__rho = "rho";	static const char *const optstr__q0 = "q0";	static const char *const optstr__elitistants = "elitistants";	static const char *const optstr__rasranks = "rasranks";	static const char *const optstr__nnls = "nnls";	static const char *const optstr__localsearch = "localsearch";	static const char *const optstr__dlb = "dlb";	static const char *const optstr__as = "as";	static const char *const optstr__eas = "eas";	static const char *const optstr__ras = "ras";	static const char *const optstr__mmas = "mmas";	static const char *const optstr__bwas = "bwas";	static const char *const optstr__acs = "acs";	static const char *const optstr__help = "help";	int i = 0;	options->opt_tries = 0;	options->opt_tours = 0;	options->opt_time = 0;	options->opt_tsplibfile = 0;	options->opt_optimum = 0;	options->opt_ants = 0;	options->opt_nnants = 0;	options->opt_alpha = 0;	options->opt_beta = 0;	options->opt_rho = 0;	options->opt_q0 = 0;	options->opt_elitistants = 0;	options->opt_rasranks = 0;	options->opt_nnls = 0;	options->opt_localsearch = 0;	options->opt_dlb = 0;	options->opt_as = 0;	options->opt_eas = 0;	options->opt_ras = 0;	options->opt_mmas = 0;	options->opt_bwas = 0;	options->opt_acs = 0;	options->opt_help = 0;	options->arg_tries = 0;	options->arg_tours = 0;	options->arg_time = 0;	options->arg_tsplibfile = 0;	options->arg_optimum = 0;	options->arg_ants = 0;	options->arg_nnants = 0;	options->arg_alpha = 0;	options->arg_beta = 0;	options->arg_rho = 0;	options->arg_q0 = 0;	options->arg_elitistants = 0;	options->arg_rasranks = 0;	options->arg_nnls = 0;	options->arg_localsearch = 0;	options->arg_dlb = 0;	while (++i < argc)	{		const char *option = argv [i];		if (*option != '-')			return i;		else if (*++option == '\0')			return i;		else if (*option == '-')		{			const char *argument;			size_t option_len;			++option;			if ((argument = strchr (option, '=')) == option)				goto error_unknown_long_opt;			else if (argument == 0)				option_len = strlen (option);			else				option_len = argument++ - option;			switch (*option)			{			case '\0':				return i + 1;			case 'a':				if (strncmp (option + 1, optstr__acs + 1, option_len - 1) == 0)				{					if (option_len <= 1)						goto error_long_opt_ambiguous;					if (argument != 0)					{						option = optstr__acs;						goto error_unexpec_arg_long;					}					options->opt_acs = 1;					break;				}				else if (strncmp (option + 1, optstr__alpha + 1, option_len - 1) == 0)				{					if (option_len <= 1)						goto error_long_opt_ambiguous;					if (argument != 0)						options->arg_alpha = argument;					else if (++i < argc)						options->arg_alpha = argv [i];					else					{						option = optstr__alpha;						goto error_missing_arg_long;					}					options->opt_alpha = 1;					break;				}				else if (strncmp (option + 1, optstr__ants + 1, option_len - 1) == 0)				{					if (option_len <= 1)						goto error_long_opt_ambiguous;					if (argument != 0)						options->arg_ants = argument;					else if (++i < argc)						options->arg_ants = argv [i];					else					{						option = optstr__ants;						goto error_missing_arg_long;					}					options->opt_ants = 1;					break;				}				else if (strncmp (option + 1, optstr__as + 1, option_len - 1) == 0)				{					if (option_len <= 1)						goto error_long_opt_ambiguous;					if (argument != 0)					{						option = optstr__as;						goto error_unexpec_arg_long;					}					options->opt_as = 1;					break;				}				goto error_unknown_long_opt;			case 'b':				if (strncmp (option + 1, optstr__beta + 1, option_len - 1) == 0)				{					if (option_len <= 1)						goto error_long_opt_ambiguous;					if (argument != 0)						options->arg_beta = argument;					else if (++i < argc)						options->arg_beta = argv [i];					else					{						option = optstr__beta;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
综合色天天鬼久久鬼色| 国产一区二区免费看| 精油按摩中文字幕久久| 91视频在线看| 久久久一区二区三区捆绑**| 亚洲国产三级在线| 国产99久久精品| 91精品国产入口| 亚洲精品国产a| 不卡一区在线观看| 精品国产网站在线观看| 爽好多水快深点欧美视频| 99久免费精品视频在线观看 | 卡一卡二国产精品 | 最新国产成人在线观看| 九九九精品视频| 91精品国产免费| 亚洲午夜激情网页| 色婷婷久久一区二区三区麻豆| 久久亚洲一区二区三区明星换脸| 亚洲成人av电影在线| 色香色香欲天天天影视综合网| 久久精品一区二区| 精品一区二区三区在线播放视频 | 成人天堂资源www在线| 日韩一区和二区| 日本伊人色综合网| 欧美日韩在线观看一区二区| 亚洲欧美另类在线| 日本韩国视频一区二区| 亚洲日本中文字幕区| av高清不卡在线| 国产精品久久久一区麻豆最新章节| 国产精品一区二区三区网站| 欧美xxxxx牲另类人与| 裸体在线国模精品偷拍| 精品国产乱码久久久久久夜甘婷婷 | 国产欧美一区二区精品婷婷| 国产乱子轮精品视频| 久久久一区二区三区捆绑**| 精品一区二区三区在线观看国产| 精品国产免费一区二区三区香蕉| 黄色小说综合网站| 欧美激情一区不卡| 成人污视频在线观看| 国产精品美女www爽爽爽| www.av精品| 亚洲欧美成人一区二区三区| 色婷婷久久久久swag精品| 亚洲成人av一区| 日韩一区二区精品葵司在线| 另类欧美日韩国产在线| 久久新电视剧免费观看| av电影一区二区| 亚洲国产一区二区在线播放| 日韩三区在线观看| 成人午夜免费视频| 亚洲国产综合在线| 精品国产一区二区三区四区四| 成人综合婷婷国产精品久久 | 美女在线视频一区| 国产精品私房写真福利视频| 欧美熟乱第一页| 国精产品一区一区三区mba视频| 国产精品亲子伦对白| 在线影视一区二区三区| 麻豆久久久久久久| 最新久久zyz资源站| 欧美一区二区三区免费大片| 国产91在线观看丝袜| 亚洲线精品一区二区三区八戒| 欧美一级淫片007| av亚洲精华国产精华| 日本亚洲最大的色成网站www| 国产亚洲污的网站| 欧美色综合网站| 国产成人精品午夜视频免费| 亚洲国产中文字幕在线视频综合| 久久久综合视频| 欧美日韩欧美一区二区| 国产91清纯白嫩初高中在线观看| 亚洲h在线观看| 中文字幕亚洲成人| 精品国产乱码久久久久久老虎 | 亚洲精品乱码久久久久| 日韩三级在线观看| 欧美写真视频网站| 成人免费观看男女羞羞视频| 日本成人在线视频网站| 亚洲人xxxx| 国产精品私人影院| 精品久久久久久无| 欧美日韩亚洲国产综合| 91亚洲精品乱码久久久久久蜜桃| 久久机这里只有精品| 亚洲图片自拍偷拍| 亚洲精品国久久99热| 欧美国产一区在线| 精品国一区二区三区| 欧美久久久久免费| 日本精品免费观看高清观看| 成人爱爱电影网址| 国产一区二区视频在线播放| 麻豆成人91精品二区三区| 性感美女久久精品| 亚洲一区av在线| 一区二区三区在线看| 国产精品久久久久久久久免费桃花| 久久久www成人免费毛片麻豆| 欧美videossexotv100| 欧美日韩精品系列| 欧美日韩专区在线| 欧美日韩国产影片| 欧美视频在线一区二区三区| 欧美亚洲国产一区在线观看网站| 欧美在线影院一区二区| 一本色道久久综合亚洲aⅴ蜜桃| 99国产精品久久久久| 99精品1区2区| 欧美性色黄大片| 欧美日韩国产a| 欧美日韩1234| 日韩精品一区在线| 精品福利视频一区二区三区| 国产亚洲一区二区在线观看| 国产日韩欧美高清| 成人欧美一区二区三区小说| 亚洲久本草在线中文字幕| 亚洲啪啪综合av一区二区三区| 亚洲天堂网中文字| 亚洲国产精品久久人人爱蜜臀 | 欧美一级在线视频| 久久久久久久综合狠狠综合| 久久精品欧美一区二区三区不卡| 国产精品你懂的在线欣赏| 亚洲欧美在线高清| 亚洲成人av电影在线| 精品一区二区三区免费| 成人午夜激情影院| 欧美亚洲综合网| 精品国产一区二区亚洲人成毛片 | 天堂久久一区二区三区| 精品午夜久久福利影院| 成人黄色a**站在线观看| 欧美在线观看18| 日韩一级视频免费观看在线| 中文字幕高清不卡| 亚洲国产cao| 国产精品亚洲一区二区三区妖精| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 国产日韩欧美精品在线| 亚洲一区二区免费视频| 国内精品视频666| 91久久国产综合久久| 日韩一级免费观看| 亚洲丝袜自拍清纯另类| 免费国产亚洲视频| 99精品国产99久久久久久白柏| 日韩一区二区电影网| 日韩理论片网站| 国产一区二区精品久久99| 91久久线看在观草草青青 | 国产精品影视网| 欧美伦理电影网| 国产精品亲子乱子伦xxxx裸| 视频一区中文字幕| 99久久综合国产精品| 2021国产精品久久精品| 亚洲成av人片在线观看| 成人av影院在线| 久久亚洲二区三区| 天堂av在线一区| 色综合久久六月婷婷中文字幕| 久久综合色8888| 亚洲综合成人在线视频| 国产91精品一区二区| 精品免费视频一区二区| 天天av天天翘天天综合网色鬼国产| 成人av在线播放网站| 久久女同互慰一区二区三区| 青青草97国产精品免费观看无弹窗版| 91猫先生在线| 国产精品毛片久久久久久久| 激情亚洲综合在线| 欧美一区二区三区四区在线观看| 亚洲欧美区自拍先锋| 成人黄色电影在线| 久久这里都是精品| 精品在线播放免费| 精品女同一区二区| 精一区二区三区| 久久奇米777| 国产综合久久久久久鬼色| 日韩一区二区三区观看| 五月婷婷另类国产| 欧美高清精品3d| 日韩成人av影视| 日韩精品一区国产麻豆| 免费av网站大全久久| 欧美成人三级在线|