class GridLS extends LineSearch
The GridLS
class performs a line search on 'f(x)' to find a minimal
value for 'f'. It requires no derivatives and only one functional evaluation per
iteration. A search is conducted from 'x1' (often 0) to 'xmax'. A guess for 'xmax'
must be given. It works on scalar functions (see GridLSTest
).
If starting with a vector function 'f(x)', simply define a new function
'g(y) = x0 + direction * y' (see GridLSTest2
).
- Alphabetic
- By Inheritance
- GridLS
- LineSearch
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
GridLS(f: FunctionS2S)
- f
the scalar objective function to minimize
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
EPSILON: Double
- Attributes
- protected
- Definition Classes
- LineSearch
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lsearch(xmax: Double = 2.0, x1: Double = 0.0): Double
Perform an exact Line Search (LS) using the Grid Search Algorithm.
Perform an exact Line Search (LS) using the Grid Search Algorithm.
- xmax
a rough guess for the right end-point of the line search
- x1
the left (smallest) anchor point for the search (usually 0)
- Definition Classes
- GridLS → LineSearch
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
search(step: Double = 2.0): Double
Perform an exact Line Search (LS) using the Grid Search Algorithm with defaults.
Perform an exact Line Search (LS) using the Grid Search Algorithm with defaults.
- step
the initial step size
- Definition Classes
- GridLS → LineSearch
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated