Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Basic
AbstractScalarSet
orAbstractVectorSet
tosrc/sets.jl
isbitstype(S) == false
, implementBase.copy(set::S)
Ifisbitstype(S) == false
, implementBase.:(==)(x::S, y::S)
AbstractVectorSet
, implementdimension(set::S)
, unless thedimension is given by
set.dimension
.Utilities
If an
AbstractVectorSet
, implementUtilities.set_dot
,unless the dot product between two vectors in the set is equivalent to
LinearAlgebra.dot
If an
AbstractVectorSet
, implementUtilities.set_with_dimension
insrc/Utilities/matrix_of_constraints.jl
@model
macro at the bottom ofsrc/Utilities.model.jl
Documentation
along with an
## Example
block containing ajldoctest
docs/src/reference/standard_form.md
docs/src/manual/standard_form.md
Tests
_set(::Type{S})
method insrc/Test/test_basic_constraint.jl
and add the name of the set to the list at the bottom of that files
test/sets.jl
MathOptFormat
Open an issue athttps://github.com/jump-dev/MathOptFormat
to addsupport for the new set {{ replace with link to the issue }}
Optional
Implementdual_set(::S)
anddual_set_type(::Type{S})
Test
submodule exercising your new setAdd new bridges to convert your set into more commonly used sets