Skip to content

Commit

Permalink
sosub -> soslb
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Nov 6, 2017
1 parent 6499157 commit 9978d13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sos.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ sosmid(s::AbstractDiscreteSwitchedSystem, soslb, sosub, step) = exp(sosmid(log(s
usestep(s::AbstractDiscreteSwitchedSystem, soslb, sosub) = usestep(log(soslb), log(sosub))
#sosmid(s::AbstractContinuousSwitchedSystem, soslb, sosub, step) = sosmid(soslb, sosub, step)

function soslb2lb(s::AbstractDiscreteSwitchedSystem, sosub, d)
function soslb2lb(s::AbstractDiscreteSwitchedSystem, soslb, d)
n = maximum(statedim.(s, states(s)))
η = min(ρA(s), binomial(n+d-1, d))
sosub / η^(1/(2*d))
soslb / η^(1/(2*d))
end
#soslb2lb(s::AbstractContinuousSwitchedSystem, soslb, d) = -Inf

Expand Down

0 comments on commit 9978d13

Please sign in to comment.