Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ackley_mc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Torda, Prof. Dr. Andrew Ernest
ackley_mc
Commits
14bb4804
Commit
14bb4804
authored
3 years ago
by
Andrew E. Torda
Browse files
Options
Downloads
Patches
Plain Diff
Still cleaning after removing adaptive steps.
parent
c3e9d11c
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
docs/doc.go
+3
-3
3 additions, 3 deletions
docs/doc.go
mc_work/dorun.go
+4
-9
4 additions, 9 deletions
mc_work/dorun.go
ui/input_tab.go
+1
-1
1 addition, 1 deletion
ui/input_tab.go
ui/output_tab.go
+1
-1
1 addition, 1 deletion
ui/output_tab.go
with
10 additions
and
15 deletions
README.md
+
1
−
1
View file @
14bb4804
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
docs/doc.go
+
3
−
3
View file @
14bb4804
This diff is collapsed.
Click to expand it.
mc_work/dorun.go
+
4
−
9
View file @
14bb4804
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
ui/input_tab.go
+
1
−
1
View file @
14bb4804
This diff is collapsed.
Click to expand it.
ui/output_tab.go
+
1
−
1
View file @
14bb4804
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment