Skip to content

Commit 2fa1210

Browse files
committed
Set ?linearitydetected = true in detect?linearity!
1 parent d385984 commit 2fa1210

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/polyhedron.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ function getine(p::Polyhedron)
5555
else
5656
p.ine = LiftedHRepresentation(getextm(p, :Fresh))
5757
p.inem = nothing
58-
p.hlinearitydetected = true
59-
p.noredundantinequality = true
6058
end
6159
end
6260
return p.ine
@@ -74,8 +72,6 @@ function getext(p::Polyhedron)
7472
else
7573
p.ext = LiftedVRepresentation(getinem(p, :Fresh))
7674
p.extm = nothing
77-
p.vlinearitydetected = true
78-
p.noredundantgenerator = true
7975
end
8076
end
8177
return p.ext
@@ -154,7 +150,7 @@ function Polyhedra.detecthlinearity!(p::Polyhedron)
154150
p.inem = nothing
155151
p.ine = nothing
156152
getine(p)
157-
# getine sets hlinearity as detected and no redundant ineq.
153+
p.hlinearitydetected = true
158154
end
159155
end
160156
function Polyhedra.detectvlinearity!(p::Polyhedron)
@@ -163,7 +159,7 @@ function Polyhedra.detectvlinearity!(p::Polyhedron)
163159
p.extm = nothing
164160
p.ext = nothing
165161
getext(p)
166-
# getext sets vlinearity as detected and no redundant gen.
162+
p.vlinearitydetected = true
167163
end
168164
end
169165
function Polyhedra.removehredundancy!(p::Polyhedron)

0 commit comments

Comments
 (0)