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

Commit

Permalink
Reorganize and improve unconstrained tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-ch committed Jan 26, 2015
1 parent 3ac584d commit 7803bca
Show file tree
Hide file tree
Showing 2 changed files with 474 additions and 155 deletions.
8 changes: 5 additions & 3 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ import (
"time"
)

// EvaluationType is used by the optimizer to specify information needed from
// the objective function.
const defaultGradientAbsTol = 1e-6

// EvaluationType is used by the optimizer to specify information needed
// from the objective function.
type EvaluationType int

const (
Expand Down Expand Up @@ -155,7 +157,7 @@ type Settings struct {
// DefaultSettings returns a new Settings struct containing the default settings.
func DefaultSettings() *Settings {
return &Settings{
GradientAbsTol: 1e-6,
GradientAbsTol: defaultGradientAbsTol,
FunctionAbsTol: math.Inf(-1),
Recorder: NewPrinter(),
}
Expand Down
Loading

0 comments on commit 7803bca

Please sign in to comment.