-
Notifications
You must be signed in to change notification settings - Fork 0
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 #4 from psrenergy/px/interface
Update Interface
- Loading branch information
Showing
68 changed files
with
2,317 additions
and
1,635 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
name = "PseudoBooleanOptimization" | ||
uuid = "c8fa9a04-bc42-452d-8558-dc51757be744" | ||
name = "PseudoBooleanOptimization" | ||
uuid = "c8fa9a04-bc42-452d-8558-dc51757be744" | ||
authors = ["pedromxavier <[email protected]>"] | ||
version = "0.1.1" | ||
|
||
[deps] | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
MutableArithmetics = "d8a4904e-b15c-11e9-3269-09a3773c0cb0" | ||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76" | ||
|
||
[compat] | ||
MutableArithmetics = "1.3" | ||
|
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
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,82 @@ | ||
# API Reference | ||
|
||
## Variables | ||
|
||
```@docs | ||
PBO.varlt | ||
PBO.varmul | ||
PBO.varmap | ||
PBO.vargen | ||
PBO.varshow | ||
``` | ||
|
||
## Terms | ||
|
||
```@docs | ||
PBO.term | ||
PBO.term_head | ||
PBO.term_tail | ||
``` | ||
|
||
## Functions | ||
|
||
```@docs | ||
PBO.AbstractPBF | ||
PBO.PBF | ||
PBO.data | ||
``` | ||
|
||
## Analysis | ||
|
||
```@docs | ||
PBO.isconstant | ||
PBO.degree | ||
``` | ||
|
||
```@docs | ||
PBO.lowerbound | ||
PBO.upperbound | ||
PBO.bounds | ||
PBO.mingap | ||
PBO.maxgap | ||
``` | ||
|
||
```@docs | ||
PBO.derivative | ||
PBO.gradient | ||
PBO.residual | ||
``` | ||
|
||
```@docs | ||
PBO.discretize | ||
PBO.discretize! | ||
``` | ||
|
||
```@docs | ||
PBO.relaxedgcd | ||
``` | ||
|
||
## Quadratization | ||
|
||
```@docs | ||
PBO.quadratize | ||
PBO.quadratize! | ||
PBO.infer_quadratization | ||
``` | ||
|
||
```@docs | ||
PBO.INFER | ||
PBO.DEFAULT | ||
PBO.PTR_BG | ||
PBO.NTR_KZFD | ||
``` | ||
|
||
## Synthesis | ||
|
||
```@docs | ||
PBO.wishart | ||
PBO.sherrington_kirkpatrick | ||
PBO.not_all_equal_3sat | ||
PBO.k_regular_k_xorsat | ||
PBO.r_regular_k_xorsat | ||
``` |
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,3 @@ | ||
# PseudoBooleanOptimization.jl Manual | ||
|
||
## Introduction |
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,9 @@ | ||
# Pseudo-Boolean functions | ||
|
||
Let `f: \mathbb{B}^{n} \to \mathbb{R}`. Then `f` can be written as | ||
|
||
```math | ||
f(\mathbf{x}) = \sum_{\omega \subseteq [n]} c_{\omega} \prod_{j \in \omega} x_{j} | ||
``` | ||
|
||
where ``c_{\omega} \in \mathbb{R}`` and ``x_{j} \in \{ 0, 1 \}`` for all ``j \in [n] = \{ 1, \dots, n \}``. |
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,5 @@ | ||
# Operations with pseudo-Boolean functions | ||
|
||
## Arithmetic operations | ||
|
||
The arithmetic operations `+`, `-`, `*`, `/`, `^` are defined for pseudo-Boolean functions. The result of an arithmetic operation is a pseudo-Boolean function. |
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,7 @@ | ||
# Quadratization | ||
|
||
A Quadratization is a mapping ``\mathcal{Q}\{f\}: \mathsrc{F} \to \mathsrc{F}^{2}`` such that | ||
|
||
```math | ||
\min_{\mathbf{y}} \mathsrc{Q}\{f\}(\mathbf{x}, \mathbf{y}) = f(\mathbf{x}) ~\forall \mathbf{x} \in \mathbb{B}^{n}.~\forall f \in \mathsrc{F}. | ||
``` |
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,7 @@ | ||
# Synthetic Problem Generation | ||
|
||
```@example synthesis | ||
import PseudoBooleanOptimization as PBO | ||
f = PBO.wishart(PBO.PBF{Int,Float64}, 3, 5) | ||
``` |
Oops, something went wrong.
f6b09fb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
f6b09fb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/93463
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: