MCPcopy Create free account
hub / github.com/changkun/pkg / Run

Method Run

bo/optimizer.go:336–387  ·  view source on GitHub ↗

Run will call f the fewest times as possible while trying to maximize the output value. It blocks until all rounds have elapsed, or Stop is called.

(f func(map[Param]float64) float64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

TestOptimizerFunction · 0.95
TestOptimizerMaxFunction · 0.95
TestOptimizerBoundsFunction · 0.95

Calls 8

RunningMethod · 0.95
NextMethod · 0.95
AddMethod · 0.95
LogMethod · 0.95
WaitMethod · 0.95
fFunction · 0.85
MinimumMethod · 0.80
MaximumMethod · 0.80

Tested by 3

TestOptimizerFunction · 0.76
TestOptimizerMaxFunction · 0.76
TestOptimizerBoundsFunction · 0.76