mirror of
https://github.com/gonum/gonum.git
synced 2025-10-31 02:26:59 +08:00
all: fix spelling errors
This commit is contained in:
@@ -141,7 +141,7 @@ func simplex(initialBasic []int, c []float64, A mat.Matrix, b []float64, tol flo
|
||||
basicIdxs = make([]int, len(initialBasic))
|
||||
copy(basicIdxs, initialBasic)
|
||||
} else {
|
||||
// No inital basis supplied. Solve the PhaseI problem.
|
||||
// No initial basis supplied. Solve the PhaseI problem.
|
||||
basicIdxs, ab, xb, err = findInitialBasic(A, b)
|
||||
if err != nil {
|
||||
return math.NaN(), nil, nil, err
|
||||
|
||||
@@ -24,7 +24,7 @@ type GlobalMethod interface {
|
||||
Done()
|
||||
}
|
||||
|
||||
// Global uses a global optimizer to search for the gloabl minimum of a
|
||||
// Global uses a global optimizer to search for the global minimum of a
|
||||
// function. A maximization problem can be transformed into a
|
||||
// minimization problem by multiplying the function by -1.
|
||||
//
|
||||
|
||||
@@ -70,7 +70,7 @@ type Statuser interface {
|
||||
// dir_k starting at the most recent location x_k, i.e., it tries to minimize
|
||||
// the function
|
||||
// φ(step) := f(x_k + step * dir_k) where step > 0.
|
||||
// Typically, a Linesearcher will be used in conjuction with LinesearchMethod
|
||||
// Typically, a Linesearcher will be used in conjunction with LinesearchMethod
|
||||
// for performing gradient-based optimization through sequential line searches.
|
||||
type Linesearcher interface {
|
||||
// Init initializes the Linesearcher and a new line search. Value and
|
||||
@@ -100,7 +100,7 @@ type Linesearcher interface {
|
||||
|
||||
// NextDirectioner implements a strategy for computing a new line search
|
||||
// direction at each major iteration. Typically, a NextDirectioner will be
|
||||
// used in conjuction with LinesearchMethod for performing gradient-based
|
||||
// used in conjunction with LinesearchMethod for performing gradient-based
|
||||
// optimization through sequential line searches.
|
||||
type NextDirectioner interface {
|
||||
// InitDirection initializes the NextDirectioner at the given starting location,
|
||||
|
||||
@@ -184,7 +184,7 @@ type Settings struct {
|
||||
//
|
||||
// If f < f_best and
|
||||
// f_best - f > FunctionConverge.Relative * maxabs(f, f_best) + FunctionConverge.Absolute
|
||||
// then a significant decrease has occured, and f_best is updated.
|
||||
// then a significant decrease has occurred, and f_best is updated.
|
||||
//
|
||||
// If there is no significant decrease for FunctionConverge.Iterations
|
||||
// major iterations, FunctionConvergence status is returned.
|
||||
|
||||
Reference in New Issue
Block a user