Skip to content

Commit ff1a376

Browse files
authored
Add license headers (#241)
1 parent cd24703 commit ff1a376

24 files changed

+124
-6
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2020 Akshay Sharma
1+
Copyright (c) 2020 Akshay Sharma and contributors
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

docs/make.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
using Documenter, DiffOpt, Literate, Test
1+
# Copyright (c) 2020: Akshay Sharma 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+
6+
using Documenter
7+
using DiffOpt
8+
using Literate
9+
using Test
210

311
const _EXAMPLE_DIR = joinpath(@__DIR__, "src", "examples")
412

src/ConicProgram/ConicProgram.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright (c) 2020: Akshay Sharma 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
module ConicProgram
27

38
using LinearAlgebra, SparseArrays

src/DiffOpt.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright (c) 2020: Akshay Sharma 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
module DiffOpt
27

38
using LinearAlgebra

src/QuadraticProgram/QuadraticProgram.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright (c) 2020: Akshay Sharma 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
module QuadraticProgram
27

38
using LinearAlgebra, SparseArrays
@@ -404,7 +409,7 @@ Each solver must implement: `solve_system(solver, LHS, RHS, iterative::Bool)`.
404409
struct LinearAlgebraSolver <: MOI.AbstractOptimizerAttribute end
405410

406411
"""
407-
Default `solve_system` call uses IterativeSolvers or the default linear solve
412+
Default `solve_system` call uses IterativeSolvers or the default linear solve
408413
"""
409414
function solve_system(::Any, LHS, RHS, iterative)
410415
if iterative

src/bridges.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright (c) 2020: Akshay Sharma 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
function MOI.set(
27
model::MOI.ModelLike,
38
attr::ForwardConstraintFunction,

src/bridges_unused.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright (c) 2020: Akshay Sharma 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
function MOI.set(
27
model::MOI.ModelLike,
38
attr::BackwardInVariablePrimal,

src/deprecated.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright (c) 2020: Akshay Sharma 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
@deprecate backward(model) reverse_differentiate!(model) false
27
@deprecate forward(model) forward_differentiate!(model) false
38

src/diff_opt.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright (c) 2020: Akshay Sharma 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
# Constructs a Differentiable Optimizer model from a MOI Optimizer.
27
# Supports `forward_differentiate!` and `reverse_differentiate!` methods for solving and differentiating the model respectectively.
38

src/jump_moi_overloads.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright (c) 2020: Akshay Sharma 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
function MOI.set(model::JuMP.Model, attr::ForwardObjectiveFunction, func::JuMP.AbstractJuMPScalar)
27
JuMP.check_belongs_to_model(func, model)
38
return MOI.set(model, attr, JuMP.moi_function(func))

0 commit comments

Comments
 (0)