Skip to content

Commit e9bf3f1

Browse files
authored
Brief guidance on using CachingOptimizer in solver wrappers (#396)
Ref #395
1 parent 1e30cfe commit e9bf3f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/apimanual.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,9 @@ will additionally support `ScalarAffineFunction`-in-`Interval`.
552552

553553
[The interface is designed for multiple dispatch, e.g., attributes, combinations of sets and functions.]
554554

555-
[Avoid storing extra copies of the problem when possible.]
556-
557-
[`copy!`]
555+
Avoid storing extra copies of the problem when possible. This means that solver wrappers should not use
556+
`CachingOptimizer` as part of the wrapper. Instead, just implement `copy!` if the solver's API
557+
does not support an `addvariable!`-like API. Let users or JuMP decide to use `CachingOptimizer` instead.
558558

559559
### JuMP mapping
560560

0 commit comments

Comments
 (0)