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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? asa-readme.ms

?? simulated annealing code ASA
?? MS
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
The new
.if t $T sub {0 ~ roman cost}$
.if n T_0cost
is taken to be the minimum of the current initial cost temperature and
the maximum of the absolute values of the best and last cost functions
and their difference.  The new
.if t $k sub {roman cost}$
.if n k_cost
is calculated taking
.if t $T sub { roman cost}$
.if n T_cost
as the maximum of the current value and the absolute value of the
difference between the last and best saved minima of the cost function,
constrained not to exceed the current initial cost temperature.  This
procedure essentially resets the scale of the annealing of the cost
temperature within the scale of the current best or last saved
minimum.
.PP
This default algorithm for reannealing the cost temperature, taking
advantage of the ASA importance sampling that relates most specifically
to the parameter temperatures, while often is quite efficient for some
systems, may lead to problems in dwelling too long in local minima for
other systems.  In such case, the user may also experiment with
alternative algorithms effected using the Reanneal_Cost OPTIONS,
discussed below.  For example, ASA provides an alternative calculation
for the cost temperature, when Reanneal_Cost < -1 or > 1, that
periodically calculates the initial and current cost temperatures or
just the initial cost temperature, resp., as a deviation over a sample
of cost functions.
.PP
These reannealing algorithms can be changed adaptively by the user as
described below in the sections USER_REANNEAL_COST and
USER_REANNEAL_PARAMETERS.
.NH 2
Efficiency Versus Necessity
.XS
\*(SN 		Efficiency Versus Necessity
.XE
.PP
ASA is not necessarily an \*Qefficient\*U code.  For example, if you
know that your cost function to be optimized is something close to a
parabola, then a simple gradient Newton search method most likely would
be faster than ASA.  ASA is believed to be faster and more robust than
other simulated annealing techniques for \f2most\f1 complex problems
with multiple local optima; again, be careful to note that some
problems are best treated by other algorithms.  If you do not know much
about the structure of your system, and especially if it has complex
constraints, and you need to search for a global optimum, then this ASA
code is heartily recommended to you.
.PP
In the context of efficiency and necessity, the user should be alert to
recognize that any sampling or optimization program generally should be
considered as complementary, not as a substitute, to gaining knowledge
of a particular system.  Unlike relatively \*Qcanned\*U codes that
exist for (quasi\-)linear systems, nonlinear systems typically are
non\-typical.  Often some homework must be done to understand the
system, and tuning often is required of numerical algorithms such as
ASA.  For example, while principal component analyses (PCA) often
suffices to generate good (quasi\-)orthogonal or (quasi\-)independent
sets of parameters, this is not true for general nonlinear systems.
While such innovations as reannealing take good advantage of ASA which
offers independent distributions for each parameter, this generally may
not be a good substitute for a user\-defined front\-end, e.g., before the
call to asa\ () or even embedded within the cost_function (), to interpret
and define relevant parameters.
.PP
The ASA\-NOTES file contains the sections @@Number of Generated States
Required and @@Judging Importance\-Sampling, recommending use of log\-log
plots to extrapolate the number of generated states required to attain
a global minimum, possibly as a function of selected OPTIONS.
.NH 1
Outline of Use
.XS
\*(SN 	Outline of Use
.XE
.PP
Set up the ASA interface: Your program should be divided into two basic
modules.  (1) The user calling procedure, containing the cost function
to be minimized (or its negative if you require a global maximum), is
contained in asa_usr.c, asa_usr.h and asa_usr_cst.c.  (2) The ASA optimization
procedure, is contained in asa.c and asa.h.  The file asa_usr_asa.h
contains definitions and macros common to both asa.h and asa_usr.h.
Furthermore, there are some options to explore/read below.  It is
assumed there will be no confusion over the standard uses of the term
\*Qparameter\*U in different contexts, e.g., as an element passed by a
subroutine or as a physical coefficient in a cost function.
.PP
ASA has been run successfully on many machines under many compilers.
To check out your own system, you can run `make` (or the equivalent set
of commands in the ASA\-Makefile), and compare your asa_out and asa_usr_out
files to the asa_test_asa and asa_test_usr files, respectively, provided with
this code.  No attempt was made to optimize any compiler, so that the
test runs do not really signify any testing of compilers or
architectures; rather they are meant to be used as a guide to determine
what you might expect on your own machine.
.PP
The major sections below describe the compilation procedures, the
Program Options available to you to control the code, the use of
templates to set up your user module and interface to the asa module,
and how to submit bug reports.
.PP
If you already have your own cost function defined, you can insert it
into asa_usr_cst.c.  If you wish to insert more OPTIONS, as a quick guide
to get started, you can search through asa_usr.c and the ASA\-Makefile for all
occurrences of \*QMY_TEMPLATE_\*U to insert the necessary definitions
required to run ASA.  If you use both OPTIONS_FILE and
OPTIONS_FILE_DATA set to TRUE, then usually most such information can
be placed in the asa_opt file, and then only the cost_function () must
be inserted.  The place to insert the cost_function () is marked by
\*QMY_TEMPLATE_cost.\*U
.NH 1
ASA\-Makefile/Compilation Procedures
.XS
\*(SN 	ASA\-Makefile/Compilation Procedures
.nr Mc \*(SN
.XE
.PP
The ASA\-Makefile is intended to be a template for your own Makefile.
For quick use, just copy this file to Makefile, which will be recognized
by any standard make tool.
.PP
The PostScript\(rg ASA\-README.ps and ASCII ASA\-README.txt and
ASA\-README+.txt files were generated using `make doc`.  The ASA\-Makefile
describes some options for formatting these files differently.  Use `make`
or `make all` to compile and run asa_run, the executable prepared for
the test function.  Examine the ASA\-Makefile to determine the \*Qclean\*U
options available.
.PP
Since complex problems by their nature are often quite unique, it is
unlikely that the default parameters are just right for your problem.
However, experience has shown that if you \f2a priori\f1 do not have
any reason to determine your own parameters, then you might do just
fine using these defaults, and these are recommended as a first\-order
guess.  These defaults can be changed simply by adding to the
DEFINE_OPTIONS line in the ASA\-Makefile, by passing options on your command
line, and by changing structure elements in the user or asa module as
described below.  Depending on how you integrate ASA into your own user
modules, you may wish to modify this ASA\-Makefile or at least use some of
these options in your own compilation procedures.
.PP
Note that the ASA\-Makefile is just a convenience, not a necessity, to use
ASA.  E.g., on systems which do not support this utility, you may
simply compile the files following the guidelines in the ASA\-Makefile,
taking care to pass the correct DEFINE_OPTIONS to your compilation
commands at your shell prompt.  Still another way, albeit not as
convenient, is to make the desired changes in the asa_usr_asa.h, and asa.h
or asa_usr.h files as required.
.PP
Since the ASA\-Makefile contains comments giving short descriptions of some
options, it should be considered as an extension of this documentation
file.  For convenience, most of this information is repeated below.
However, to see how they can be used in compilations, please read
through the ASA\-Makefile.
.PP
For example, to run the ASA test problem using the gcc compiler, you
could just type at your \*Q%\*U prompt:
.nf
.in +8n
% cp ASA-Makefile Makefile
% gcc -g -DASA_TEST=TRUE -o asa_run asa_usr.c asa_usr_cst.c asa.c -lm
% asa_run
.in 0
.fi
.PP
If you have defined your own cost function in asa_usr_cst.c or within the
\*QMY_TEMPLATE_\*U guides in asa_usr.c, then ASA_TEST should be set to
FALSE (the default if ASA_TEST is not defined in your compilation lines
or in the ASA\-Makefile).  The code for ASA_TEST=TRUE is given just above
these guides as a template to use for your own cost function.
.PP
The easiest way for many users to quickly use ASA likely is to invoke the
COST_FILE, OPTIONS_FILE, and OPTIONS_FILE_DATA OPTIONS (the default),
using the files asa_usr_cst.c and asa_opt as templates.  This is further
described below and illustrated in the http://www.ingber.com/asa_examples.txt
file in the section Use of COST_FILE on Shubert Problem.
.NH 2
DLL ASA\-Makefile
.XS
\*(SN 		DLL ASA\-Makefile
.XE
.nr Md \*(SN
.PP
Under Cygwin (cygwin.com), set ASA_LIB to TRUE and INCL_STDOUT to FALSE
(OPTIONS described below), with the command
.in +8n
% make asadll
.in 0
to produce a DLL to call asa_main() as a DLL function under windows.
(Ignore any undefined references to _WinMain.)  Note that per instructions
given in the ASA\-Makefile, -mno-cygwin -mrtd should be included in CFLAGS.
.PP
If paths are used to access files in code, under Windows use absolute
paths with \*Q\\\\\*U (double back slash) to separate folders/directories,
instead of relative paths with \*Q/\*U (single forward slash) separators
as on other Unix platforms.
.NH 1
Generic ASA Interfaces
.XS
\*(SN 	Generic ASA Interfaces
.XE
.PP
The sections above describe how to quickly adapt ASA for use in many
problems.  However, complex projects often require sophisticated use of
multiple languages to handle data and multiple algorithms.  ASA has many
OPTIONS that enable users to interface ASA with such complex projects.
.LP
ASA should compile under C++ as well as under C compilers.  For example,
I regularly test this by running projects under both gcc and g++.
This can be very useful when ASA is called from other C++ programs,
e.g., when using ASA_LIB set to TRUE.
.LP
I have led many projects that required ASA to interface with
Java, Maple, Matlab, MySQL, etc.  The approach briefly described below
can be applied to any language that permits a simple interface to C code.
This definitely requires some expert experience in C, so you may have to
find a local C guru, since I cannot help you with your specific project.
.LP
Some specific interfaces have been prepared by other people, and I have
included some of them in the asa_contrib.txt file.  The tradeoff for
their simple use is that these approaches are limited to using just a
few ASA OPTIONS as they typically have trimmed down the ASA code.
.LP
The generic approach is to utilize at least the OPTIONS ASA_LIB and
OPTIONAL_DATA_PTR, setting them to TRUE.  ASA_LIB permits the entire
ASA code to be called as a simple function.  Its sole parameter can be
a struct defined by OPTIONAL_PTR_TYPE, e.g., OPTIONAL_PTR_TYPE PROJECT,
defined in asa_usr_asa.h.  A small include file common to asa_usr_asa.h
and to the larger complex project, e.g., project.h, is used to define
the constituents of the the PROJECT struct.  As described above in the
DLL ASA\-Makefile sub-Section of Section \n(Md, ASA_LIB can be used to create
a DLL to be called by Windows programs.
.LP
A small C function, e.g., project.c, is to be used for the interface
between ASA and the other language.  Similarly, another small function
also may be used to interface the project to handle the interface, e.g.,
project.m, project.java, project.mpl, etc.  Inversely, the interface
may (also) be between the cost function, e.g., in asa_usr_cst.c or asa_usr.c,
and the project.  Then the application below is used to pass information
between the cost function and the other language.
.LP
The other language passes information and data to project.c required by
ASA, where it is packed into the struct defined by OPTIONAL_PTR_TYPE.
Multiple or recursive calls to ASA can be handled by including a flag
in this struct, e.g., to turn on different cost functions.  Also added
to this struct are placeholders for the output of ASA required by the
project.  This struct is passed to the ASA code by calling asa_main ()
defined in asa_usr.c with a parameter PROJECT *Project.  In asa_main (),
in the section defining properties of OPTIONAL_DATA_PTR, the pointer to
Project struct is set to the pointer path to Asa_Data_Ptr.  Asa_Data_Ptr
is now passed throughout the entire ASA code via the OPTIONS pointer,
project parameters can be adaptively changed, etc.
.LP
After the call to asa\ () in asa_usr.c, its output can be packed into the
project struct, before memory is freed.  The pointer Asa_Data_Ptr should
be set to NULL instead of freed; see the comment in asa_usr.c at the place
Asa_Data_Ptr is freed in the default code.
.LP
It is wise to create #define PROJECT and #endif pairs wherever changes
to any ASA code are made, define PROJECT to TRUE in asa_usr_asa.h, so that
it will be easy to modify updated ASA code, etc.  Probably several such
changes will have to be made in asa_usr.c.  Control of OPTIONS likely will
best be handled in asa_usr_asa.h than in the ASA\-Makefile.
.NH 1
User Options
.XS
\*(SN 	User Options
.XE
.PP
Program Options, i.e., the USER_DEFINES typedef on the OPTIONS,
USER_OPTIONS, RECUR_USER_OPTIONS, etc., are turned on during the
running of asa\ ().  The DEFINE_OPTIONS are compiled in by the use of
arguments to the compilation or by setting them in the asa_usr_asa.h
file.  An example of the former is Reanneal_Parameters, and an example
of the latter is ASA_SAMPLE.  The basic code is kept small for most
users by using the Pre\-Compile DEFINE_OPTIONS to pull in additional
DEFINE_OPTIONS only if required.  The Program Options are intended to
be used adaptively and/or to pull in additional code for cases where
repeated or recursive use, e.g., when using SELF_OPTIMIZE, might be
facilitated by having control of some Program Options at separate
levels.
.PP
Note that even when the DEFINE_OPTIONS or Program Options are used to
pull in new code, separate levels of control also can be achieved,
albeit usually at the price of incurring some overhead in setting
values at some levels of recursion or repeated calls.  For example, in
cases where new arrays or functions come into play, enough parameters
are passed between the asa and user modules to calculate the defaults
as well as different values adaptively.  In some often used cases,
separate DEFINE_OPTIONS are given, e.g., both OPTIONS_FILE and
RECUR_OPTIONS_FILE exist.  I have tried to strike some reasonable
balance between these goals and constraints.
.PP
The DEFINE_OPTIONS are organized into two groups: Pre\-Compile Options
and (Pre\-Compile) Printing Options.  In addition, there are some
alternatives to explore under Compiler Choices and Document
Formatting.  Below are the DEFINE_OPTIONS with their defaults.  The
Program Options are further discussed in other sections in this
document.
.PP
Note that the Pre\-Compile DEFINE_OPTIONS are all in capital letters,
and the adaptive Program Options (under structure USER_OPTIONS in the
user module and under structure OPTIONS in the asa module) are in
capital and lower-case letters.  In this file, often just the term
OPTIONS may refer to the set of all options when the context is
clear.
.NH 2
Pre-Compile DEFINE_OPTIONS
.XS
\*(SN 		Pre-Compile DEFINE_OPTIONS
.XE
.LP
.NH 3
USER_COST_FUNCTION=cost_function
.XS
\*(SN 			USER_COST_FUNCTION=cost_function
.XE
.PP
The default name of the cost function is cost_function.  This can be
changed in asa_usr_asa.h (or the ASA\-Makefile) by defining USER_COST_FUNCTION.
This of course requires compiling in the new cost function and its
prototype.
.NH 3
RECUR_USER_COST_FUNCTION=recur_cost_function
.XS
\*(SN 			RECUR_USER_COST_FUNCTION=recur_cost_function
.XE
.PP
When SELF_OPTIMIZE is TRUE, the default name of the recur cost function is
recur_cost_function.  This can be changed in asa_usr_asa.h (or the ASA\-Makefile)
by defining RECUR_USER_COST_FUNCTION.  This of course requires compiling
in the new cost function and its prototype.
.NH 3
OPTIONS_FILE=TRUE
.XS
\*(SN 			OPTIONS_FILE=TRUE
.XE
.PP
You can elect to read in many of the Program Options from asa_opt
by setting OPTIONS_FILE=TRUE.  OPTIONS_FILE=TRUE can be set in the
ASA\-Makefile in compilation commands or in asa_usr_asa.h.
.NH 3
OPTIONS_FILE_DATA=TRUE
.XS
\*(SN 			OPTIONS_FILE_DATA=TRUE
.XE
.PP
If OPTIONS_FILE is set to TRUE, then setting OPTIONS_FILE_DATA to TRUE
permits reading most initialization data from asa_opt, i.e., number of
parameters, minimum and maximum ranges, initial values, and integer or

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费在线一区观看| 国产成人亚洲综合a∨婷婷图片| 国产精品乱码一区二三区小蝌蚪| 91精品国产综合久久香蕉麻豆| 91麻豆成人久久精品二区三区| 成人sese在线| 91免费在线播放| 91精品欧美久久久久久动漫| 欧美亚洲动漫精品| 日韩精品一区二区三区视频| 欧美videossexotv100| 国产精品国产精品国产专区不蜜 | 一区二区三区四区激情| 成人激情动漫在线观看| 国产精品一区专区| av一区二区不卡| 欧洲一区二区三区在线| 欧美一区二区三区思思人| 日韩精品一区二区在线观看| 亚洲欧洲av一区二区三区久久| 亚洲精品国久久99热| 韩国v欧美v日本v亚洲v| 欧美性猛片aaaaaaa做受| 欧美一级理论性理论a| 国产亚洲成年网址在线观看| 亚洲黄色av一区| 国产在线看一区| 精品精品欲导航| 亚洲视频一区二区在线| 国产乱理伦片在线观看夜一区| 国产成人av电影在线| 欧美一区二区大片| 亚洲综合免费观看高清完整版在线| 极品瑜伽女神91| 欧美一区二区视频在线观看2022 | 国产乱码字幕精品高清av| 在线影视一区二区三区| 国产精品欧美精品| 99精品桃花视频在线观看| 欧美不卡在线视频| 国产精品一区二区在线观看网站| 欧美大胆一级视频| 国产自产高清不卡| 精品少妇一区二区三区日产乱码 | 中文字幕一区三区| 99久久精品国产导航| 亚洲国产毛片aaaaa无费看| 欧洲生活片亚洲生活在线观看| 性做久久久久久免费观看欧美| 欧美日韩成人一区二区| 日本不卡一二三| 中文字幕一区二区日韩精品绯色| 一本大道久久精品懂色aⅴ | 日韩三级中文字幕| 福利一区福利二区| 天天综合天天综合色| 久久亚洲二区三区| 欧美精品欧美精品系列| 国产精品66部| 看片网站欧美日韩| 亚洲电影视频在线| 亚洲午夜国产一区99re久久| 欧美一级高清大全免费观看| 91视频精品在这里| 国产91精品在线观看| 热久久久久久久| 亚洲愉拍自拍另类高清精品| 国产精品国产三级国产aⅴ原创 | 亚洲国产高清不卡| 国产片一区二区| 国产视频视频一区| 国产欧美日本一区二区三区| 精品福利在线导航| 国产精品九色蝌蚪自拍| 在线日韩国产精品| 欧美乱熟臀69xxxxxx| 欧美一卡二卡三卡四卡| 6080亚洲精品一区二区| 欧美在线一二三| 91精品国产综合久久久久久久久久 | 欧美色图激情小说| 欧美综合色免费| 欧美一级黄色录像| 久久精品一级爱片| 一区二区三区四区激情| 婷婷丁香久久五月婷婷| 国产麻豆日韩欧美久久| 国产精品一区专区| 欧美色男人天堂| 精品精品国产高清a毛片牛牛| 国产亚洲一区二区三区| 亚洲欧美韩国综合色| 麻豆成人久久精品二区三区小说| 国产在线精品一区二区夜色| 91一区二区在线| 日韩欧美中文字幕公布| 亚洲六月丁香色婷婷综合久久| 蜜桃视频免费观看一区| 在线亚洲免费视频| 国产精品国产三级国产| 国内精品在线播放| 欧美一区二区三区日韩视频| 国产精品色哟哟网站| 国产精品99久久久久久有的能看 | 懂色一区二区三区免费观看| 日韩亚洲欧美成人一区| 一区二区三区在线视频观看| 麻豆精品在线视频| 欧美日韩国产bt| 亚洲成人一区二区在线观看| 91在线精品一区二区三区| 欧美激情综合网| www.亚洲精品| 中文字幕亚洲区| 99视频在线观看一区三区| 久久综合色之久久综合| 国产一区二区三区黄视频| 精品国产乱码久久| www.成人在线| 亚洲午夜精品网| 久久综合色8888| 成人动漫精品一区二区| 国产精品视频观看| 欧美色精品在线视频| 亚洲国产aⅴ天堂久久| 日韩美女主播在线视频一区二区三区| 免费视频一区二区| 欧美激情自拍偷拍| 欧美伊人精品成人久久综合97| 亚洲国产综合91精品麻豆| 欧美高清hd18日本| 成人a区在线观看| 蜜桃精品视频在线| 亚洲一卡二卡三卡四卡无卡久久| 欧美日韩在线播放一区| 丁香婷婷深情五月亚洲| 韩国在线一区二区| 亚洲国产精品尤物yw在线观看| 中文成人综合网| 日韩一级视频免费观看在线| 91在线观看地址| 麻豆国产精品一区二区三区 | 在线亚洲高清视频| 成人自拍视频在线观看| 亚洲制服欧美中文字幕中文字幕| 国产福利一区二区三区在线视频| 亚洲欧美区自拍先锋| 久久在线观看免费| 欧美精品一区二区精品网| 欧美一区二区免费观在线| 欧美揉bbbbb揉bbbbb| 欧美日韩精品一区视频| 欧美日韩一区高清| 日韩一级黄色大片| 成人午夜激情视频| 亚洲人成电影网站色mp4| 日韩精品一区二区三区三区免费| 欧美视频中文字幕| 91麻豆免费视频| 欧美丝袜丝nylons| 日韩亚洲欧美综合| 国产无人区一区二区三区| 国产欧美一区二区精品忘忧草| 亚洲女人****多毛耸耸8| 日本一道高清亚洲日美韩| 国产高清在线观看免费不卡| www.久久精品| 5858s免费视频成人| 久久久精品tv| 五月天国产精品| 不卡视频一二三四| 欧美日韩国产免费一区二区| 久久久精品欧美丰满| 亚洲一区二三区| 成人免费毛片片v| 欧美美女视频在线观看| 亚洲精品免费在线| 国产在线精品视频| 欧美v国产在线一区二区三区| 综合久久一区二区三区| 国产精品2024| 日韩女同互慰一区二区| 亚洲成人动漫一区| 色综合天天综合色综合av| 久久久亚洲精华液精华液精华液| 一区二区三区中文免费| 成人av午夜电影| 91精品国产乱| 综合欧美一区二区三区| 一本一道久久a久久精品综合蜜臀| 久久久久久97三级| 粉嫩aⅴ一区二区三区四区 | 亚洲精品写真福利| 国产精品综合在线视频| 色婷婷精品久久二区二区蜜臀av| 久久先锋资源网| 国产91丝袜在线播放| 国产精品免费视频观看| av不卡一区二区三区| 亚洲免费av高清|