Skip to content
This repository was archived by the owner on Nov 23, 2018. It is now read-only.

Commit 573e309

Browse files
committed
Use 'to command' instead of 'to request' in docs regarding Operations
1 parent 1c95f28 commit 573e309

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

linesearch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type LinesearchMethod struct {
2222
dir []float64 // Search direction for the current iteration.
2323

2424
first bool // Indicator of the first iteration.
25-
nextMajor bool // Indicates that MajorIteration must be requested at the next call to Iterate.
25+
nextMajor bool // Indicates that MajorIteration must be commanded at the next call to Iterate.
2626
eval Operation // Indicator of valid fields in Location.
2727

2828
lastStep float64 // Step taken from x in the previous call to Iterate.

local.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func minimize(p *Problem, method Method, settings *Settings, stats *Stats, optLo
152152

153153
for {
154154
// Sequentially call method.Iterate, performing the operations it has
155-
// requested, until convergence.
155+
// commanded, until convergence.
156156

157157
switch op {
158158
case NoOperation:

neldermead.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,13 @@ func (n *NelderMead) Iterate(loc *Location) (Operation, error) {
236236
}
237237

238238
// returnNext updates the location based on the iteration type and the current
239-
// simplex, and returns the next request.
239+
// simplex, and returns the next operation.
240240
func (n *NelderMead) returnNext(iter nmIterType, loc *Location) (Operation, error) {
241241
n.lastIter = iter
242242
switch iter {
243243
case nmMajor:
244244
// Fill loc with the current best point and value,
245-
// and request a convergence check.
245+
// and command a convergence check.
246246
copy(loc.X, n.vertices[0])
247247
loc.F = n.values[0]
248248
return MajorIteration, nil

types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515

1616
const defaultGradientAbsTol = 1e-6
1717

18-
// Operation represents the set of operations requested by Method at each
18+
// Operation represents the set of operations commanded by Method at each
1919
// iteration. It is a bitmap of various Iteration and Evaluation constants.
2020
// Individual constants must NOT be combined together by the binary OR operator
2121
// except for the Evaluation operations.

0 commit comments

Comments
 (0)