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
f311a829
Unverified
Commit
f311a829
authored
6 months ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
Return sequence even if cost function is still fractionally decreasing
parent
8a875db7
No related branches found
No related tags found
1 merge request
!7
Add variables as properties
Pipeline
#25448
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
+3
-3
3 additions, 3 deletions
src/build_sequences.jl
with
3 additions
and
3 deletions
src/build_sequences.jl
+
3
−
3
View file @
f311a829
...
...
@@ -116,10 +116,10 @@ function optimise_with_cost_func(jump_model::Model, cost_func, n_attempts)
end
optimize!
(
jump_model
)
if
termination_status
(
jump_model
)
in
(
LOCALLY_SOLVED
,
OPTIMAL
)
if
objective_value
(
jump_model
)
<
min_objective
min_objective
=
objective_value
(
jump_model
)
elseif
isapprox
(
min_objective
,
objective_value
(
jump_model
),
rtol
=
1e-6
)
if
isapprox
(
min_objective
,
objective_value
(
jump_model
),
rtol
=
1e-6
)
break
elseif
objective_value
(
jump_model
)
<
min_objective
min_objective
=
objective_value
(
jump_model
)
end
end
end
...
...
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