Skip to content

Commit f4525da

Browse files
committed
Update
1 parent 1075b1a commit f4525da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/FileFormats/LP/LP.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ end
572572

573573
function _get_variable_from_name(
574574
model::Model{T},
575-
cache::_ReadCache,
575+
cache::_ReadCache{T},
576576
name::String,
577577
) where {T}
578578
current_variable = get(cache.name_to_variable, name, nothing)
@@ -676,8 +676,8 @@ _half(x::Integer) = div(x, 2)
676676

677677
function _parse_function(
678678
f::MOI.ScalarAffineFunction{T},
679-
model::Model,
680-
cache::_ReadCache,
679+
model::Model{T},
680+
cache::_ReadCache{T},
681681
tokens::Vector{String},
682682
) where {T}
683683
N = length(tokens)
@@ -775,7 +775,7 @@ end
775775
function _parse_section(
776776
::typeof(_KW_CONSTRAINTS),
777777
model::Model{T},
778-
cache::_ReadCache,
778+
cache::_ReadCache{T},
779779
line::AbstractString,
780780
) where {T}
781781
# SOS constraints should be in their own "SOS" section, but we can also
@@ -877,7 +877,7 @@ _is_equal_to(token) = token in ("=", "==")
877877
function _parse_section(
878878
::typeof(_KW_BOUNDS),
879879
model::Model{T},
880-
cache::_ReadCache,
880+
cache::_ReadCache{T},
881881
line::AbstractString,
882882
) where {T}
883883
tokens = _tokenize(line)
@@ -1010,7 +1010,7 @@ end
10101010
function _parse_section(
10111011
::typeof(_KW_SOS),
10121012
model::Model{T},
1013-
cache::_ReadCache,
1013+
cache::_ReadCache{T},
10141014
line::AbstractString,
10151015
) where {T}
10161016
# SOS constraints can have all manner of whitespace issues with them.

0 commit comments

Comments
 (0)