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

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

?? asa-readme+.txt

?? simulated annealing code ASA
?? TXT
?? 第 1 頁 / 共 5 頁
字號:


                                     - 12 -





     Adaptive Simulated Annealing (ASA)                       Lester Ingber




     (Ignore  any  undefined  references  to  _WinMain.)   Note  that   per
     instructions  given  in  the ASA-Makefile, -mno-cygwin -mrtd should be
     included in CFLAGS.

          If paths are used to access files  in  code,  under  Windows  use
     absolute   paths   with   "\\"   (double   back   slash)  to  separate
     folders/directories,  instead  of  relative  paths  with  "/"  (single
     forward slash) separators as on other Unix platforms.

     8.  Generic ASA Interfaces

          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.

     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.

     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.

     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.

     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  7,
     ASA_LIB  can be used to create a DLL to be called by Windows programs.

     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.


                                     - 13 -





     Adaptive Simulated Annealing (ASA)                       Lester Ingber




     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.

     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.

     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.

     9.  User Options

          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.

          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.

          The DEFINE_OPTIONS are organized  into  two  groups:  Pre-Compile
     Options  and  (Pre-Compile)  Printing Options.  In addition, there are


                                     - 14 -





     Adaptive Simulated Annealing (ASA)                       Lester Ingber




     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.

          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.

     9.1.  Pre-Compile DEFINE_OPTIONS


     9.1.1.  USER_COST_FUNCTION=cost_function

          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.

     9.1.2.  RECUR_USER_COST_FUNCTION=recur_cost_function

          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.

     9.1.3.  OPTIONS_FILE=TRUE

          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.

     9.1.4.  OPTIONS_FILE_DATA=TRUE

          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  real  types.   This should suffice for most applications,
     just  requiring   insertion   of   the   user's   cost_function   into
     asa_usr_cst.c or asa_usr.c.

          If OPTIONS_FILE, OPTIONS_FILE_DATA and QUENCH_COST are TRUE, then
     *User_Quench_Cost_Scale is read in  from  asa_opt.   If  OPTIONS_FILE,
     OPTIONS_FILE_DATA,  QUENCH_COST,  and QUENCH_PARAMETERS are TRUE, then
     *User_Quench_Cost_Scale and User_Quench_Param_Scale [] all are read in
     from asa_opt.






                                     - 15 -





     Adaptive Simulated Annealing (ASA)                       Lester Ingber




     9.1.5.  RECUR_OPTIONS_FILE=FALSE

          When  SELF_OPTIMIZE is TRUE, you can elect to read in many of the
     Program Options for the top-level program  from  asa_opt_recur  (which
     you  will  have  to  create  in  the  style  of  asa_opt),  by setting
     RECUR_OPTIONS_FILE=TRUE.

     9.1.6.  RECUR_OPTIONS_FILE_DATA=FALSE

          When SELF_OPTIMIZE is TRUE, if RECUR_OPTIONS_FILE is set to TRUE,
     then  setting  RECUR_OPTIONS_FILE_DATA  to  TRUE  permits reading most
     initialization data from asa_opt_recur (which you will have to  create
     in  the  style  of  asa_opt),  i.e., number of parameters, minimum and
     maximum ranges, initial values, and integer or real types.

          If RECUR_OPTIONS_FILE,  RECUR_OPTIONS_FILE_DATA  and  QUENCH_COST
     are  TRUE, then *User_Quench_Cost_Scale is read in from asa_opt_recur.
     If  RECUR_OPTIONS_FILE,  RECUR_OPTIONS_FILE_DATA,   QUENCH_COST,   and
     QUENCH_PARAMETERS   are   TRUE,   then   *User_Quench_Cost_Scale   and
     User_Quench_Param_Scale [] all are read in from asa_opt_recur.

     9.1.7.  COST_FILE=TRUE

          If COST_FILE is set to TRUE, then you can use a separate file  to
     define  your  cost function.  When used together with OPTIONS_FILE and
     OPTIONS_FILE_DATA both set to TRUE, most users may be able to just use
     their  own asa_usr_cst.c file for their cost_function () together with
     the asa_opt data file, and not  have  to  work  through  some  of  the
     examples and templates contained in asa_usr.c.

          When  COST_FILE  is  set to TRUE, the file asa_usr_cst.c contains
     cost_function ().  If you wish to change the name of cost_function  ()
     in  asa_usr_cst.c,  then you must also change this name in the call to
     asa () in asa_usr.c (search  under  "asa  (")  and  in  the  prototype
     listing in asa_usr.h (in the HAVE_ANSI set to TRUE or FALSE section as
     appropriate).  You may wish to copy the appropriate parameter list  in
     asa_usr_cst.c just before the ASA_TEST problem to be sure of using the
     proper format expected by asa() in asa.c.

          The  http://www.ingber.com/asa_examples.txt   file   contains   a
     section  Use  of  COST_FILE  on  Shubert Problem which illustrates the
     simple modifications of ASA required to use COST_FILE.

     9.1.8.  ASA_LIB=FALSE

          Setting ASA_LIB=TRUE will facilitate your  running  asa ()  as  a
     library  call  from another program, calling asa_main () in asa_usr.c.
     In the templates  provided,  all  initializations  and  cost  function
     definitions  are set up in the user module.  For example, you may wish
     to have some data read in to a module that  calls  asa_main  (),  then
     parses  out  this  information  to  the  arrays  in  asa_main  ()  and
     initialize_parameters (and possibly recur_initialize_parameters).   In
     conjunction   with   setting  printout  to  stdout  (see  ASA_OUT  and


                                     - 16 -





     Adaptive Simulated Annealing (ASA)                       Lester Ingber




     USER_ASA_OUT), this can be a convenient way of using the same  asa_run
     executable for many runs.

          When  ASA_LIB  is  TRUE,  another  function  becomes available in
     asa_usr.c, asa_seed (), which can be used to change the  initial  seed
     used in runs made by asa_main ().  If this routine is not called, then
     the default initial seed is used.  An example of  using  this  routine
     when  calling asa_main () is given with ASA_TEMPLATE_LIB, using a main

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕av一区二区三区免费看 | 久久精品男人天堂av| 欧美r级在线观看| 国产日本欧美一区二区| 亚洲电影第三页| 精品夜夜嗨av一区二区三区| 成人精品视频网站| 日韩一区二区三区免费看| 国产日韩在线不卡| 日韩精品高清不卡| hitomi一区二区三区精品| 一本到不卡免费一区二区| 欧美不卡一区二区三区四区| 国产精品乱码久久久久久| 五月天激情小说综合| 丰满少妇久久久久久久| 欧美日韩精品是欧美日韩精品| 久久久久国色av免费看影院| 亚洲精品水蜜桃| 免费看欧美美女黄的网站| 91麻豆福利精品推荐| 欧美人动与zoxxxx乱| 亚洲国产一区二区视频| 国产一区二区三区免费| 欧美肥大bbwbbw高潮| 亚洲欧美影音先锋| 国产精品一区一区| 欧美成人官网二区| 日日骚欧美日韩| 在线亚洲人成电影网站色www| 久久一日本道色综合| 亚洲18色成人| 91在线视频在线| 中文字幕第一区二区| 国产精品香蕉一区二区三区| 日韩精品在线一区二区| 日韩精品免费专区| 欧美性感一区二区三区| 亚洲人午夜精品天堂一二香蕉| 国产成人精品亚洲午夜麻豆| 精品国产一区二区三区av性色| 亚洲一区二区偷拍精品| 成人免费黄色在线| 最新国产の精品合集bt伙计| 成人午夜在线免费| 中文字幕不卡的av| av电影一区二区| 成人欧美一区二区三区| 成人av资源站| 亚洲色图色小说| 91激情五月电影| 亚洲r级在线视频| 这里只有精品电影| 久久99精品国产麻豆婷婷洗澡| 色婷婷综合久久久久中文一区二区| 亚洲日韩欧美一区二区在线| 99精品欧美一区二区蜜桃免费 | 国产精品综合久久| 久久久国际精品| 99精品视频中文字幕| 亚洲精品成人a在线观看| 91久久久免费一区二区| 亚洲一区二区综合| 欧美一区二区日韩| 福利一区福利二区| 一区二区三区日韩精品视频| 在线免费不卡电影| 一区二区三区在线看| 欧美日韩二区三区| 国产麻豆精品95视频| 国产精品麻豆视频| 欧美日韩成人综合| 国内精品在线播放| 久久不见久久见中文字幕免费| 日韩你懂的在线播放| 国产成人综合在线播放| 亚洲综合成人在线视频| 日韩一区二区三| 91在线观看美女| 日本在线不卡一区| 国产精品不卡视频| 欧美日韩国产经典色站一区二区三区| 久久国产婷婷国产香蕉| 中文字幕亚洲一区二区va在线| 欧美日韩国产首页| 国产成人免费在线视频| 亚洲丝袜另类动漫二区| 日韩精品一区二区三区四区| 懂色中文一区二区在线播放| 亚洲主播在线播放| 国产欧美一区二区三区网站| 欧美日韩综合一区| 高清在线观看日韩| 日产国产高清一区二区三区| 国产精品久久久久7777按摩| 欧美高清精品3d| 91性感美女视频| 久久精品二区亚洲w码| 亚洲自拍都市欧美小说| 中文字幕va一区二区三区| 91精品中文字幕一区二区三区| 成人激情av网| 精品一区二区三区不卡| 亚洲国产精品综合小说图片区| 国产精品污网站| 欧美调教femdomvk| 国产福利电影一区二区三区| 日韩在线一二三区| 亚洲一区二区黄色| 亚洲欧美激情插 | 一区二区三区高清| 国产欧美精品日韩区二区麻豆天美| 欧美日韩一级片在线观看| 成人av网站在线观看免费| 免费观看一级欧美片| 亚洲第一激情av| 亚洲婷婷在线视频| 国产精品欧美一区二区三区| 2022国产精品视频| 91精品国产91久久久久久最新毛片 | 日韩专区欧美专区| 亚洲综合在线免费观看| 自拍偷在线精品自拍偷无码专区| 日韩欧美国产一区在线观看| 欧美精品一级二级三级| 欧美日韩一区二区三区免费看| 99国产精品99久久久久久| 国产精一区二区三区| 国产高清在线精品| 欧美精品久久天天躁| 99精品在线免费| 成人国产精品免费网站| 福利视频网站一区二区三区| 国产成人在线视频网站| 粉嫩久久99精品久久久久久夜| 国产精品一级片| 成人综合在线视频| 91丨porny丨在线| 国产电影一区在线| 懂色中文一区二区在线播放| 成人午夜电影网站| 91一区在线观看| 欧美色倩网站大全免费| 欧美一区二区网站| 久久免费精品国产久精品久久久久| 精品国产伦一区二区三区观看体验| 精品国产第一区二区三区观看体验| 亚洲精品一区二区精华| 日韩手机在线导航| 国产欧美日韩综合| av午夜一区麻豆| 中文字幕免费不卡| 久久日韩粉嫩一区二区三区| 欧美日韩一区二区在线观看| 日韩午夜激情免费电影| 国产精品美女一区二区在线观看| 亚洲人成网站影音先锋播放| 日韩激情在线观看| 成人免费电影视频| 欧美精品九九99久久| 亚洲国产激情av| 亚洲国产一区在线观看| 国产精品亚洲一区二区三区在线 | 中文字幕在线不卡| 日韩黄色一级片| 91香蕉视频污| 久久综合久色欧美综合狠狠| 亚洲午夜激情网站| thepron国产精品| 久久人人爽人人爽| 人人精品人人爱| 91国产福利在线| 中文字幕国产一区二区| 久久成人av少妇免费| 欧美日韩精品是欧美日韩精品| 中文字幕在线观看一区二区| 久久99精品久久久久久动态图| 欧美视频中文一区二区三区在线观看| 国产欧美日韩麻豆91| 毛片一区二区三区| 欧美人与性动xxxx| 亚洲一区二区不卡免费| 99精品久久久久久| 国产精品久久看| 国产盗摄一区二区| 久久久不卡网国产精品一区| 蜜桃av一区二区| 欧美精品18+| 日韩精品亚洲一区| 26uuu国产日韩综合| 蜜桃精品在线观看| 日韩欧美电影一区| 美国毛片一区二区| 欧美tk丨vk视频| 国产综合色视频| 精品国产一二三| 国产乱对白刺激视频不卡| 2020日本不卡一区二区视频| 久久精品999| 久久久久高清精品|