@@ -183,9 +183,9 @@ func (ls *LinesearchMethod) initNextLinesearch(loc *Location) (Operation, error)
183
183
// true, though this is not enforced:
184
184
// - initGrad < 0
185
185
// - step > 0
186
- // - 0 < funcConst < 1
187
- func ArmijoConditionMet (currObj , initObj , initGrad , step , funcConst float64 ) bool {
188
- return currObj <= initObj + funcConst * step * initGrad
186
+ // - 0 < decrease < 1
187
+ func ArmijoConditionMet (currObj , initObj , initGrad , step , decrease float64 ) bool {
188
+ return currObj <= initObj + decrease * step * initGrad
189
189
}
190
190
191
191
// StrongWolfeConditionsMet returns true if the strong Wolfe conditions have been met.
@@ -195,12 +195,12 @@ func ArmijoConditionMet(currObj, initObj, initGrad, step, funcConst float64) boo
195
195
// enforced:
196
196
// - initGrad < 0
197
197
// - step > 0
198
- // - 0 <= funcConst < gradConst < 1
199
- func StrongWolfeConditionsMet (currObj , currGrad , initObj , initGrad , step , funcConst , gradConst float64 ) bool {
200
- if currObj > initObj + funcConst * step * initGrad {
198
+ // - 0 <= decrease < curvature < 1
199
+ func StrongWolfeConditionsMet (currObj , currGrad , initObj , initGrad , step , decrease , curvature float64 ) bool {
200
+ if currObj > initObj + decrease * step * initGrad {
201
201
return false
202
202
}
203
- return math .Abs (currGrad ) < gradConst * math .Abs (initGrad )
203
+ return math .Abs (currGrad ) < curvature * math .Abs (initGrad )
204
204
}
205
205
206
206
// WeakWolfeConditionsMet returns true if the weak Wolfe conditions have been met.
@@ -209,10 +209,10 @@ func StrongWolfeConditionsMet(currObj, currGrad, initObj, initGrad, step, funcCo
209
209
// conditions, the following should be true, though this is not enforced:
210
210
// - initGrad < 0
211
211
// - step > 0
212
- // - 0 <= funcConst < gradConst < 1
213
- func WeakWolfeConditionsMet (currObj , currGrad , initObj , initGrad , step , funcConst , gradConst float64 ) bool {
214
- if currObj > initObj + funcConst * step * initGrad {
212
+ // - 0 <= decrease < curvature < 1
213
+ func WeakWolfeConditionsMet (currObj , currGrad , initObj , initGrad , step , decrease , curvature float64 ) bool {
214
+ if currObj > initObj + decrease * step * initGrad {
215
215
return false
216
216
}
217
- return currGrad >= gradConst * initGrad
217
+ return currGrad >= curvature * initGrad
218
218
}
0 commit comments