From dfac2e9eeb5b0ad920874372335dfa18e8beb30c Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Wed, 11 Sep 2024 13:51:52 +1200 Subject: [PATCH] Add license headers (#51) --- LICENSE.md | 10 +++++----- src/PiecewiseLinearOpt.jl | 5 ++++- src/jump.jl | 5 +++++ src/types.jl | 5 +++++ test/exhaustive-tests.jl | 4 ++++ test/runtests.jl | 5 +++++ 6 files changed, 28 insertions(+), 6 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index 5762dfd..54d2a74 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,17 +1,17 @@ The PiecewiseLinearOpt.jl package is licensed under the MIT "Expat" License: -> Copyright (c) 2016: Joey Huchette. -> +> Copyright (c) 2016: Joey Huchette 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 @@ -19,4 +19,4 @@ The PiecewiseLinearOpt.jl package is licensed under the MIT "Expat" License: > 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/src/PiecewiseLinearOpt.jl b/src/PiecewiseLinearOpt.jl index e3ca131..6646c48 100644 --- a/src/PiecewiseLinearOpt.jl +++ b/src/PiecewiseLinearOpt.jl @@ -1,4 +1,7 @@ -__precompile__() +# Copyright (c) 2016: Joey Huchette 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 PiecewiseLinearOpt diff --git a/src/jump.jl b/src/jump.jl index 1eba2d6..cd79b05 100644 --- a/src/jump.jl +++ b/src/jump.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: Joey Huchette 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. + # TODO: choose method based on problem size defaultmethod() = :Logarithmic diff --git a/src/types.jl b/src/types.jl index 826ee9e..5f86985 100644 --- a/src/types.jl +++ b/src/types.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: Joey Huchette 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. + struct PWLFunction{D} x::Vector{NTuple{D,Float64}} z::Vector{Float64} diff --git a/test/exhaustive-tests.jl b/test/exhaustive-tests.jl index 0238131..4ccac9b 100644 --- a/test/exhaustive-tests.jl +++ b/test/exhaustive-tests.jl @@ -1,3 +1,7 @@ +# Copyright (c) 2016: Joey Huchette 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 Cbc # slow, not recommended # solver = CbcSolver(logLevel=0, integerTolerance=1e-9, primalTolerance=1e-9, ratioGap=1e-8) diff --git a/test/runtests.jl b/test/runtests.jl index 89c463a..8d2b81a 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,3 +1,8 @@ +# Copyright (c) 2016: Joey Huchette 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 Cbc using Test using LinearAlgebra