Skip to content
Snippets Groups Projects
Unverified Commit cabad4c4 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Increase default tolerance

parent 9ff2b61a
No related branches found
No related tags found
1 merge request!5Resolve "Allow slice selection"
Pipeline #25014 failed
This commit is part of merge request !5. Comments created here will be created in the context of that merge request.
module BuildSequences
import JuMP: Model, optimizer_with_attributes, optimize!, AbstractJuMPScalar, value, solution_summary, termination_status, LOCALLY_SOLVED, OPTIMAL, num_variables, all_variables, set_start_value, ALMOST_LOCALLY_SOLVED, objective_value, INVALID_MODEL, @variable, @objective, @constraint
import JuMP: Model, optimizer_with_attributes, optimize!, AbstractJuMPScalar, value, solution_summary, termination_status, LOCALLY_SOLVED, OPTIMAL, num_variables, all_variables, set_start_value, ALMOST_LOCALLY_SOLVED, objective_value, INVALID_MODEL, @variable, @objective, @constraint, raw_status
import Ipopt
import Juniper
import ..Scanners: Scanner, gradient_strength, Default_Scanner
......@@ -139,7 +139,7 @@ function build_sequence(f::Function, scanner::Union{Nothing, Scanner}, optimiser
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...)
build_sequence(f, scanner, Ipopt.Optimizer; print_level=print_level, mu_strategy=mu_strategy, tol=1e-12, constr_viol_tol=1e-12, acceptable_constr_viol_tol=1e-6, kwargs...)
end
build_sequence(f::Function, optimiser_constructor; kwargs...) = build_sequence(f, Default_Scanner, optimiser_constructor; kwargs...)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment