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
f1852091
Unverified
Commit
f1852091
authored
6 months ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
Increase max_iter
parent
f311a829
Branches
master
No related tags found
1 merge request
!7
Add variables as properties
Pipeline
#25449
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 @
f1852091
...
...
@@ -129,7 +129,7 @@ function optimise_with_cost_func(jump_model::Model, cost_func, n_attempts)
end
end
function
build_sequence
(
f
::
Function
,
scanner
::
Union
{
Nothing
,
Scanner
},
optimiser_constructor
;
optimise
=
true
,
n_attempts
=
3
0
,
kwargs
...
)
function
build_sequence
(
f
::
Function
,
scanner
::
Union
{
Nothing
,
Scanner
},
optimiser_constructor
;
optimise
=
true
,
n_attempts
=
1
0
,
kwargs
...
)
if
optimise
||
GLOBAL_MODEL
[]
==
IGNORE_MODEL
model
=
(
Model
(
optimizer_with_attributes
(
optimiser_constructor
,
[
string
(
k
)
=>
v
for
(
k
,
v
)
in
kwargs
]
...
)),
...
...
@@ -141,8 +141,8 @@ function build_sequence(f::Function, scanner::Union{Nothing, Scanner}, optimiser
build_sequence
(
f
,
scanner
,
model
,
optimise
,
n_attempts
)
end
function
build_sequence
(
f
::
Function
,
scanner
::
Union
{
Nothing
,
Scanner
}
=
Default_Scanner
;
print_level
=
0
,
mu_strategy
=
"adaptive"
,
kwargs
...
)
build_sequence
(
f
,
scanner
,
Ipopt
.
Optimizer
;
print_level
=
print_level
,
mu_strategy
=
mu_strategy
,
kwargs
...
)
function
build_sequence
(
f
::
Function
,
scanner
::
Union
{
Nothing
,
Scanner
}
=
Default_Scanner
;
print_level
=
0
,
mu_strategy
=
"adaptive"
,
max_iter
=
10000
,
kwargs
...
)
build_sequence
(
f
,
scanner
,
Ipopt
.
Optimizer
;
print_level
=
print_level
,
mu_strategy
=
mu_strategy
,
max_iter
=
max_iter
,
kwargs
...
)
end
build_sequence
(
f
::
Function
,
optimiser_constructor
;
kwargs
...
)
=
build_sequence
(
f
,
Default_Scanner
,
optimiser_constructor
;
kwargs
...
)
...
...
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