@@ -205,7 +205,7 @@ An abstract supertype for structs which specify partial modifications to functio
205
205
abstract type AbstractFunctionModification end
206
206
207
207
"""
208
- ScalarConstantChange{T}(new_constant)
208
+ ScalarConstantChange{T}(new_constant::T )
209
209
210
210
A struct used to request a change in the constant term of a scalar-valued function.
211
211
Applicable to `ScalarAffineFunction` and `ScalarQuadraticFunction`.
@@ -215,7 +215,7 @@ struct ScalarConstantChange{T} <: AbstractFunctionModification
215
215
end
216
216
217
217
"""
218
- VectorConstantChange{T}(new_constant)
218
+ VectorConstantChange{T}(new_constant::Vector{T} )
219
219
220
220
A struct used to request a change in the constant vector of a vector-valued function.
221
221
Applicable to `VectorAffineFunction` and `VectorQuadraticFunction`.
@@ -225,7 +225,7 @@ struct VectorConstantChange{T} <: AbstractFunctionModification
225
225
end
226
226
227
227
"""
228
- ScalarCoefficientChange{T}(variable, new_coefficient)
228
+ ScalarCoefficientChange{T}(variable::VariableIndex , new_coefficient::T )
229
229
230
230
A struct used to request a change in the linear coefficient of a single variable
231
231
in a scalar-valued function.
241
241
# allocates, and it is desirable to provide a zero-allocation option for working with
242
242
# MultiRowChanges. See https://github.com/JuliaOpt/MathOptInterface.jl/pull/343.
243
243
"""
244
- MultirowChange{T}(variable, new_coefficients)
244
+ MultirowChange{T}(variable::VariableIndex , new_coefficients::Vector{Tuple{Int64, T}} )
245
245
246
246
A struct used to request a change in the linear coefficients of a single
247
247
variable in a vector-valued function. New coefficients are specified by
0 commit comments