From 5d11cd694f288194d96bf3afd9e9fe1d181d44d9 Mon Sep 17 00:00:00 2001 From: schillic Date: Sat, 20 Jan 2024 00:36:32 +0000 Subject: [PATCH] Format .jl files --- src/Initialization/init_Javis.jl | 4 ++-- src/Initialization/init_Polyhedra.jl | 12 ++++++------ src/Initialization/init_Symbolics.jl | 12 ++++++------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Initialization/init_Javis.jl b/src/Initialization/init_Javis.jl index b6650c3aad..99a8b04763 100644 --- a/src/Initialization/init_Javis.jl +++ b/src/Initialization/init_Javis.jl @@ -1,8 +1,8 @@ using .Javis: Luxor, background, sethue, Video, Background, Object, render export ground, - luxify, - nfolds + luxify, + nfolds # default canvas background function ground(args...) diff --git a/src/Initialization/init_Polyhedra.jl b/src/Initialization/init_Polyhedra.jl index bf0c29460c..64feb1aee9 100644 --- a/src/Initialization/init_Polyhedra.jl +++ b/src/Initialization/init_Polyhedra.jl @@ -1,32 +1,32 @@ import .Polyhedra: polyhedron export polyhedron, triangulate using .Polyhedra: HRep, VRep, - removehredundancy!, removevredundancy! + removehredundancy!, removevredundancy! function default_polyhedra_backend_1d(N::Type{<:Number}, solver=nothing) return Polyhedra.IntervalLibrary{N}() end function default_polyhedra_backend_nd(N::Type{<:Number}, - solver=default_lp_solver_polyhedra(N)) + solver=default_lp_solver_polyhedra(N)) return Polyhedra.DefaultLibrary{N}(solver) end function default_lp_solver_polyhedra(N::Type{<:AbstractFloat}; - presolve::Bool=true) + presolve::Bool=true) if presolve return JuMP.optimizer_with_attributes(GLPK.Optimizer, - "presolve" => GLPK_ON) + "presolve" => GLPK_ON) else return JuMP.optimizer_with_attributes(GLPK.Optimizer) end end function default_lp_solver_polyhedra(N::Type{<:Rational}; - presolve::Bool=false) + presolve::Bool=false) if presolve return JuMP.optimizer_with_attributes(() -> GLPK.Optimizer(; method=GLPK.EXACT), - "presolve" => GLPK_ON) + "presolve" => GLPK_ON) else return JuMP.optimizer_with_attributes(() -> GLPK.Optimizer(; method=GLPK.EXACT)) end diff --git a/src/Initialization/init_Symbolics.jl b/src/Initialization/init_Symbolics.jl index 46c0a011e0..038c27a08e 100644 --- a/src/Initialization/init_Symbolics.jl +++ b/src/Initialization/init_Symbolics.jl @@ -1,10 +1,10 @@ using .Symbolics: gradient, - simplify, - Num, # variable like, e.g. x[1] - Term, # term like, eg. x[1] + x[2] == 1 - Symbolic, - operation, - arguments + simplify, + Num, # variable like, e.g. x[1] + Term, # term like, eg. x[1] + x[2] == 1 + Symbolic, + operation, + arguments """ _vec(vars)