Skip to content

Commit b5be648

Browse files
committed
Update
1 parent 3009585 commit b5be648

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/FileFormats/MOF/write.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Base.write(io::IO, model::Model)
3232
return
3333
end
3434

35-
function write_variables(object, model::Model)
35+
function write_variables(object::Object, model::Model)
3636
name_map = Dict{MOI.VariableIndex,String}()
3737
for index in MOI.get(model, MOI.ListOfVariableIndices())
3838
variable = moi_to_object(index, model)
@@ -81,10 +81,10 @@ function extract_function_and_set(expr::Expr)
8181
end
8282

8383
function write_nlpblock(
84-
object::T,
84+
object::Object,
8585
model::Model,
8686
name_map::Dict{MOI.VariableIndex,String},
87-
) where {T<:Object}
87+
)
8888
nlp_block = MOI.get(model, MOI.NLPBlock())
8989
if nlp_block === nothing
9090
return
@@ -116,10 +116,10 @@ function write_nlpblock(
116116
end
117117

118118
function write_objective(
119-
object::T,
119+
object::Object,
120120
model::Model,
121121
name_map::Dict{MOI.VariableIndex,String},
122-
) where {T<:Object}
122+
)
123123
if object["objective"][:sense] != "feasibility"
124124
return # Objective must have been written from NLPBlock.
125125
end
@@ -136,7 +136,7 @@ function write_objective(
136136
end
137137

138138
function write_constraints(
139-
object,
139+
object::Object,
140140
model::Model,
141141
name_map::Dict{MOI.VariableIndex,String},
142142
)

0 commit comments

Comments
 (0)