Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MRIBuilder.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michiel Cottaar
MRIBuilder.jl
Commits
9c7c6e20
Verified
Commit
9c7c6e20
authored
1 year ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
update message
parent
8e773891
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/build_sequences.jl
+2
-2
2 additions, 2 deletions
src/build_sequences.jl
with
2 additions
and
2 deletions
src/build_sequences.jl
+
2
−
2
View file @
9c7c6e20
...
@@ -58,11 +58,11 @@ function build_sequence(f::Function, scanner::Union{Nothing, Scanner}, model::Mo
...
@@ -58,11 +58,11 @@ function build_sequence(f::Function, scanner::Union{Nothing, Scanner}, model::Mo
for
attempt
in
1
:
100
for
attempt
in
1
:
100
optimize!
(
model
)
optimize!
(
model
)
if
termination_status
(
model
)
in
(
LOCALLY_SOLVED
,
OPTIMAL
)
if
termination_status
(
model
)
in
(
LOCALLY_SOLVED
,
OPTIMAL
)
println
(
"
Success
after
$
(attempt-1) restarts."
)
println
(
"
Optimisation succeeded
after
$
(attempt-1) restarts."
)
break
break
else
else
old_values
=
value
.
(
all_variables
(
model
))
old_values
=
value
.
(
all_variables
(
model
))
size_kick
=
0.
2
/
attempt
size_kick
=
0.
5
/
attempt
new_values
=
old_values
.*
(
2
.*
size_kick
.*
rand
(
length
(
old_values
))
.+
1.
.-
size_kick
)
new_values
=
old_values
.*
(
2
.*
size_kick
.*
rand
(
length
(
old_values
))
.+
1.
.-
size_kick
)
for
(
var
,
v
)
in
zip
(
all_variables
(
model
),
new_values
)
for
(
var
,
v
)
in
zip
(
all_variables
(
model
),
new_values
)
set_start_value
(
var
,
v
)
set_start_value
(
var
,
v
)
...
...
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