Skip to content
Snippets Groups Projects
Commit 14bb4804 authored by Andrew E. Torda's avatar Andrew E. Torda
Browse files

Still cleaning after removing adaptive steps.

parent c3e9d11c
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ To build without graphics ...@@ -35,7 +35,7 @@ To build without graphics
## Binaries ## Binaries
Where are they ? If I have built them for linux and windows, they will be linked to from the course moodle page.
# Documentation # Documentation
......
...@@ -14,10 +14,6 @@ import ( ...@@ -14,10 +14,6 @@ import (
"example.com/ackley_mc/ackley" "example.com/ackley_mc/ackley"
) )
const (
maxxDlta = 2. // max step size
)
var seedLocker sync.Mutex var seedLocker sync.Mutex
// getSeed returns the random number seed, but we have to put a lock // getSeed returns the random number seed, but we have to put a lock
...@@ -234,7 +230,6 @@ func singleRun(mcPrm *McPrm) (MCresult, error) { ...@@ -234,7 +230,6 @@ func singleRun(mcPrm *McPrm) (MCresult, error) {
fOld := ackley.Ackley(x) // Initial function value fOld := ackley.Ackley(x) // Initial function value
fTrial := fOld fTrial := fOld
tmprtr := float64(mcPrm.IniTmp) tmprtr := float64(mcPrm.IniTmp)
const runMult = 0.99
xDlta := mcPrm.XDlta // Step size which might be adjusted on the fly xDlta := mcPrm.XDlta // Step size which might be adjusted on the fly
saveStep(&cprm, 0, tmprtr, x, fOld) saveStep(&cprm, 0, tmprtr, x, fOld)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment