Skip to content

Commit

Permalink
Add docs and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Nov 26, 2020
1 parent 3da0ddf commit 427a408
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
16 changes: 11 additions & 5 deletions docs/src/apireference.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,6 @@ Silent
TimeLimitSec
RawParameter
NumberOfThreads
AbstractCallback
LazyConstraintCallback
HeuristicCallback
UserCutCallback
```

List of attributes useful for optimizers
Expand All @@ -168,6 +164,17 @@ PrimalStatus
DualStatus
```

Attributes relating to solver callbacks:

```@docs
AbstractCallback
LazyConstraintCallback
HeuristicCallback
UserCutCallback
CallbackNodeStatus
CallbackNodeStatusCode
CallbackVariablePrimal
```
### Termination Status

The `TerminationStatus` attribute indicates why the optimizer stopped executing.
Expand Down Expand Up @@ -258,7 +265,6 @@ Calls to `get` and `set` should include as an argument a single `VariableIndex`
VariableName
VariablePrimalStart
VariablePrimal
CallbackVariablePrimal
```

### Constraints
Expand Down
1 change: 1 addition & 0 deletions test/attributes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@test MOI.is_set_by_optimize(MOI.TerminationStatus())
@test !MOI.is_set_by_optimize(MOI.ConstraintSet())
@test !MOI.is_set_by_optimize(MOI.ObjectiveSense())
@test MOI.is_set_by_optimize(MOI.CallbackNodeStatus(1))
end
@testset "is_copyable" begin
@test !MOI.is_copyable(MOI.TerminationStatus())
Expand Down

0 comments on commit 427a408

Please sign in to comment.