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

📄 asa-readme.html

📁 simulated annealing code ASA
💻 HTML
📖 第 1 页 / 共 5 页
字号:
9.3.54. <A HREF="#OPTIONS--gt-Reanneal-Cost-Function">OPTIONS-&gt;Reanneal_Cost_Function</A><BR>

9.3.55. <A HREF="#OPTIONS--gt-Reanneal-Params-Function">OPTIONS-&gt;Reanneal_Params_Function</A><BR>
9.3.56. <A HREF="#OPTIONS--gt-Bias-Acceptance">OPTIONS-&gt;Bias_Acceptance</A><BR>
9.3.57. <A HREF="#OPTIONS--gt-Bias-Generated">OPTIONS-&gt;Bias_Generated</A><BR>
9.3.58. <A HREF="#OPTIONS--gt-Average-Weights">OPTIONS-&gt;Average_Weights</A><BR>
9.3.59. <A HREF="#OPTIONS--gt-Limit-Weights">OPTIONS-&gt;Limit_Weights</A><BR>
9.3.60. <A HREF="#OPTIONS--gt-Queue-Size">OPTIONS-&gt;Queue_Size</A><BR>
9.3.61. <A HREF="#OPTIONS--gt-Queue-Resolution">OPTIONS-&gt;Queue_Resolution</A><BR>
9.3.62. <A HREF="#OPTIONS--gt-Coarse-Resolution">OPTIONS-&gt;Coarse_Resolution</A><BR>
9.3.63. <A HREF="#OPTIONS--gt-Fit-Local">OPTIONS-&gt;Fit_Local</A><BR>
9.3.64. <A HREF="#OPTIONS--gt-Iter-Max">OPTIONS-&gt;Iter_Max</A><BR>
9.3.65. <A HREF="#OPTIONS--gt-Penalty">OPTIONS-&gt;Penalty</A><BR>
9.3.66. <A HREF="#OPTIONS--gt-Multi-Number">OPTIONS-&gt;Multi_Number</A><BR>
9.3.67. <A HREF="#OPTIONS--gt-Multi-Cost">OPTIONS-&gt;Multi_Cost</A><BR>
9.3.68. <A HREF="#OPTIONS--gt-Multi-Params">OPTIONS-&gt;Multi_Params</A><BR>
9.3.69. <A HREF="#OPTIONS--gt-Multi-Grid">OPTIONS-&gt;Multi_Grid</A><BR>
9.3.70. <A HREF="#OPTIONS--gt-Multi-Specify">OPTIONS-&gt;Multi_Specify</A><BR>
9.3.71. <A HREF="#OPTIONS--gt-Gener-Mov-Avr">OPTIONS-&gt;Gener_Mov_Avr</A><BR>
9.3.72. <A HREF="#OPTIONS--gt-Gener-Block">OPTIONS-&gt;Gener_Block</A><BR>
9.3.73. <A HREF="#OPTIONS--gt-Gener-Block-Max">OPTIONS-&gt;Gener_Block_Max</A><BR>
9.3.74. <A HREF="#OPTIONS--gt-Random-Array-Dim">OPTIONS-&gt;Random_Array_Dim</A><BR>
9.3.75. <A HREF="#OPTIONS--gt-Random-Array">OPTIONS-&gt;Random_Array</A><BR>
9.3.76. <A HREF="#OPTIONS--gt-Asa-Recursive-Level">OPTIONS-&gt;Asa_Recursive_Level</A><BR>
10. <A HREF="#User-Module">User Module</A><BR>
10.1. <A HREF="#int-main-int-argc--char--argv-">int main(int argc, char **argv)</A><BR>
10.2. <A HREF="#int-asa-main-">int asa_main(</A><BR>
10.3. <A HREF="#int-initialize-parameters-">int initialize_parameters(</A><BR>
10.4. <A HREF="#int-recur-initialize-parameters-">int recur_initialize_parameters(</A><BR>
10.5. <A HREF="#double-cost-function-">double cost_function(</A><BR>
10.5.1. <A HREF="#cost-function">cost_function</A><BR>
10.5.2. <A HREF="#x">*x</A><BR>
10.5.3. <A HREF="#double-parameter-lower-bound">double *parameter_lower_bound</A><BR>
10.5.4. <A HREF="#double-parameter-upper-bound">double *parameter_upper_bound</A><BR>
10.5.5. <A HREF="#double-cost-tangents">double *cost_tangents</A><BR>
10.5.6. <A HREF="#double-cost-curvature">double *cost_curvature</A><BR>
10.5.7. <A HREF="#ALLOC-INT-parameter-dimension">ALLOC_INT *parameter_dimension</A><BR>
10.5.8. <A HREF="#int-parameter-int-real">int *parameter_int_real</A><BR>
10.5.9. <A HREF="#cost-flag">*cost_flag</A><BR>
10.5.10. <A HREF="#int-exit-code">int *exit_code</A><BR>
10.5.11. <A HREF="#USER-DEFINES-OPTIONS">USER_DEFINES *OPTIONS</A><BR>
10.6. <A HREF="#double-recur-cost-function-">double recur_cost_function(</A><BR>
10.7. <A HREF="#double-user-random-generator-">double user_random_generator(</A><BR>
10.8. <A HREF="#LONG-INT-asa-seed-">LONG_INT asa_seed(</A><BR>
10.9. <A HREF="#double-user-cost-schedule-">double user_cost_schedule(</A><BR>
10.10. <A HREF="#double-recur-user-cost-schedule-">double recur_user_cost_schedule(</A><BR>
10.11. <A HREF="#void-user-acceptance-test-">void user_acceptance_test(</A><BR>
10.12. <A HREF="#void-recur-user-acceptance-test-">void recur_user_acceptance_test(</A><BR>
10.13. <A HREF="#double-user-generating-distrib-">double user_generating_distrib(</A><BR>
10.14. <A HREF="#double-recur-user-generating-distrib-">double recur_user_generating_distrib(</A><BR>
10.15. <A HREF="#int-user-reanneal-cost-">int user_reanneal_cost(</A><BR>
10.16. <A HREF="#int-recur-user-reanneal-cost-">int recur_user_reanneal_cost(</A><BR>
10.17. <A HREF="#double-user-reanneal-params-">double user_reanneal_params(</A><BR>
10.18. <A HREF="#double-recur-user-reanneal-params-">double recur_user_reanneal_params(</A><BR>
10.19. <A HREF="#final-cost---asa-">final_cost = asa(</A><BR>

10.20. <A HREF="#double-asa-">double asa(</A><BR>
10.20.1. <A HREF="#double--user-cost-function----">double (*user_cost_function) ()</A><BR>
10.20.2. <A HREF="#double--user-random-generator----">double (*user_random_generator) ()</A><BR>
10.20.3. <A HREF="#LONG-INT-rand-seed">LONG_INT *rand_seed</A><BR>
10.20.4. <A HREF="#double-parameter-initial-final">double *parameter_initial_final</A><BR>
10.21. <A HREF="#void-print-time-char--message--FILE--ptr-out-">void print_time(char *message, FILE * ptr_out)</A><BR>

10.22. <A HREF="#void-sample-FILE---ptr-out--FILE--ptr-asa-">void sample(FILE * ptr_out, FILE * ptr_asa)</A><BR>
11. <A HREF="#Bug-Reports-and-Help-With-ASA">Bug Reports and Help With ASA</A><BR>
12.  <A HREF="#References">References</A><BR>
<P>
1.  <A NAME="ASA-LICENSE">ASA-LICENSE</A> [<A HREF="#To-Top-of-ASA-READMEhtml">To-Top-of-ASA-README.html</A>]
<P>
This  Adaptive  Simulated  Annealing  (ASA)  code  is  being made
available under conditions specified  in  the  <A HREF="#ASA-LICENSE">ASA-LICENSE</A>  file  that
comes  with this code, and is owned by Lester Ingber[1].  Reference is
properly given to the internet archive that first published the  code.
Please  read  the  copy of the public <A HREF="#ASA-LICENSE">ASA-LICENSE</A> contained in the ASA
directory.  Its intent is to protect the integrity of  the  algorithm,
promote  widespread  usage,  and  require  reference to current source
code.  The <A HREF="#ASA-LICENSE">ASA-LICENSE</A> is so short it is repeated here:
<P>
Redistribution and use in source and binary forms,  with  or
without   modification,  are  permitted  provided  that  the
following conditions are met:
<P>
CONDITIONS
<P>
1. Redistributions of ASA source code must retain the  above
copyright notice, this list of conditions, and the following
disclaimer.
<P>
2. Redistributions in binary form  must  contain  the  above
copyright  notice, this list of conditions and the following
disclaimer  in  the  documentation  and/or  other  materials
provided with the distribution.
<P>
3.  All  modifications  to  the  source code must be clearly
marked as such.  Binary redistributions  based  on  modified
source  code  must be clearly marked as modified versions in
the documentation and/or other materials provided  with  the
distribution.
<P>
4.  Notice must be given of the location of the availability
of the unmodified current source code, e.g.,
<BR>
<BR> <A HREF="http://www.ingber.com/">http://www.ingber.com/</A>
<BR>
or
<BR>
<BR> <A HREF="ftp://ftp.ingber.com">ftp://ftp.ingber.com</A>
<BR>
in the documentation and/or other  materials  provided  with
the distribution.  ASA also is listed at
<BR>
<BR> <A HREF="http://alumni.caltech.edu/~ingber">http://alumni.caltech.edu/~ingber</A>
<BR> <A HREF="http://asa-caltech.sourceforge.net">http://asa-caltech.sourceforge.net</A>
<BR>
<P>
5.   All  advertising  and  published  materials  mentioning
features or use of this software must display the  following
acknowledgment:   &quot;This  product includes software developed
by Lester Ingber and other contributors.&quot;
<P>
6. The name of Lester Ingber may not be used to  endorse  or
promote products derived from this software without specific
prior written permission.
<P>
DISCLAIMER
<P>
This software is provided by Lester Ingber and  contributors
&quot;as  is&quot; and any expressed or implied warranties, including,
but   not   limited   to,   the   implied   warranties    of
merchantability  and  fitness  for  a particular purpose are
disclaimed.  In no event shall Lester Ingber or contributors
be  liable  for  any  direct, indirect, incidental, special,
exemplary, or  consequential  damages  (including,  but  not
limited  to,  procurement  of  substitute goods or services;
loss of use, data, or  profits;  or  business  interruption)
however  caused  and  on any theory of liability, whether in
contract, strict liability, or tort (including negligence or
otherwise)  arising  in  any  way  out  of  the  use of this
software, even if advised of the possibility of such damage.
<P>
2.  <A NAME="Lester-Ingber-Research-Terms-of-Use">Lester Ingber Research Terms of Use</A> [<A HREF="#To-Top-of-ASA-READMEhtml">To-Top-of-ASA-README.html</A>]
<P>
Lester  Ingber  Research (LIR) develops projects in several areas
of expertise documented in the ingber.com InterNet archive, e.g., this
ASA   code.    Information   on   terms   of   use   is  in  the  file
<A HREF="http://www.ingber.com/ingber_terms.html">http://www.ingber.com/ingber_terms.html</A>       under       WWW       or
<A HREF="ftp://ftp.ingber.com/ingber_terms.txt">ftp://ftp.ingber.com/ingber_terms.txt</A> under FTP.
<P>
There  is  no  charge for downloading and using codes or files in
the ingber.com archive.  In general, I have retained all  rights  such
as copyrights to these codes and files, but they may be freely used by
any person or group independent of affiliations, e.g., independent  of
academic or commercial affiliation.
<P>
Limited help assisting people with queries on my codes and papers
is available only by electronic mail correspondence.  Sorry, I  cannot
mail out hardcopies of code or papers.
<P>
3.  <A NAME="Documentation">Documentation</A> [<A HREF="#To-Top-of-ASA-READMEhtml">To-Top-of-ASA-README.html</A>]
<P>
Note  that most URL references to files in the ingber.com archive
have the same WWW and FTP paths under the main  <A HREF="http://www.ingber.com/">http://www.ingber.com/</A>
directory  (all  .html,  .gif  and  .jpg  files  are  in  or under the
<A HREF="http://www.ingber.com/">http://www.ingber.com/</A> directory).
<P>
3.1.  <A NAME="Table-of-Contents-Index">Table of Contents/Index</A> [<A HREF="#To-Top-of-ASA-READMEhtml">To-Top-of-ASA-README.html</A>]
<P>
A compilation of the three levels  of  headers  with  their  page
numbers  may  be  used  as  a Table of Contents placed after the first
title  page  (as  is  done  for  ASA-README.ps,   ASA-README.pdf   and
ASA-README.html  below), or left at the end for quick reference (as is
done for ASA-README.txt below).
<P>
3.2.  <A NAME="ASA-README-ms-and-ASA-README">ASA-README.ms and ASA-README</A> [<A HREF="#To-Top-of-ASA-READMEhtml">To-Top-of-ASA-README.html</A>]
<P>
The ASA-README.ms file is used  to  prepare  other  documentation
files using UNIX(R) MS macros.
<P>
3.2.1.  <A NAME="ASA-README-txt-and-ASA-README--txt">ASA-README.txt and ASA-README+.txt</A> [<A HREF="#To-Top-of-ASA-READMEhtml">To-Top-of-ASA-README.html</A>]
<P>
ASA-README.txt  is  an  ASCII  file that can be previewed on your
screen or sent to an ASCII lineprinter.
<P>
ASA-README+.txt is ASA-README.txt without any  filters  to  strip
off underlining and bold enhancements.
<P>
3.2.2.  <A NAME="asa--13nl--Manpage">asa.[13nl] Manpage</A> [<A HREF="#To-Top-of-ASA-READMEhtml">To-Top-of-ASA-README.html</A>]
<P>
The  ASA-README.txt  or  ASA-README+.txt  file can be copied to a
file   named   asa.[l3],   and   asa.[13]   can   be   installed    as
MANPATH/cat1/asa.1  or  MANPATH/cat3/asa.3, where MANPATH is the place
your man directory is  located.   If  you  do  not  have  any  cat[13]
directories  on  your system, then installing a copy of ASA-README.txt
or ASA-README+.txt as MANPATH/man[13nl]/asa.[13nl],  choosing  one  of
the suffixes in [13nl] for your choice of directory and asa file name,
should work fine on most machines.  However, passing  this  asa.[13nl]
through  man may strip out additional &quot;back-slash&quot; characters, leading
to missing words or unintended  formatting.   If  such  a  file  looks
strange,  compare  it  to  the raw ASA-README.ms file to determine the
true intended content.  You likely can avoid some further  undesirable
formatting by man by placing '.nf' on the first line of this file.
<P>
3.2.3.  <A NAME="ASA-README-ps-and-ASA-README-pdf">ASA-README.ps and ASA-README.pdf</A> [<A HREF="#To-Top-of-ASA-READMEhtml">To-Top-of-ASA-README.html</A>]
<P>
ASA-README.ps  is  a  PostScript(R)  formatted  file which may be
previewed on your screen if you have the proper software, or it may be
sent to a PostScript(R) printer to produce hardcopy.
<P>
A PDF version ASA-README.pdf is prepared from ASA-README.ps.
<P>

⌨️ 快捷键说明

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