Skip to content

Commit 697ec4b

Browse files
authored
Remove warn_attributes (#1534)
1 parent bd22950 commit 697ec4b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/MathOptInterface.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ supports_incremental_interface(::ModelLike, ::Bool) = false
128128
dest::ModelLike,
129129
src::ModelLike;
130130
copy_names::Bool = true,
131-
warn_attributes::Bool = true,
132131
)::IndexMap
133132
134133
Copy the model from `src` into `dest`.
@@ -149,9 +148,8 @@ indices from the `src` model to the corresponding indices in the `dest` model.
149148
* If an [`AbstractModelAttribute`](@ref), [`AbstractVariableAttribute`](@ref),
150149
or [`AbstractConstraintAttribute`](@ref) is set in `src` but not supported by
151150
`dest`, then an [`UnsupportedAttribute`](@ref) error is thrown.
152-
* Unsupported [`AbstractOptimizerAttribute`](@ref)s are treated differently:
153-
* If `warn_attributes == true`, a warning is displayed, otherwise, the
154-
attribute is silently ignored.
151+
152+
[`AbstractOptimizerAttribute`](@ref)s are _not_ copied to the `dest` model.
155153
156154
## IndexMap
157155

0 commit comments

Comments
 (0)