From 3e6a1dde511f68446a604bc65dce42b7ffdd1291 Mon Sep 17 00:00:00 2001 From: kalmarek Date: Mon, 14 Jan 2019 17:44:13 +0100 Subject: [PATCH] rework Settings --- src/1712.07167.jl | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/1712.07167.jl b/src/1712.07167.jl index cbe5dd8..a051f48 100644 --- a/src/1712.07167.jl +++ b/src/1712.07167.jl @@ -32,16 +32,14 @@ struct Symmetrized{El} <: Settings end function Settings(name::String, - G::Group, S::Vector{GEl}, - radius::Integer, upper_bound::Float64, - solver::Solver, warmstart=true) where {GEl<:GroupElem, Solver<:AbstractMathProgSolver} + G::Group, S::Vector{<:GroupElem},solver::Solver; + radius::Integer=2, upper_bound::Float64=1.0, warmstart=true) where {Solver<:AbstractMathProgSolver} return Naive(name, G, S, radius, upper_bound, solver, warmstart) end function Settings(name::String, - G::Group, S::Vector{GEl}, autS::Group, - radius::Integer, upper_bound::Float64, - solver::Solver, warmstart=true) where {GEl<:GroupElem, Solver<:AbstractMathProgSolver} + G::Group, S::Vector{<:GroupElem}, autS::Group, solver::Solver; + radius::Integer=2, upper_bound::Float64=1.0, warmstart=true) where {Solver<:AbstractMathProgSolver} return Symmetrized(name, G, S, autS, radius, upper_bound, solver, warmstart) end