File tree Expand file tree Collapse file tree 2 files changed +3
-21
lines changed Expand file tree Collapse file tree 2 files changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,7 @@ julia> X = monomials(x, 0:2)
32
32
33
33
julia> using SumOfSquares
34
34
35
- julia> model = Model()
36
- A JuMP Model
37
- Feasibility problem with:
38
- Variables: 0
39
- Model mode: AUTOMATIC
40
- CachingOptimizer state: NO_OPTIMIZER
41
- Solver name: No optimizer attached.
35
+ julia> model = Model();
42
36
43
37
julia> @variable(model, p, Poly(X))
44
38
(_[1])·1 + (_[2])·x₃ + (_[3])·x₂ + (_[4])·x₁ + (_[5])·x₃² + (_[6])·x₂x₃ + (_[7])·x₂² + (_[8])·x₁x₃ + (_[9])·x₁x₂ + (_[10])·x₁²
@@ -132,13 +126,7 @@ julia> @polyvar x y
132
126
133
127
julia> using SumOfSquares
134
128
135
- julia> model = SOSModel()
136
- A JuMP Model
137
- Feasibility problem with:
138
- Variables: 0
139
- Model mode: AUTOMATIC
140
- CachingOptimizer state: NO_OPTIMIZER
141
- Solver name: No optimizer attached.
129
+ julia> model = SOSModel();
142
130
143
131
julia> @variable(model, α)
144
132
α
Original file line number Diff line number Diff line change @@ -33,13 +33,7 @@ We can now create our polynomial variable `p` as follows:
33
33
``` jldoctest variables
34
34
julia> using SumOfSquares
35
35
36
- julia> model = Model()
37
- A JuMP Model
38
- Feasibility problem with:
39
- Variables: 0
40
- Model mode: AUTOMATIC
41
- CachingOptimizer state: NO_OPTIMIZER
42
- Solver name: No optimizer attached.
36
+ julia> model = Model();
43
37
44
38
julia> @variable(model, p, Poly(X))
45
39
(_[1])·1 + (_[2])·y + (_[3])·x + (_[4])·y² + (_[5])·xy + (_[6])·x²
You can’t perform that action at this time.
0 commit comments