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

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

?? asa-readme.txt

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





     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
     () at the end of the asa_usr.c file.

          As described in the DLL ASA-Makefile sub-Section  of  Section  7,
     the  ASA-Makefile  and ASA_LIB can be used to create a DLL for Windows

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费人成网站在线观看欧美高清| 国产乱一区二区| 国产一区二区女| 制服丝袜激情欧洲亚洲| 中文字幕一区二区三区av| 奇米在线7777在线精品| 91猫先生在线| 国产欧美精品日韩区二区麻豆天美| 天堂资源在线中文精品| 亚洲免费av高清| 老司机精品视频导航| 99精品欧美一区二区三区综合在线| 在线播放日韩导航| 亚洲黄色免费电影| www.日本不卡| 欧美激情在线观看视频免费| 久久国产福利国产秒拍| 欧美丰满美乳xxx高潮www| 亚洲一区二区三区中文字幕 | 日韩一二三四区| 亚洲黄色免费网站| 一本大道综合伊人精品热热 | 欧美一级欧美三级| 亚洲3atv精品一区二区三区| 91小视频免费看| 国产欧美精品一区| 一区二区三区日韩欧美精品| 不卡一卡二卡三乱码免费网站| 欧美成人免费网站| 捆绑紧缚一区二区三区视频| 26uuu国产在线精品一区二区| 日韩精品成人一区二区在线| 欧美日韩国产综合一区二区三区| 亚洲猫色日本管| 欧美日韩中文国产| 亚洲一区成人在线| 欧美日韩国产高清一区| 性做久久久久久久免费看| 欧美日韩大陆在线| 免费人成在线不卡| 久久久久久久网| 国产成人午夜99999| 国产精品久久久久久久久动漫| 成人av网站在线观看免费| 中文字幕一区在线观看视频| 97久久精品人人做人人爽| 亚洲天堂精品视频| 欧美性猛交xxxxxxxx| 毛片av中文字幕一区二区| 久久综合久久综合久久| jiyouzz国产精品久久| 亚洲图片激情小说| 欧美日韩精品电影| 久久99精品一区二区三区三区| 久久蜜桃av一区二区天堂| 99久久伊人网影院| 亚洲18影院在线观看| 欧美精品一区二区高清在线观看| 国产精品18久久久久久久网站| 亚洲免费观看高清完整版在线观看熊| 色综合久久99| 韩国欧美国产1区| 1024成人网| 欧美一区二区三区男人的天堂| 狠狠色综合播放一区二区| 亚洲色图视频网站| 日韩视频免费观看高清在线视频| 成人性视频免费网站| 亚洲成av人片一区二区| 久久精品日韩一区二区三区| 欧美中文字幕亚洲一区二区va在线| 日韩电影一区二区三区| 亚洲欧洲一区二区在线播放| 日韩一区二区视频在线观看| 色综合视频一区二区三区高清| 日韩中文字幕一区二区三区| 国产精品污网站| 91麻豆精品国产自产在线| 丁香婷婷综合激情五月色| 天堂资源在线中文精品| 中文字幕一区二区三区精华液| 日韩精品中文字幕一区| 日本韩国欧美国产| av中文字幕不卡| 激情综合色丁香一区二区| 亚洲国产中文字幕在线视频综合| 久久网站最新地址| 欧美一区二区女人| 在线中文字幕不卡| 菠萝蜜视频在线观看一区| 久久er精品视频| 亚洲国产成人av好男人在线观看| 国产精品女主播在线观看| 精品国内二区三区| 宅男噜噜噜66一区二区66| 在线观看日韩国产| 91视视频在线直接观看在线看网页在线看| 蜜桃久久av一区| 丝袜美腿亚洲一区| 亚洲精品美腿丝袜| 亚洲欧美日本在线| 1024成人网| 亚洲欧美一区二区三区久本道91| 国产日韩欧美制服另类| 亚洲精品在线电影| 欧美电影免费观看高清完整版在线 | 亚洲国产精品自拍| 亚洲天堂2014| 国产精品久久毛片a| 久久久久久麻豆| 国产欧美日韩中文久久| 久久久三级国产网站| 精品国产免费久久| 精品久久久久久久久久久久包黑料 | 欧美色精品天天在线观看视频| 91在线一区二区三区| 色婷婷精品大视频在线蜜桃视频 | 欧美日韩mp4| 欧美精品一级二级三级| 欧美日韩你懂得| 5858s免费视频成人| 欧美一区二区国产| 欧美大片日本大片免费观看| 精品国产a毛片| 久久精子c满五个校花| 中文字幕欧美区| 亚洲欧洲日韩女同| 亚洲va国产天堂va久久en| 日本欧美一区二区| 国产真实乱子伦精品视频| 懂色av一区二区夜夜嗨| 色综合久久天天| 欧美日韩精品久久久| 欧美精品一区二区三区蜜桃视频| 国产偷国产偷精品高清尤物| 亚洲欧洲美洲综合色网| 亚洲成人精品在线观看| 日本一不卡视频| 成人蜜臀av电影| 欧美三级韩国三级日本三斤| 日韩欧美自拍偷拍| 国产精品视频免费看| 亚洲一区av在线| 精品亚洲免费视频| 91黄色小视频| xnxx国产精品| 一区二区三区加勒比av| 蜜臀91精品一区二区三区| 成人精品视频一区| 欧美精品丝袜久久久中文字幕| 国产亚洲欧美激情| 夜夜爽夜夜爽精品视频| 国产乱子伦视频一区二区三区| 欧美在线免费观看视频| 26uuu久久天堂性欧美| 一区二区三区成人在线视频| 久久99久久99| 欧美日韩免费高清一区色橹橹 | 欧美高清dvd| 国产精品久久久久aaaa樱花| 日本aⅴ亚洲精品中文乱码| av福利精品导航| 精品国产百合女同互慰| 亚洲高清免费观看高清完整版在线观看| 国产原创一区二区| 欧美蜜桃一区二区三区| 亚洲桃色在线一区| 国产成人午夜片在线观看高清观看| 欧美福利视频一区| 一区二区不卡在线视频 午夜欧美不卡在| 久久精品国产精品亚洲综合| 欧美日韩精品一区二区| 亚洲欧美另类小说| 国产精品一区二区你懂的| 这里只有精品视频在线观看| 亚洲一区二区三区激情| 成人手机在线视频| 久久久99精品免费观看不卡| 日本成人在线电影网| 欧美日韩卡一卡二| 亚洲精品久久嫩草网站秘色| 成人av影视在线观看| 久久人人爽爽爽人久久久| 麻豆精品在线观看| 欧美一区二区三区小说| 日韩精品1区2区3区| 欧美日韩在线播放一区| 一区二区三区在线观看视频| www.性欧美| 亚洲男帅同性gay1069| 成人黄页在线观看| 欧美国产一区视频在线观看| 狠狠色丁香婷婷综合| 日韩欧美国产一区在线观看| 日韩激情视频网站| 日韩一区二区高清| 久久成人免费网| 日韩精品中文字幕在线不卡尤物| 美女视频第一区二区三区免费观看网站| 欧美色图免费看|