Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/developer/checklists.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Use this checklist when updating the version of MathOptFormat.
- [ ] New sets are added to the `@enum` in `src/FileFormats/MOF/read.jl`
- [ ] `set_to_moi` is defined for each set in `src/FileFormats/MOF/read.jl`
- [ ] `head_name` is defined for each set in `src/FileFormats/MOF/write.jl`
- [ ] A new unit test calling `_test_model_equality` is aded to
- [ ] A new unit test calling `_test_model_equality` is added to
`test/FileFormats/MOF/MOF.jl`

## Tests
Expand Down
4 changes: 2 additions & 2 deletions src/FileFormats/NL/NLExpr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ include("opcode.jl")
"""
_JULIA_TO_AMPL

This dictionary is manualy curated, based on the list of opcodes in `opcode.jl`.
This dictionary is manually curated, based on the list of opcodes in `opcode.jl`.

The goal is to map Julia functions to their AMPL opcode equivalent.

Expand Down Expand Up @@ -105,7 +105,7 @@ const _JULIA_TO_AMPL = Dict{Symbol,Int}(
"""
_AMPL_TO_JULIA

This dictionary is manualy curated, based on the list of supported opcodes
This dictionary is manually curated, based on the list of supported opcodes
`_JULIA_TO_AMPL`.

The goal is to map AMPL opcodes to their Julia equivalents. In addition, we need
Expand Down
2 changes: 1 addition & 1 deletion src/Nonlinear/ReverseAD/forward_over_reverse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const TAG = :ReverseAD
"""
const MAX_CHUNK::Int = 10

An upper bound on the chunk sie for forward-over-reverse. Increasing this could
An upper bound on the chunk size for forward-over-reverse. Increasing this could
improve performance at the cost of extra memory allocation. It has been 10 for a
long time, and nobody seems to have complained.
"""
Expand Down
2 changes: 1 addition & 1 deletion src/Nonlinear/ReverseAD/graph_tools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
moi_index_to_consecutive_index::Dict{MOI.VariableIndex,Int},
)

Return a new `Vector{Nonlinear.Node}` where all occurences of
Return a new `Vector{Nonlinear.Node}` where all occurrences of
`NODE_MOI_VARIABLE` are replaced by `NODE_VARIABLE` that is 1-indexed and
ordered.
"""
Expand Down
2 changes: 1 addition & 1 deletion src/Nonlinear/SymbolicAD/SymbolicAD.jl
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ Return an expression representing the partial derivative of `f` with respect to
## Expression swelling

With few exceptions, the algorithm used to compute the derivative does not
perform simplications. As a result, the returned expression may contain terms
perform simplifications. As a result, the returned expression may contain terms
like `*(false, g)` that can be trivially simplified to `false`.

In most cases, you should call `simplify!(derivative(f, x))` to return a
Expand Down
2 changes: 1 addition & 1 deletion src/Test/test_linear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,7 @@ st w + z == 1
w, z >= 0
sol: z = 1, w = 0
```
Then it tranforms problem into:
Then it transforms problem into:
```
min x + y
st x + y >= 1
Expand Down
2 changes: 1 addition & 1 deletion src/Utilities/matrix_of_constraints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ function_constants(b::Vector, rows) = b[rows]
set_with_dimension(::Type{S}, dim) where {S<:MOI.AbstractVectorSet}

Returns the instance of `S` of [`MOI.dimension`](@ref) `dim`.
This needs to be implemented for sets of type `S` to be useable with
This needs to be implemented for sets of type `S` to be usable with
[`MatrixOfConstraints`](@ref).
"""
function set_with_dimension(::Type{S}, dim) where {S<:MOI.AbstractVectorSet}
Expand Down
2 changes: 1 addition & 1 deletion src/Utilities/results.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"""
is_ray(status::MOI.ResultStatusCode)

Returnn `true` if `status` is `INFEASIBILITY_CERTIFICATE` or
Return `true` if `status` is `INFEASIBILITY_CERTIFICATE` or
`NEARLY_INFEASIBILITY_CERTIFICATE`.
"""
function is_ray(status::MOI.ResultStatusCode)
Expand Down
14 changes: 7 additions & 7 deletions src/attributes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,7 @@ solution `result_index`.

## PrimalStatus

Before quering this attribute you should first check [`PrimalStatus`](@ref) to
Before querying this attribute you should first check [`PrimalStatus`](@ref) to
confirm that a primal solution is available.

If the [`PrimalStatus`](@ref) is [`NO_SOLUTION`](@ref) the result of querying
Expand Down Expand Up @@ -1707,7 +1707,7 @@ the dual solution `result_index`.

## DualStatus

Before quering this attribute you should first check [`DualStatus`](@ref) to
Before querying this attribute you should first check [`DualStatus`](@ref) to
confirm that a dual solution is available.

If the [`DualStatus`](@ref) is [`NO_SOLUTION`](@ref) the result of querying
Expand Down Expand Up @@ -2092,7 +2092,7 @@ An [`AbstractVariableAttribute`](@ref) for the variable's primal value in result

## PrimalStatus

Before quering this attribute you should first check [`PrimalStatus`](@ref) to
Before querying this attribute you should first check [`PrimalStatus`](@ref) to
confirm that a primal solution is available.

If the [`PrimalStatus`](@ref) is [`NO_SOLUTION`](@ref) the result of querying
Expand Down Expand Up @@ -2183,7 +2183,7 @@ variable in result `result_index`, with respect to a basic solution.

## PrimalStatus

Before quering this attribute you should first check [`PrimalStatus`](@ref) to
Before querying this attribute you should first check [`PrimalStatus`](@ref) to
confirm that a primal solution is available.

If the [`PrimalStatus`](@ref) is [`NO_SOLUTION`](@ref) the result of querying
Expand Down Expand Up @@ -2386,7 +2386,7 @@ due to numerical tolerances they may not be identical.)

## PrimalStatus

Before quering this attribute you should first check [`PrimalStatus`](@ref) to
Before querying this attribute you should first check [`PrimalStatus`](@ref) to
confirm that a primal solution is available.

If the [`PrimalStatus`](@ref) is [`NO_SOLUTION`](@ref) the result of querying
Expand Down Expand Up @@ -2432,7 +2432,7 @@ result `result_index`.

## DualStatus

Before quering this attribute you should first check [`DualStatus`](@ref) to
Before querying this attribute you should first check [`DualStatus`](@ref) to
confirm that a dual solution is available.

If the [`DualStatus`](@ref) is [`NO_SOLUTION`](@ref) the result of querying
Expand Down Expand Up @@ -3386,7 +3386,7 @@ Both values are useful in different circumstances.

## DualStatus

Before quering this attribute you should first check [`DualStatus`](@ref) to
Before querying this attribute you should first check [`DualStatus`](@ref) to
confirm that a dual solution is available.

If the [`DualStatus`](@ref) is [`NO_SOLUTION`](@ref) the result of querying
Expand Down
2 changes: 1 addition & 1 deletion src/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ term_pair(t::ScalarQuadraticTerm) = term_indices(t) => coefficient(t)
quadratic_terms::Vector{ScalarQuadraticTerm{T}},
affine_terms::Vector{ScalarAffineTerm{T}},
constant::T,
) wher {T}
) where {T}

The scalar-valued quadratic function ``\\frac{1}{2}x^\\top Q x + a^\\top x + b``,
where:
Expand Down
4 changes: 2 additions & 2 deletions src/sets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,7 @@ end
The (vectorized) cone of Hermitian positive semidefinite matrices, with
non-negative `side_dimension` rows and columns.

Becaue the matrix is Hermitian, the diagonal elements are real, and the
Because the matrix is Hermitian, the diagonal elements are real, and the
complex-valued lower triangular entries are obtained as the conjugate of
corresponding upper triangular entries.

Expand Down Expand Up @@ -2424,7 +2424,7 @@ end
CountGreaterThan(dimension::Int)

The set ``\\{(c, y, x) \\in \\mathbb{Z}^{1+1+d}\\}``, such that `c` is strictly
greater than the number of occurences of `y` in `x` and `dimension = 1 + 1 + d`.
greater than the number of occurrences of `y` in `x` and `dimension = 1 + 1 + d`.

## Also known as

Expand Down
Loading