From 59a3f0ff086ced9e25f902b1acb61ea8e8591abc Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Wed, 20 May 2026 13:30:16 +1200 Subject: [PATCH] Add a LICENSE.md --- LICENSE.md | 21 ++++++++++++++++++++ ext/MathOptComplementsJuMPExt.jl | 5 +++++ src/Bridges/Bridges.jl | 5 +++++ src/Bridges/complements_vectorize_bridge.jl | 5 +++++ src/Bridges/flip_sign_bridge.jl | 5 +++++ src/Bridges/nonlinear.jl | 5 +++++ src/Bridges/specify_set_type_bridge.jl | 5 +++++ src/Bridges/split_interval_bridge.jl | 5 +++++ src/Bridges/to_sos1_bridge.jl | 5 +++++ src/Bridges/vertical.jl | 5 +++++ src/MOI_wrapper.jl | 5 +++++ src/MathOptComplements.jl | 5 +++++ src/attributes.jl | 5 +++++ src/sets.jl | 5 +++++ src/utils.jl | 4 ++++ test/Bridges/complements_vectorize_bridge.jl | 5 +++++ test/Bridges/flip_sign_bridge.jl | 5 +++++ test/Bridges/nonlinear.jl | 5 +++++ test/Bridges/runtests.jl | 5 +++++ test/Bridges/specify_set_type_bridge.jl | 5 +++++ test/Bridges/split_interval_bridge.jl | 5 +++++ test/Bridges/to_sos1_bridge.jl | 5 +++++ test/Bridges/vertical.jl | 5 +++++ test/instances.jl | 4 ++++ test/runtests.jl | 5 +++++ 25 files changed, 139 insertions(+) create mode 100644 LICENSE.md diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..59baf76 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/ext/MathOptComplementsJuMPExt.jl b/ext/MathOptComplementsJuMPExt.jl index 1074c0c..f645730 100644 --- a/ext/MathOptComplementsJuMPExt.jl +++ b/ext/MathOptComplementsJuMPExt.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + module MathOptComplementsJuMPExt import MathOptComplements diff --git a/src/Bridges/Bridges.jl b/src/Bridges/Bridges.jl index d81f802..1cdded8 100644 --- a/src/Bridges/Bridges.jl +++ b/src/Bridges/Bridges.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + module Bridges import MathOptInterface as MOI diff --git a/src/Bridges/complements_vectorize_bridge.jl b/src/Bridges/complements_vectorize_bridge.jl index 115a745..cdef5f6 100644 --- a/src/Bridges/complements_vectorize_bridge.jl +++ b/src/Bridges/complements_vectorize_bridge.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + """ ComplementsVectorizeBridge{T,F,S,SV} <: MOI.Bridges.Constraint.AbstractBridge diff --git a/src/Bridges/flip_sign_bridge.jl b/src/Bridges/flip_sign_bridge.jl index 4c3719c..e39ac32 100644 --- a/src/Bridges/flip_sign_bridge.jl +++ b/src/Bridges/flip_sign_bridge.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + """ FlipSignBridge{T,F,S1,S2} <: MOI.Bridges.Constraint.AbstractBridge diff --git a/src/Bridges/nonlinear.jl b/src/Bridges/nonlinear.jl index 3aceee3..879d715 100644 --- a/src/Bridges/nonlinear.jl +++ b/src/Bridges/nonlinear.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + """ NonlinearBridge{T,S} <: MOI.Bridges.Constraint.AbstractBridge diff --git a/src/Bridges/specify_set_type_bridge.jl b/src/Bridges/specify_set_type_bridge.jl index 41ef610..c07edd6 100644 --- a/src/Bridges/specify_set_type_bridge.jl +++ b/src/Bridges/specify_set_type_bridge.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + """ SpecifySetTypeBridge{T} <: MOI.Bridges.Constraint.AbstractBridge diff --git a/src/Bridges/split_interval_bridge.jl b/src/Bridges/split_interval_bridge.jl index adbf19b..bc68970 100644 --- a/src/Bridges/split_interval_bridge.jl +++ b/src/Bridges/split_interval_bridge.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + """ SplitIntervalBridge{T,G} <: MOI.Bridges.Constraint.AbstractBridge diff --git a/src/Bridges/to_sos1_bridge.jl b/src/Bridges/to_sos1_bridge.jl index a1a025b..57055cb 100644 --- a/src/Bridges/to_sos1_bridge.jl +++ b/src/Bridges/to_sos1_bridge.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + """ ToSOS1Bridge{T} <: MOI.Bridges.Constraint.AbstractBridge diff --git a/src/Bridges/vertical.jl b/src/Bridges/vertical.jl index 7426750..40a5ba6 100644 --- a/src/Bridges/vertical.jl +++ b/src/Bridges/vertical.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + """ VerticalBridge{T,S} <: MOI.Bridges.Constraint.AbstractBridge diff --git a/src/MOI_wrapper.jl b/src/MOI_wrapper.jl index 6d8ed59..58471fe 100644 --- a/src/MOI_wrapper.jl +++ b/src/MOI_wrapper.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + mutable struct Optimizer{T,O<:MOI.ModelLike} <: MOI.Bridges.AbstractBridgeOptimizer model::O # This need to be called `model` by convention of `AbstractBridgeOptimizer` reformulation::AbstractComplementarityRelaxation diff --git a/src/MathOptComplements.jl b/src/MathOptComplements.jl index 4941131..17f65e2 100644 --- a/src/MathOptComplements.jl +++ b/src/MathOptComplements.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + module MathOptComplements import MathOptInterface as MOI diff --git a/src/attributes.jl b/src/attributes.jl index 28aaaeb..cf5f572 100644 --- a/src/attributes.jl +++ b/src/attributes.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + """ AbstractComplementarityRelaxation diff --git a/src/sets.jl b/src/sets.jl index fabf0a4..a0aff53 100644 --- a/src/sets.jl +++ b/src/sets.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + """ ComplementsWithSetType{S<:MOI.AbstractSet} <: MOI.AbstractVectorSet diff --git a/src/utils.jl b/src/utils.jl index f087427..2817c22 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -1,3 +1,7 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. function _remove_bounds!(model::MOI.ModelLike, x::MOI.VariableIndex) for cidx in [ diff --git a/test/Bridges/complements_vectorize_bridge.jl b/test/Bridges/complements_vectorize_bridge.jl index c3eeee3..f535916 100644 --- a/test/Bridges/complements_vectorize_bridge.jl +++ b/test/Bridges/complements_vectorize_bridge.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + using Test using JuMP using MathOptComplements diff --git a/test/Bridges/flip_sign_bridge.jl b/test/Bridges/flip_sign_bridge.jl index 65c6576..90d32e2 100644 --- a/test/Bridges/flip_sign_bridge.jl +++ b/test/Bridges/flip_sign_bridge.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + using Test using JuMP using MathOptComplements diff --git a/test/Bridges/nonlinear.jl b/test/Bridges/nonlinear.jl index 2f93ca4..520cb7f 100644 --- a/test/Bridges/nonlinear.jl +++ b/test/Bridges/nonlinear.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + using Test using JuMP using MathOptComplements diff --git a/test/Bridges/runtests.jl b/test/Bridges/runtests.jl index 65aaf80..29f3660 100644 --- a/test/Bridges/runtests.jl +++ b/test/Bridges/runtests.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + using Test files_to_exclude = ["runtests.jl"] diff --git a/test/Bridges/specify_set_type_bridge.jl b/test/Bridges/specify_set_type_bridge.jl index 3e7e05f..1ff4fdb 100644 --- a/test/Bridges/specify_set_type_bridge.jl +++ b/test/Bridges/specify_set_type_bridge.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + using Test using JuMP using MathOptComplements diff --git a/test/Bridges/split_interval_bridge.jl b/test/Bridges/split_interval_bridge.jl index 60bbf75..8dad3f5 100644 --- a/test/Bridges/split_interval_bridge.jl +++ b/test/Bridges/split_interval_bridge.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + using Test using JuMP using MathOptComplements diff --git a/test/Bridges/to_sos1_bridge.jl b/test/Bridges/to_sos1_bridge.jl index c06198b..29f7747 100644 --- a/test/Bridges/to_sos1_bridge.jl +++ b/test/Bridges/to_sos1_bridge.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + using Test using JuMP using MathOptComplements diff --git a/test/Bridges/vertical.jl b/test/Bridges/vertical.jl index b3f6068..d2a3b87 100644 --- a/test/Bridges/vertical.jl +++ b/test/Bridges/vertical.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + using Test using JuMP using MathOptComplements diff --git a/test/instances.jl b/test/instances.jl index 684a11c..ae7931b 100644 --- a/test/instances.jl +++ b/test/instances.jl @@ -1,3 +1,7 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. using JuMP diff --git a/test/runtests.jl b/test/runtests.jl index 1b12b46..362e74a 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2025 François Pacaud, Benoît Legat, and contributors +# +# Use of this source code is governed by an MIT-style license that can be found +# in the LICENSE.md file or at https://opensource.org/licenses/MIT. + module Instances include("instances.jl")