-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from dahong67/dahong67/issue24
Setup system for constraints
- Loading branch information
Showing
4 changed files
with
98 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## Constraint types | ||
|
||
module GCPConstraints | ||
|
||
# Abstract type | ||
|
||
""" | ||
AbstractConstraint | ||
Abstract type for GCP constraints on the factor matrices `U = (U[1],...,U[N])`. | ||
""" | ||
abstract type AbstractConstraint end | ||
|
||
# Concrete types | ||
|
||
""" | ||
LowerBound(value::Real) | ||
Lower-bound constraint on the entries of the factor matrices | ||
`U = (U[1],...,U[N])`, i.e., `U[i][j,k] >= value`. | ||
""" | ||
struct LowerBound{T} <: AbstractConstraint | ||
value::T | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters