mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-26 09:00:28 +01:00
small fixes
This commit is contained in:
parent
5349c21034
commit
2cc9444667
@ -68,7 +68,7 @@ solve_in_loop(
|
|||||||
model,
|
model,
|
||||||
wd,
|
wd,
|
||||||
varP,
|
varP,
|
||||||
logdir="./log/r=$HALFRADIUS/Sp($N,Z)/Adj_C₂-InfΔ",
|
logdir="./log/Sp($N,Z)/r=$HALFRADIUS/Adj_C₂-InfΔ",
|
||||||
optimizer=cosmo_optimizer(
|
optimizer=cosmo_optimizer(
|
||||||
eps=1e-10,
|
eps=1e-10,
|
||||||
max_iters=20_000,
|
max_iters=20_000,
|
||||||
|
@ -29,7 +29,7 @@ include("actions/actions.jl")
|
|||||||
function group_algebra(G::Groups.Group, S=gens(G); halfradius::Integer, twisted::Bool)
|
function group_algebra(G::Groups.Group, S=gens(G); halfradius::Integer, twisted::Bool)
|
||||||
S = union!(S, inv.(S))
|
S = union!(S, inv.(S))
|
||||||
@info "generating wl-metric ball of radius $(2halfradius)"
|
@info "generating wl-metric ball of radius $(2halfradius)"
|
||||||
@time E, sizes = Groups.wlmetric_ball_serial(S, radius=2halfradius)
|
@time E, sizes = Groups.wlmetric_ball(S, radius=2halfradius)
|
||||||
@info "sizes = $(sizes)"
|
@info "sizes = $(sizes)"
|
||||||
@info "computing the *-algebra structure for G"
|
@info "computing the *-algebra structure for G"
|
||||||
@time RG = StarAlgebras.StarAlgebra{twisted}(
|
@time RG = StarAlgebras.StarAlgebra{twisted}(
|
||||||
|
@ -39,7 +39,6 @@ function solve(m::JuMP.Model, optimizer, warmstart=nothing)
|
|||||||
m = setwarmstart!(m, warmstart)
|
m = setwarmstart!(m, warmstart)
|
||||||
|
|
||||||
JuMP.optimize!(m)
|
JuMP.optimize!(m)
|
||||||
Base.Libc.flush_cstdio()
|
|
||||||
|
|
||||||
status = JuMP.termination_status(m)
|
status = JuMP.termination_status(m)
|
||||||
|
|
||||||
@ -55,6 +54,7 @@ function solve(solverlog::String, m::JuMP.Model, optimizer, warmstart=nothing)
|
|||||||
status, warmstart = open(solverlog, "a+") do logfile
|
status, warmstart = open(solverlog, "a+") do logfile
|
||||||
redirect_stdout(logfile) do
|
redirect_stdout(logfile) do
|
||||||
status, warmstart = solve(m, optimizer, warmstart)
|
status, warmstart = solve(m, optimizer, warmstart)
|
||||||
|
Base.Libc.flush_cstdio()
|
||||||
status, warmstart
|
status, warmstart
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user