Skip to content

Commit cbd6022

Browse files
authored
Fix license headers (#202)
1 parent 20a416c commit cbd6022

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

src/MOI_wrapper.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
# Copyright (c) 2020: Tomás Gutierrez and contributors
12
#
2-
# Helpers
3-
#
3+
# Use of this source code is governed by an MIT-style license that can be found
4+
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
45

56
function _is_variable(v::MOI.VariableIndex)
67
return !_is_parameter(v)

src/parametric_functions.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright (c) 2020: Tomás Gutierrez and contributors
2+
#
3+
# Use of this source code is governed by an MIT-style license that can be found
4+
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
5+
16
abstract type ParametricFunction{T} end
27

38
function _cache_set_constant!(
@@ -16,7 +21,7 @@ function _cache_set_constant!(
1621
end
1722

1823
mutable struct ParametricQuadraticFunction{T} <: ParametricFunction{T}
19-
# helper to efficiently update affine terms
24+
# helper to efficiently update affine terms
2025
affine_data::Dict{MOI.VariableIndex,T}
2126
affine_data_np::Dict{MOI.VariableIndex,T}
2227
# constant * parameter * variable (in this order)
@@ -531,7 +536,7 @@ function _update_cache!(f::ParametricVectorAffineFunction{T}, model) where {T}
531536
end
532537

533538
mutable struct ParametricVectorQuadraticFunction{T}
534-
# helper to efficiently update affine terms
539+
# helper to efficiently update affine terms
535540
affine_data::Dict{Tuple{MOI.VariableIndex,Int},T}
536541
affine_data_np::Dict{Tuple{MOI.VariableIndex,Int},T}
537542
# constant * parameter * variable (in this order)

test/no_free_model.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright (c) 2020: Tomás Gutierrez and contributors
2+
#
3+
# Use of this source code is governed by an MIT-style license that can be found
4+
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
5+
16
MOI.Utilities.@model(
27
NoFreeVariablesModel,
38
(),

0 commit comments

Comments
 (0)