Skip to content

Commit fbfe041

Browse files
authored
Add SAGE to doc (#330)
1 parent ec4a296 commit fbfe041

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
# os: ubuntu-latest
2626
# arch: x64
2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v3
2929
- uses: julia-actions/setup-julia@v1
3030
with:
3131
version: ${{ matrix.version }}
@@ -45,6 +45,6 @@ jobs:
4545
with:
4646
depwarn: error
4747
- uses: julia-actions/julia-processcoverage@v1
48-
- uses: codecov/codecov-action@v1
48+
- uses: codecov/codecov-action@v3
4949
with:
5050
file: lcov.info

docs/src/constraints.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,24 @@ PolyJuMP.Bridges.Objective.ToPolynomialBridge
360360
PolyJuMP.Bridges.Constraint.ToPolynomialBridge
361361
```
362362

363+
### SAGE extension
364+
365+
To use the SAGE cone in place of the Sum-of-Squares cone for an inequality constraints
366+
between polynomials, use the following:
367+
```julia
368+
import PolyJuMP
369+
PolyJuMP.setpolymodule!(model, PolyJuMP.SAGE)
370+
```
371+
372+
```@docs
373+
SumOfSquares.PolyJuMP.SAGE.Polynomials
374+
SumOfSquares.PolyJuMP.SAGE.Decomposition
375+
SumOfSquares.PolyJuMP.SAGE.Signomials
376+
SumOfSquares.PolyJuMP.SAGE.DecompositionAttribute
377+
SumOfSquares.PolyJuMP.SAGE.SignomialsBridge
378+
SumOfSquares.PolyJuMP.SAGE.AGEBridge
379+
```
380+
363381
### Internal functions
364382

365383
```@docs

0 commit comments

Comments
 (0)