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
1c76d10b
Unverified
Commit
1c76d10b
authored
6 months ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
BF: allow tiny leeway in previous cost functions to improve robustness
parent
b85a9aae
No related branches found
Branches containing commit
No related tags found
1 merge request
!8
Make optimisation more robust
Pipeline
#25452
failed
6 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/build_sequences.jl
+1
-1
1 addition, 1 deletion
src/build_sequences.jl
with
1 addition
and
1 deletion
src/build_sequences.jl
+
1
−
1
View file @
1c76d10b
...
@@ -78,7 +78,7 @@ function build_sequence(f::Function, scanner::Union{Nothing, Scanner}, model::Tu
...
@@ -78,7 +78,7 @@ function build_sequence(f::Function, scanner::Union{Nothing, Scanner}, model::Tu
prev_cost_func
=
nothing
prev_cost_func
=
nothing
for
cost_func
in
iterate_cost
()
for
cost_func
in
iterate_cost
()
if
!
isnothing
(
prev_cost_func
)
if
!
isnothing
(
prev_cost_func
)
@constraint
jump_model
prev_cost_func
=
=
objective_value
(
jump_model
)
@constraint
jump_model
prev_cost_func
<
=
objective_value
(
jump_model
)
+
(
1
+
1e-12
)
end
end
optimise_with_cost_func
(
jump_model
,
cost_func
,
n_attempts
)
optimise_with_cost_func
(
jump_model
,
cost_func
,
n_attempts
)
prev_cost_func
=
cost_func
prev_cost_func
=
cost_func
...
...
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