1212# done after the model is optimized, so we add function to bypass the
1313# dirty state.
1414
15+ # DEPRECATE
1516function MOI. set (
1617 model:: JuMP.Model ,
1718 attr:: ForwardObjectiveFunction ,
@@ -37,6 +38,7 @@ function MOI.set(
3738 return MOI. set (JuMP. backend (model), attr, allow)
3839end
3940
41+ # DEPRECATE
4042function MOI. set (
4143 model:: JuMP.Model ,
4244 attr:: ForwardObjectiveFunction ,
@@ -45,6 +47,7 @@ function MOI.set(
4547 return MOI. set (model, attr, JuMP. AffExpr (func))
4648end
4749
50+ # DEPRECATE
4851function MOI. set (
4952 model:: JuMP.Model ,
5053 attr:: ForwardConstraintFunction ,
@@ -55,6 +58,7 @@ function MOI.set(
5558 return MOI. set (model, attr, con_ref, JuMP. moi_function (func))
5659end
5760
61+ # DEPRECATE
5862function MOI. set (
5963 model:: JuMP.Model ,
6064 attr:: ForwardConstraintFunction ,
@@ -64,6 +68,7 @@ function MOI.set(
6468 return MOI. set (model, attr, con_ref, JuMP. AffExpr (func))
6569end
6670
71+ # DEPRECATE - then modify
6772function MOI. get (
6873 model:: JuMP.Model ,
6974 attr:: ForwardConstraintDual ,
@@ -74,11 +79,13 @@ function MOI.get(
7479 return JuMP. jump_function (model, moi_func)
7580end
7681
82+ # DEPRECATE - then modify
7783function MOI. get (model:: JuMP.Model , attr:: ReverseObjectiveFunction )
7884 func = MOI. get (JuMP. backend (model), attr)
7985 return JuMP. jump_function (model, func)
8086end
8187
88+ # DEPRECATE - then modify
8289function MOI. get (
8390 model:: JuMP.Model ,
8491 attr:: ReverseConstraintFunction ,
@@ -106,6 +113,7 @@ function _moi_get_result(model::MOI.Utilities.CachingOptimizer, args...)
106113 return MOI. get (model, args... )
107114end
108115
116+ # DEPRECATE
109117function MOI. get (
110118 model:: JuMP.Model ,
111119 attr:: ForwardVariablePrimal ,
@@ -115,6 +123,7 @@ function MOI.get(
115123 return _moi_get_result (JuMP. backend (model), attr, JuMP. index (var_ref))
116124end
117125
126+ # REVIEW
118127function MOI. get (
119128 model:: JuMP.Model ,
120129 attr:: ReverseConstraintSet ,
@@ -134,6 +143,9 @@ function MOI.set(
134143 return MOI. set (JuMP. backend (model), attr, JuMP. index (con_ref), set)
135144end
136145
146+ # there is no set_forward_constraint_set because there is set_forward_parameter
147+
148+ # DEPRECATE
137149function MOI. set (
138150 model:: JuMP.Model ,
139151 attr:: ForwardConstraintSet ,
@@ -255,6 +267,14 @@ function JuMP.coefficient(func::IndexMappedFunction, vi::MOI.VariableIndex)
255267 return JuMP. coefficient (func. func, func. index_map[vi])
256268end
257269
270+ function JuMP. coefficient (
271+ func:: IndexMappedFunction ,
272+ vi:: MOI.VariableIndex ,
273+ output_index:: Int ,
274+ )
275+ return JuMP. coefficient (func. func, func. index_map[vi], output_index)
276+ end
277+
258278function quad_sym_half (
259279 func:: IndexMappedFunction ,
260280 vi1:: MOI.VariableIndex ,
0 commit comments