⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asamin.h

📁 模拟退化算法在C环境下的实现
💻 H
字号:
/************************************************************************ MATLAB Gateway Routine for Lester Ingber's Adaptive Simulated* Annealing (ASA)* * Copyright (c) 1999-2001  Shinichi Sakata.  All Rights Reserved.***********************************************************************//* $Id: asamin.h,v 1.24 2002/12/25 20:15:06 ssakata Exp ssakata $ */#define NLHS 5#define NRHS 28#define NRHS_ERR_MSG MKSTR2(Error: NRHS arguments are required.)#define NLHS_ERR_MSG MKSTR2(Error: NLHS variables are required on the righ-hand side.)#define MAXLEN_ASA_OUT_FILE 80#define MAXLEN_COST_FUNC_NAME 80#define MAXLEN_CMD 80#define SHUFFLE 256		/* size of random array */static voidset_real_to_option (const mxArray *value,		     double *var);static voidset_int_to_option (const mxArray *value,		     int *var);static voidset_longint_to_option (const mxArray *value,		       long int *var);static voidset_string_to_option (const mxArray *value,		     char *var);static doublemyrand (LONG_INT * rand_seed);static doublerandflt (LONG_INT *rand_seed);static doubleresettable_randflt (LONG_INT * rand_seed, int reset);static doublecost_function_without_test (double *x,			    double *parameter_lower_bound,			    double *parameter_upper_bound,			    double *cost_tangents,			    double *cost_curvature,			    ALLOC_INT *parameter_dimension,			    int *parameter_int_real,			    int *cost_flag,			    int *exit_code,			    USER_DEFINES * USER_OPTIONS);static doublecost_function_with_test (double *x,			 double *parameter_lower_bound,			 double *parameter_upper_bound,			 double *cost_tangents,			 double *cost_curvature,			 ALLOC_INT *parameter_dimension,			 int *parameter_int_real,			 int *cost_flag,			 int *exit_code,			 USER_DEFINES * USER_OPTIONS);static voiduser_acceptance_test (double current_cost,		      ALLOC_INT * parameter_dimension,		      USER_DEFINES * USER_OPTIONS);static voidreset_options (LONG_INT * rand_seed,	       int * test_in_cost_func,	       int * use_rejected_cost,	       USER_DEFINES * USER_OPTIONS);static voidexit_function(void);

⌨️ 快捷键说明

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