15
|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
2 <!--NewPage-->
|
|
3 <HTML>
|
|
4 <HEAD>
|
|
5 <!-- Generated by javadoc (build 1.6.0_17) on Sat Mar 27 22:46:15 EDT 2010 -->
|
|
6 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
7 <TITLE>
|
|
8 BrentOptimizer (Commons Math 2.1 API)
|
|
9 </TITLE>
|
|
10
|
|
11 <META NAME="date" CONTENT="2010-03-27">
|
|
12
|
|
13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
|
|
14
|
|
15 <SCRIPT type="text/javascript">
|
|
16 function windowTitle()
|
|
17 {
|
|
18 if (location.href.indexOf('is-external=true') == -1) {
|
|
19 parent.document.title="BrentOptimizer (Commons Math 2.1 API)";
|
|
20 }
|
|
21 }
|
|
22 </SCRIPT>
|
|
23 <NOSCRIPT>
|
|
24 </NOSCRIPT>
|
|
25
|
|
26 </HEAD>
|
|
27
|
|
28 <BODY BGCOLOR="white" onload="windowTitle();">
|
|
29 <HR>
|
|
30
|
|
31
|
|
32 <!-- ========= START OF TOP NAVBAR ======= -->
|
|
33 <A NAME="navbar_top"><!-- --></A>
|
|
34 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
35 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
36 <TR>
|
|
37 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
38 <A NAME="navbar_top_firstrow"><!-- --></A>
|
|
39 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
40 <TR ALIGN="center" VALIGN="top">
|
|
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/BrentOptimizer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
48 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
49 </TR>
|
|
50 </TABLE>
|
|
51 </TD>
|
|
52 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
53 </EM>
|
|
54 </TD>
|
|
55 </TR>
|
|
56
|
|
57 <TR>
|
|
58 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
59 <A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html" title="class in org.apache.commons.math.optimization.univariate"><B>PREV CLASS</B></A>
|
|
60 NEXT CLASS</FONT></TD>
|
|
61 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
62 <A HREF="../../../../../../index.html?org/apache/commons/math/optimization/univariate/BrentOptimizer.html" target="_top"><B>FRAMES</B></A>
|
|
63 <A HREF="BrentOptimizer.html" target="_top"><B>NO FRAMES</B></A>
|
|
64 <SCRIPT type="text/javascript">
|
|
65 <!--
|
|
66 if(window==top) {
|
|
67 document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
68 }
|
|
69 //-->
|
|
70 </SCRIPT>
|
|
71 <NOSCRIPT>
|
|
72 <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
73 </NOSCRIPT>
|
|
74
|
|
75
|
|
76 </FONT></TD>
|
|
77 </TR>
|
|
78 <TR>
|
|
79 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
80 SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_org.apache.commons.math.optimization.univariate.AbstractUnivariateRealOptimizer">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
81 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
82 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
83 </TR>
|
|
84 </TABLE>
|
|
85 <A NAME="skip-navbar_top"></A>
|
|
86 <!-- ========= END OF TOP NAVBAR ========= -->
|
|
87
|
|
88 <HR>
|
|
89 <!-- ======== START OF CLASS DATA ======== -->
|
|
90 <H2>
|
|
91 <FONT SIZE="-1">
|
|
92 org.apache.commons.math.optimization.univariate</FONT>
|
|
93 <BR>
|
|
94 Class BrentOptimizer</H2>
|
|
95 <PRE>
|
|
96 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
|
|
97 <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html" title="class in org.apache.commons.math">org.apache.commons.math.ConvergingAlgorithmImpl</A>
|
|
98 <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html" title="class in org.apache.commons.math.optimization.univariate">org.apache.commons.math.optimization.univariate.AbstractUnivariateRealOptimizer</A>
|
|
99 <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.commons.math.optimization.univariate.BrentOptimizer</B>
|
|
100 </PRE>
|
|
101 <DL>
|
|
102 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithm.html" title="interface in org.apache.commons.math">ConvergingAlgorithm</A>, <A HREF="../../../../../../org/apache/commons/math/optimization/UnivariateRealOptimizer.html" title="interface in org.apache.commons.math.optimization">UnivariateRealOptimizer</A></DD>
|
|
103 </DL>
|
|
104 <HR>
|
|
105 <DL>
|
|
106 <DT><PRE>public class <A HREF="../../../../../../src-html/org/apache/commons/math/optimization/univariate/BrentOptimizer.html#line.32"><B>BrentOptimizer</B></A><DT>extends <A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html" title="class in org.apache.commons.math.optimization.univariate">AbstractUnivariateRealOptimizer</A></DL>
|
|
107 </PRE>
|
|
108
|
|
109 <P>
|
|
110 Implements Richard Brent's algorithm (from his book "Algorithms for
|
|
111 Minimization without Derivatives", p. 79) for finding minima of real
|
|
112 univariate functions.
|
|
113 <P>
|
|
114
|
|
115 <P>
|
|
116 <DL>
|
|
117 <DT><B>Since:</B></DT>
|
|
118 <DD>2.0</DD>
|
|
119 <DT><B>Version:</B></DT>
|
|
120 <DD>$Revision: 811685 $ $Date: 2009-09-05 13:36:48 -0400 (Sat, 05 Sep 2009) $</DD>
|
|
121 </DL>
|
|
122 <HR>
|
|
123
|
|
124 <P>
|
|
125 <!-- =========== FIELD SUMMARY =========== -->
|
|
126
|
|
127 <A NAME="field_summary"><!-- --></A>
|
|
128 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
129 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
130 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
131 <B>Field Summary</B></FONT></TH>
|
|
132 </TR>
|
|
133 </TABLE>
|
|
134 <A NAME="fields_inherited_from_class_org.apache.commons.math.optimization.univariate.AbstractUnivariateRealOptimizer"><!-- --></A>
|
|
135 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
136 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
137 <TH ALIGN="left"><B>Fields inherited from class org.apache.commons.math.optimization.univariate.<A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html" title="class in org.apache.commons.math.optimization.univariate">AbstractUnivariateRealOptimizer</A></B></TH>
|
|
138 </TR>
|
|
139 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
140 <TD><CODE><A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html#functionValue">functionValue</A>, <A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html#result">result</A>, <A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html#resultComputed">resultComputed</A></CODE></TD>
|
|
141 </TR>
|
|
142 </TABLE>
|
|
143 <A NAME="fields_inherited_from_class_org.apache.commons.math.ConvergingAlgorithmImpl"><!-- --></A>
|
|
144 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
145 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
146 <TH ALIGN="left"><B>Fields inherited from class org.apache.commons.math.<A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html" title="class in org.apache.commons.math">ConvergingAlgorithmImpl</A></B></TH>
|
|
147 </TR>
|
|
148 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
149 <TD><CODE><A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#absoluteAccuracy">absoluteAccuracy</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#defaultAbsoluteAccuracy">defaultAbsoluteAccuracy</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#defaultMaximalIterationCount">defaultMaximalIterationCount</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#defaultRelativeAccuracy">defaultRelativeAccuracy</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#iterationCount">iterationCount</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#maximalIterationCount">maximalIterationCount</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#relativeAccuracy">relativeAccuracy</A></CODE></TD>
|
|
150 </TR>
|
|
151 </TABLE>
|
|
152
|
|
153 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
154
|
|
155 <A NAME="constructor_summary"><!-- --></A>
|
|
156 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
157 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
158 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
159 <B>Constructor Summary</B></FONT></TH>
|
|
160 </TR>
|
|
161 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
162 <TD><CODE><B><A HREF="../../../../../../org/apache/commons/math/optimization/univariate/BrentOptimizer.html#BrentOptimizer()">BrentOptimizer</A></B>()</CODE>
|
|
163
|
|
164 <BR>
|
|
165 Construct a solver.</TD>
|
|
166 </TR>
|
|
167 </TABLE>
|
|
168
|
|
169 <!-- ========== METHOD SUMMARY =========== -->
|
|
170
|
|
171 <A NAME="method_summary"><!-- --></A>
|
|
172 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
173 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
174 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
175 <B>Method Summary</B></FONT></TH>
|
|
176 </TR>
|
|
177 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
178 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
179 <CODE> double</CODE></FONT></TD>
|
|
180 <TD><CODE><B><A HREF="../../../../../../org/apache/commons/math/optimization/univariate/BrentOptimizer.html#optimize(org.apache.commons.math.analysis.UnivariateRealFunction, org.apache.commons.math.optimization.GoalType, double, double)">optimize</A></B>(<A HREF="../../../../../../org/apache/commons/math/analysis/UnivariateRealFunction.html" title="interface in org.apache.commons.math.analysis">UnivariateRealFunction</A> f,
|
|
181 <A HREF="../../../../../../org/apache/commons/math/optimization/GoalType.html" title="enum in org.apache.commons.math.optimization">GoalType</A> goalType,
|
|
182 double min,
|
|
183 double max)</CODE>
|
|
184
|
|
185 <BR>
|
|
186 Find an optimum in the given interval.</TD>
|
|
187 </TR>
|
|
188 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
189 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
190 <CODE> double</CODE></FONT></TD>
|
|
191 <TD><CODE><B><A HREF="../../../../../../org/apache/commons/math/optimization/univariate/BrentOptimizer.html#optimize(org.apache.commons.math.analysis.UnivariateRealFunction, org.apache.commons.math.optimization.GoalType, double, double, double)">optimize</A></B>(<A HREF="../../../../../../org/apache/commons/math/analysis/UnivariateRealFunction.html" title="interface in org.apache.commons.math.analysis">UnivariateRealFunction</A> f,
|
|
192 <A HREF="../../../../../../org/apache/commons/math/optimization/GoalType.html" title="enum in org.apache.commons.math.optimization">GoalType</A> goalType,
|
|
193 double min,
|
|
194 double max,
|
|
195 double startValue)</CODE>
|
|
196
|
|
197 <BR>
|
|
198 Find an optimum in the given interval, start at startValue.</TD>
|
|
199 </TR>
|
|
200 </TABLE>
|
|
201 <A NAME="methods_inherited_from_class_org.apache.commons.math.optimization.univariate.AbstractUnivariateRealOptimizer"><!-- --></A>
|
|
202 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
203 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
204 <TH ALIGN="left"><B>Methods inherited from class org.apache.commons.math.optimization.univariate.<A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html" title="class in org.apache.commons.math.optimization.univariate">AbstractUnivariateRealOptimizer</A></B></TH>
|
|
205 </TR>
|
|
206 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
207 <TD><CODE><A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html#checkResultComputed()">checkResultComputed</A>, <A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html#clearResult()">clearResult</A>, <A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html#computeObjectiveValue(org.apache.commons.math.analysis.UnivariateRealFunction, double)">computeObjectiveValue</A>, <A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html#getEvaluations()">getEvaluations</A>, <A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html#getFunctionValue()">getFunctionValue</A>, <A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html#getMaxEvaluations()">getMaxEvaluations</A>, <A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html#getResult()">getResult</A>, <A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html#setMaxEvaluations(int)">setMaxEvaluations</A>, <A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html#setResult(double, double, int)">setResult</A></CODE></TD>
|
|
208 </TR>
|
|
209 </TABLE>
|
|
210 <A NAME="methods_inherited_from_class_org.apache.commons.math.ConvergingAlgorithmImpl"><!-- --></A>
|
|
211 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
212 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
213 <TH ALIGN="left"><B>Methods inherited from class org.apache.commons.math.<A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html" title="class in org.apache.commons.math">ConvergingAlgorithmImpl</A></B></TH>
|
|
214 </TR>
|
|
215 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
216 <TD><CODE><A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#getAbsoluteAccuracy()">getAbsoluteAccuracy</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#getIterationCount()">getIterationCount</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#getMaximalIterationCount()">getMaximalIterationCount</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#getRelativeAccuracy()">getRelativeAccuracy</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#resetAbsoluteAccuracy()">resetAbsoluteAccuracy</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#resetMaximalIterationCount()">resetMaximalIterationCount</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#resetRelativeAccuracy()">resetRelativeAccuracy</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#setAbsoluteAccuracy(double)">setAbsoluteAccuracy</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#setMaximalIterationCount(int)">setMaximalIterationCount</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithmImpl.html#setRelativeAccuracy(double)">setRelativeAccuracy</A></CODE></TD>
|
|
217 </TR>
|
|
218 </TABLE>
|
|
219 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
|
220 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
221 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
222 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
|
|
223 </TR>
|
|
224 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
225 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
|
|
226 </TR>
|
|
227 </TABLE>
|
|
228 <A NAME="methods_inherited_from_class_org.apache.commons.math.ConvergingAlgorithm"><!-- --></A>
|
|
229 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
230 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
231 <TH ALIGN="left"><B>Methods inherited from interface org.apache.commons.math.<A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithm.html" title="interface in org.apache.commons.math">ConvergingAlgorithm</A></B></TH>
|
|
232 </TR>
|
|
233 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
234 <TD><CODE><A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithm.html#getAbsoluteAccuracy()">getAbsoluteAccuracy</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithm.html#getIterationCount()">getIterationCount</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithm.html#getMaximalIterationCount()">getMaximalIterationCount</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithm.html#getRelativeAccuracy()">getRelativeAccuracy</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithm.html#resetAbsoluteAccuracy()">resetAbsoluteAccuracy</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithm.html#resetMaximalIterationCount()">resetMaximalIterationCount</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithm.html#resetRelativeAccuracy()">resetRelativeAccuracy</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithm.html#setAbsoluteAccuracy(double)">setAbsoluteAccuracy</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithm.html#setMaximalIterationCount(int)">setMaximalIterationCount</A>, <A HREF="../../../../../../org/apache/commons/math/ConvergingAlgorithm.html#setRelativeAccuracy(double)">setRelativeAccuracy</A></CODE></TD>
|
|
235 </TR>
|
|
236 </TABLE>
|
|
237
|
|
238 <P>
|
|
239
|
|
240 <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
241
|
|
242 <A NAME="constructor_detail"><!-- --></A>
|
|
243 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
244 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
245 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
246 <B>Constructor Detail</B></FONT></TH>
|
|
247 </TR>
|
|
248 </TABLE>
|
|
249
|
|
250 <A NAME="BrentOptimizer()"><!-- --></A><H3>
|
|
251 BrentOptimizer</H3>
|
|
252 <PRE>
|
|
253 public <A HREF="../../../../../../src-html/org/apache/commons/math/optimization/univariate/BrentOptimizer.html#line.42"><B>BrentOptimizer</B></A>()</PRE>
|
|
254 <DL>
|
|
255 <DD>Construct a solver.
|
|
256 <P>
|
|
257 </DL>
|
|
258
|
|
259 <!-- ============ METHOD DETAIL ========== -->
|
|
260
|
|
261 <A NAME="method_detail"><!-- --></A>
|
|
262 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
263 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
264 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
265 <B>Method Detail</B></FONT></TH>
|
|
266 </TR>
|
|
267 </TABLE>
|
|
268
|
|
269 <A NAME="optimize(org.apache.commons.math.analysis.UnivariateRealFunction, org.apache.commons.math.optimization.GoalType, double, double, double)"><!-- --></A><H3>
|
|
270 optimize</H3>
|
|
271 <PRE>
|
|
272 public double <A HREF="../../../../../../src-html/org/apache/commons/math/optimization/univariate/BrentOptimizer.html#line.47"><B>optimize</B></A>(<A HREF="../../../../../../org/apache/commons/math/analysis/UnivariateRealFunction.html" title="interface in org.apache.commons.math.analysis">UnivariateRealFunction</A> f,
|
|
273 <A HREF="../../../../../../org/apache/commons/math/optimization/GoalType.html" title="enum in org.apache.commons.math.optimization">GoalType</A> goalType,
|
|
274 double min,
|
|
275 double max,
|
|
276 double startValue)
|
|
277 throws <A HREF="../../../../../../org/apache/commons/math/MaxIterationsExceededException.html" title="class in org.apache.commons.math">MaxIterationsExceededException</A>,
|
|
278 <A HREF="../../../../../../org/apache/commons/math/FunctionEvaluationException.html" title="class in org.apache.commons.math">FunctionEvaluationException</A></PRE>
|
|
279 <DL>
|
|
280 <DD>Find an optimum in the given interval, start at startValue.
|
|
281 <p>
|
|
282 An optimizer may require that the interval brackets a single optimum.
|
|
283 </p>
|
|
284 <P>
|
|
285 <DD><DL>
|
|
286 <DT><B>Parameters:</B><DD><CODE>f</CODE> - the function to optimize.<DD><CODE>goalType</CODE> - type of optimization goal: either <A HREF="../../../../../../org/apache/commons/math/optimization/GoalType.html#MAXIMIZE"><CODE>GoalType.MAXIMIZE</CODE></A>
|
|
287 or <A HREF="../../../../../../org/apache/commons/math/optimization/GoalType.html#MINIMIZE"><CODE>GoalType.MINIMIZE</CODE></A><DD><CODE>min</CODE> - the lower bound for the interval.<DD><CODE>max</CODE> - the upper bound for the interval.<DD><CODE>startValue</CODE> - the start value to use
|
|
288 <DT><B>Returns:</B><DD>a value where the function is optimum
|
|
289 <DT><B>Throws:</B>
|
|
290 <DD><CODE><A HREF="../../../../../../org/apache/commons/math/FunctionEvaluationException.html" title="class in org.apache.commons.math">FunctionEvaluationException</A></CODE> - if an error occurs evaluating the
|
|
291 function
|
|
292 <DD><CODE><A HREF="../../../../../../org/apache/commons/math/MaxIterationsExceededException.html" title="class in org.apache.commons.math">MaxIterationsExceededException</A></CODE></DL>
|
|
293 </DD>
|
|
294 </DL>
|
|
295 <HR>
|
|
296
|
|
297 <A NAME="optimize(org.apache.commons.math.analysis.UnivariateRealFunction, org.apache.commons.math.optimization.GoalType, double, double)"><!-- --></A><H3>
|
|
298 optimize</H3>
|
|
299 <PRE>
|
|
300 public double <A HREF="../../../../../../src-html/org/apache/commons/math/optimization/univariate/BrentOptimizer.html#line.54"><B>optimize</B></A>(<A HREF="../../../../../../org/apache/commons/math/analysis/UnivariateRealFunction.html" title="interface in org.apache.commons.math.analysis">UnivariateRealFunction</A> f,
|
|
301 <A HREF="../../../../../../org/apache/commons/math/optimization/GoalType.html" title="enum in org.apache.commons.math.optimization">GoalType</A> goalType,
|
|
302 double min,
|
|
303 double max)
|
|
304 throws <A HREF="../../../../../../org/apache/commons/math/MaxIterationsExceededException.html" title="class in org.apache.commons.math">MaxIterationsExceededException</A>,
|
|
305 <A HREF="../../../../../../org/apache/commons/math/FunctionEvaluationException.html" title="class in org.apache.commons.math">FunctionEvaluationException</A></PRE>
|
|
306 <DL>
|
|
307 <DD>Find an optimum in the given interval.
|
|
308 <p>
|
|
309 An optimizer may require that the interval brackets a single optimum.
|
|
310 </p>
|
|
311 <P>
|
|
312 <DD><DL>
|
|
313 <DT><B>Parameters:</B><DD><CODE>f</CODE> - the function to optimize.<DD><CODE>goalType</CODE> - type of optimization goal: either <A HREF="../../../../../../org/apache/commons/math/optimization/GoalType.html#MAXIMIZE"><CODE>GoalType.MAXIMIZE</CODE></A>
|
|
314 or <A HREF="../../../../../../org/apache/commons/math/optimization/GoalType.html#MINIMIZE"><CODE>GoalType.MINIMIZE</CODE></A><DD><CODE>min</CODE> - the lower bound for the interval.<DD><CODE>max</CODE> - the upper bound for the interval.
|
|
315 <DT><B>Returns:</B><DD>a value where the function is optimum
|
|
316 <DT><B>Throws:</B>
|
|
317 <DD><CODE><A HREF="../../../../../../org/apache/commons/math/FunctionEvaluationException.html" title="class in org.apache.commons.math">FunctionEvaluationException</A></CODE> - if an error occurs evaluating the
|
|
318 function
|
|
319 <DD><CODE><A HREF="../../../../../../org/apache/commons/math/MaxIterationsExceededException.html" title="class in org.apache.commons.math">MaxIterationsExceededException</A></CODE></DL>
|
|
320 </DD>
|
|
321 </DL>
|
|
322 <!-- ========= END OF CLASS DATA ========= -->
|
|
323 <HR>
|
|
324
|
|
325
|
|
326 <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
327 <A NAME="navbar_bottom"><!-- --></A>
|
|
328 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
329 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
330 <TR>
|
|
331 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
332 <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
333 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
334 <TR ALIGN="center" VALIGN="top">
|
|
335 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
336 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
337 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
338 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/BrentOptimizer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
339 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
340 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
341 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
342 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
343 </TR>
|
|
344 </TABLE>
|
|
345 </TD>
|
|
346 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
347 </EM>
|
|
348 </TD>
|
|
349 </TR>
|
|
350
|
|
351 <TR>
|
|
352 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
353 <A HREF="../../../../../../org/apache/commons/math/optimization/univariate/AbstractUnivariateRealOptimizer.html" title="class in org.apache.commons.math.optimization.univariate"><B>PREV CLASS</B></A>
|
|
354 NEXT CLASS</FONT></TD>
|
|
355 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
356 <A HREF="../../../../../../index.html?org/apache/commons/math/optimization/univariate/BrentOptimizer.html" target="_top"><B>FRAMES</B></A>
|
|
357 <A HREF="BrentOptimizer.html" target="_top"><B>NO FRAMES</B></A>
|
|
358 <SCRIPT type="text/javascript">
|
|
359 <!--
|
|
360 if(window==top) {
|
|
361 document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
362 }
|
|
363 //-->
|
|
364 </SCRIPT>
|
|
365 <NOSCRIPT>
|
|
366 <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
367 </NOSCRIPT>
|
|
368
|
|
369
|
|
370 </FONT></TD>
|
|
371 </TR>
|
|
372 <TR>
|
|
373 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
374 SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_org.apache.commons.math.optimization.univariate.AbstractUnivariateRealOptimizer">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
375 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
376 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
377 </TR>
|
|
378 </TABLE>
|
|
379 <A NAME="skip-navbar_bottom"></A>
|
|
380 <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
381
|
|
382 <HR>
|
|
383 Copyright © 2003-2010 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
|
|
384 </BODY>
|
|
385 </HTML>
|