@@ -32,7 +32,7 @@ function Base.write(io::IO, model::Model)
3232 return
3333end
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)
8181end
8282
8383function 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(
116116end
117117
118118function 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(
136136end
137137
138138function write_constraints (
139- object,
139+ object:: Object ,
140140 model:: Model ,
141141 name_map:: Dict{MOI.VariableIndex,String} ,
142142)
0 commit comments