Skip to content

Commit 10e1615

Browse files
committed
v0.9 updates
1 parent e4d2c48 commit 10e1615

6 files changed

Lines changed: 15 additions & 10 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ClarabelDocs"
22
uuid = "5bffead5-e986-4d40-a894-38d9eb53c10f"
33
authors = ["Paul Goulart <paul.goulart@eng.ox.ac.uk>"]
4-
version = "0.8.1"
4+
version = "0.9.0"
55

66
[deps]
77
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

docs/src/api_jl.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
Clarabel.Solver
77
Clarabel.setup!
88
Clarabel.solve!
9+
Clarabel.save_to_file
10+
Clarabel.load_from_file
911
```
1012

1113
## [SupportedCone](@id api-cones)

docs/src/literate/convex_jl.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ objective = 3square(x[1]) + 2square(x[2]) - x[1] - 4x[2]
3030
problem = minimize(objective; numeric_type = BigFloat)
3131
problem.constraints = [x[1] == 2x[2]]
3232
problem.constraints += [x >= -1; x <= 1]
33-
solve!(problem, Clarabel.Optimizer{BigFloat}; silent_solver = false)
33+
solve!(problem, Clarabel.Optimizer{BigFloat}; silent = false)

examples/jl/example_qp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ x = Variable(2)
8383
problem = minimize(3square(x[1]) + 2square(x[2]) - x[1] - 4x[2])
8484
problem.constraints = [x[1] == 2x[2]]
8585
problem.constraints += [x >= -1; x <= 1]
86-
solve!(problem, Clarabel.Optimizer; silent_solver = false)
86+
solve!(problem, Clarabel.Optimizer; silent = false)
8787

8888
# Here is our solution
8989

examples/jl/example_socp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ using Clarabel, Convex
7474
x = Variable(2)
7575
problem = minimize(square(x[2]))
7676
problem.constraints = [norm([2x[1];x[2]] - [2;2], 2) <= 1]
77-
solve!(problem, Clarabel.Optimizer; silent_solver = false)
77+
solve!(problem, Clarabel.Optimizer; silent = false)
7878

7979
# Here is our solution
8080

examples/py/example_qp.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,24 @@
33
from scipy import sparse
44

55
# Define problem data
6-
P = sparse.csc_matrix([[0., 0.], [0, 0]])
6+
P = sparse.csc_matrix([[6., 0.], [0., 4.]])
77
P = sparse.triu(P).tocsc()
88

99
q = np.array([-1., -4.])
1010

1111
A = sparse.csc_matrix(
12-
[[1., -2.], # <-- LHS of equality constraint (lower bound)
13-
[1., 0.], # <-- LHS of inequality constraint (upper bound)
14-
[0., 1.], # <-- LHS of inequality constraint (upper bound)
12+
[[ 1., -2.], # <-- LHS of equality constraint (lower bound)
13+
[ 1., 0.], # <-- LHS of inequality constraint (upper bound)
14+
[ 0., 1.], # <-- LHS of inequality constraint (upper bound)
1515
[-1., 0.], # <-- LHS of inequality constraint (lower bound)
16-
[0., -1.]]) # <-- LHS of inequality constraint (lower bound)
16+
[ 0., -1.]]) # <-- LHS of inequality constraint (lower bound)
1717

1818
b = np.array([0., 1., 1., 1., 1.])
1919

20-
cones = [clarabel.ZeroConeT(1), clarabel.NonnegativeConeT(4)]
20+
cones = [
21+
clarabel.ZeroConeT(1),
22+
clarabel.NonnegativeConeT(4)
23+
]
2124

2225
settings = clarabel.DefaultSettings()
2326

0 commit comments

Comments
 (0)