We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14d5af5 commit b71a440Copy full SHA for b71a440
src/FileFormats/LP/LP.jl
@@ -809,7 +809,7 @@ function _parse_section(
809
cache.constraint_name = "R$(cache.num_constraints)"
810
end
811
812
- if cache.indicator === nothing
+ if cache.indicator === nothing && occursin("->", line)
813
if (m = match(r"\s*(.+?)\s*=\s*(0|1)\s*->(.+)", line)) !== nothing
814
z = _get_variable_from_name(model, cache, String(m[1]))
815
cond = m[2] == "0" ? MOI.ACTIVATE_ON_ZERO : MOI.ACTIVATE_ON_ONE
0 commit comments