fix typos
This commit is contained in:
parent
b45adc2e00
commit
7dd061cdb7
8
main.jl
8
main.jl
@ -20,7 +20,7 @@ function summarize(sett::PropertyT.Settings)
|
|||||||
info("Solver: $(sett.solver)")
|
info("Solver: $(sett.solver)")
|
||||||
end
|
end
|
||||||
|
|
||||||
function Settings(Gr::PropertyTGroup, args, solver):
|
function Settings(Gr::PropertyTGroup, args, solver)
|
||||||
r = get(args, "radius", 2)
|
r = get(args, "radius", 2)
|
||||||
gr_name = PropertyTGroups.name(Gr)*"_r$r"
|
gr_name = PropertyTGroups.name(Gr)*"_r$r"
|
||||||
G = PropertyTGroups.group(Gr)
|
G = PropertyTGroups.group(Gr)
|
||||||
@ -32,14 +32,14 @@ function Settings(Gr::PropertyTGroup, args, solver):
|
|||||||
ws = get(args, "warmstart", false)
|
ws = get(args, "warmstart", false)
|
||||||
|
|
||||||
if get(args, "nosymmetry", false)
|
if get(args, "nosymmetry", false)
|
||||||
|
return PropertyT.Settings(gr_name, G, S, r, sol, ub, tol, ws)
|
||||||
|
else
|
||||||
autS = PropertyTGroups.autS(Gr)
|
autS = PropertyTGroups.autS(Gr)
|
||||||
return PropertyT.Settings(gr_name, G, S, r, sol, ub, tol, ws, autS)
|
return PropertyT.Settings(gr_name, G, S, r, sol, ub, tol, ws, autS)
|
||||||
else
|
|
||||||
return PropertyT.Settings(gr_name, G, S, r, sol, ub, tol, ws)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function main(::PropertyTGroup, sett::Property.Settings)
|
function main(::PropertyTGroup, sett::PropertyT.Settings)
|
||||||
isdir(PropertyT.fullpath(sett)) || mkpath(PropertyT.fullpath(sett))
|
isdir(PropertyT.fullpath(sett)) || mkpath(PropertyT.fullpath(sett))
|
||||||
|
|
||||||
summarize(sett)
|
summarize(sett)
|
||||||
|
4
run.jl
4
run.jl
@ -98,8 +98,8 @@ solver(tol, iterations) =
|
|||||||
# SDPA.SDPASolver(epsilonStar=tol, epsilonDash=tol)
|
# SDPA.SDPASolver(epsilonStar=tol, epsilonDash=tol)
|
||||||
|
|
||||||
const Gr = PropertyTGroups.PropertyTGroup(PARSEDARGS)
|
const Gr = PropertyTGroups.PropertyTGroup(PARSEDARGS)
|
||||||
const sett = PropertyT.Settings(PARSEDARGS, Gr,
|
const sett = PropertyT.Settings(Gr, PARSEDARGS,
|
||||||
solver(args["tol"], args["iterations"]))
|
solver(PARSEDARGS["tol"], PARSEDARGS["iterations"]))
|
||||||
|
|
||||||
fullpath = PropertyT.fullpath(sett)
|
fullpath = PropertyT.fullpath(sett)
|
||||||
isdir(fullpath) || mkpath(fullpath)
|
isdir(fullpath) || mkpath(fullpath)
|
||||||
|
Loading…
Reference in New Issue
Block a user