Skip to content

Test DualStatus #1411

@blegat

Description

@blegat

If config.duals is false, we should probably check that DualStatus is NO_SOLUTION. With DeprecatedTests, this isn't really an option since that would isallow solvers that supports duals to run tests without duals.
With the new tests, they can exclude the DualStatus attribute in addition to setting duals to false.
In fact, the docstring might also say that this is a mandatory attribute that should return NO_SOLUTION in case duals are not supported. It's kind of implicit but for a constraint programming solver for instance, it may be unclear that you actually need to implement this:

DualStatus(result_index::Int = 1)
A model attribute for the `ResultStatusCode` of the dual result `result_index`.
If `result_index` is omitted, it defaults to 1.
See [`ResultCount`](@ref) for information on how the results are ordered.
If `result_index` is larger than the value of [`ResultCount`](@ref) then
`NO_SOLUTION` is returned.

See jump-dev/NLopt.jl#169

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions