Skip to content

Commit

Permalink
rebuild documentation examples
Browse files Browse the repository at this point in the history
  • Loading branch information
bqpd committed Aug 10, 2020
1 parent b5922f6 commit 03790a7
Show file tree
Hide file tree
Showing 32 changed files with 481 additions and 411 deletions.
2 changes: 1 addition & 1 deletion docs/source/examples/autosweep_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ l : [ +1 +2.5 +4 ]

Most Sensitive Constraints (in last sweep)
------------------------------------------
+2 : A >= (l/3)²
+2 : A (l/3)²

8 changes: 4 additions & 4 deletions docs/source/examples/beam_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ EI : -1 Bending stif
Most Sensitive Constraints
--------------------------
+4 : L = 5·dx
+1 : w[5] >= w[4] + 0.5·dx·(th[5] + th[4])
+0.74 : th[2] >= th[1] + 0.5·dx·(M[2] + M[1])/EI
+0.73 : w[4] >= w[3] + 0.5·dx·(th[4] + th[3])
+0.64 : M[1] >= M[2] + 0.5·dx·(V[1] + V[2])
+1 : w[5] w[4] + 0.5·dx·(th[5] + th[4])
+0.74 : th[2] th[1] + 0.5·dx·(M[2] + M[1])/EI
+0.73 : w[4] w[3] + 0.5·dx·(th[4] + th[3])
+0.64 : M[1] M[2] + 0.5·dx·(V[1] + V[2])

6 changes: 3 additions & 3 deletions docs/source/examples/boundschecking_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Cost

Constraints
-----------
F >= D + T
F D + T
D = rf·V²·Ap
Ap = nu
T = mf·V
mf >= mi + mb
mf mi + mb
mf = rf·V
Fs <= mi
Fs mi
6 changes: 3 additions & 3 deletions docs/source/examples/docstringparsing_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ h : +0.3 minimum height

Most Sensitive Constraints
--------------------------
+1 : A >= 2·(s[0]·s[1] + s[1]·s[2] + s[2]·s[0])
+0.57 : V <= s[:].prod()
+0.3 : s[2] >= h
+1 : A 2·(s[0]·s[1] + s[1]·s[2] + s[2]·s[0])
+0.57 : V s[:].prod()
+0.3 : s[2] h

2 changes: 1 addition & 1 deletion docs/source/examples/external_sp_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ y : 0.7071
Most Sensitive Constraints
--------------------------
+1 : <external_constraint.ExternalConstraint object>
+1 : x >= 0.785
+1 : x 0.785

31 changes: 16 additions & 15 deletions docs/source/examples/performance_modeling_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,31 @@ Constraints
-----------
Mission
"definition of Wburn":
Wfuel[:-1] >= Wfuel[1:] + Wburn[:-1]
Wfuel[:-1] Wfuel[1:] + Wburn[:-1]
"require fuel for the last leg":
Wfuel[3] >= Wburn[3]
Wfuel[3] Wburn[3]

FlightSegment
AircraftP
"fuel burn rate":
Wburn[:] >= 0.1·D[:]
Wburn[:] 0.1·D[:]
"lift":
Aircraft.W + Wfuel[:] <= 0.5·rho[:]·CL[:]·S·V[:]²
Aircraft.W + Wfuel[:] 0.5·rho[:]·CL[:]·S·V[:]²
"performance":
WingAero
"definition of D":
D[:] >= 0.5·rho[:]·V[:]²·CD[:]·S
D[:] 0.5·rho[:]·V[:]²·CD[:]·S
"definition of Re":
Re[:] = rho[:]·V[:]·c/mu[:]
"drag model":
CD[:] >= 0.074/Re[:]^0.2 + CL[:]²/π/A/e[:]
CD[:] 0.074/Re[:]^0.2 + CL[:]²/π/A/e[:]

FlightState
(no constraints)

Aircraft
"definition of W":
Aircraft.W >= Aircraft.Fuselage.W + Aircraft.Wing.W
Aircraft.W Aircraft.Fuselage.W + Aircraft.Wing.W
"components":
Fuselage
(no constraints)
Expand All @@ -40,7 +40,7 @@ Constraints
"definition of mean chord":
c = (S/A)^0.5
"parametrization of wing weight":
Aircraft.Wing.W >= S·Aircraft.Wing.rho
Aircraft.Wing.W S·Aircraft.Wing.rho

Optimal Cost
------------
Expand Down Expand Up @@ -84,15 +84,15 @@ rho : [ -0.12 -0.11 -0.11 -0.11 ] air density
Most Sensitive Constraints
--------------------------
| Aircraft
+1.4 : .W >= .Fuselage.W + .Wing.W
+1.4 : .W .Fuselage.W + .Wing.W

| Mission
+1 : Wfuel[0] >= Wfuel[1] + Wburn[0]
+0.75 : Wfuel[1] >= Wfuel[2] + Wburn[1]
+0.5 : Wfuel[2] >= Wfuel[3] + Wburn[2]
+1 : Wfuel[0] Wfuel[1] + Wburn[0]
+0.75 : Wfuel[1] Wfuel[2] + Wburn[1]
+0.5 : Wfuel[2] Wfuel[3] + Wburn[2]

| Aircraft.Wing
+0.43 : .W >= S·.rho
+0.43 : .W S·.rho

Insensitive Constraints |below +1e-05|
--------------------------------------
Expand All @@ -110,8 +110,8 @@ Constraint Differences
@@ -41,3 +41,4 @@
c = (S/A)^0.5
"parametrization of wing weight":
Aircraft.Wing.W >= S·Aircraft.Wing.rho
+ Wburn[:] >= 0.2·D[:]
Aircraft.Wing.W S·Aircraft.Wing.rho
+ Wburn[:] 0.2·D[:]

**********************

Expand All @@ -125,3 +125,4 @@ Sensitivity Differences |above 0.1|
-----------------------------------
The largest is -0.00451643.

Links exceed link limit (56 > 50); skipping constraints inside arrays.
50 changes: 25 additions & 25 deletions docs/source/examples/relaxation_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Cost

Constraints
-----------
x <= x_max
x >= x_min
x x_max
x x_min

With constraints relaxed equally
================================
Expand All @@ -20,10 +20,10 @@ Cost
Constraints
-----------
"minimum relaxation":
C >= 1
C 1
"relaxed constraints":
x <= C·x_max
x_min <= C·x
x C·x_max
x_min C·x

Optimal Cost
------------
Expand All @@ -48,8 +48,8 @@ x_min : +0.5

Most Sensitive Constraints
--------------------------
+0.5 : x <= C·x_max
+0.5 : x_min <= C·x
+0.5 : x C·x_max
+0.5 : x_min C·x


With constraints relaxed individually
Expand All @@ -62,10 +62,10 @@ Cost
Constraints
-----------
"minimum relaxation":
C[:] >= 1
C[:] 1
"relaxed constraints":
x <= C[0]·x_max
x_min <= C[1]·x
x C[0]·x_max
x_min C[1]·x

Optimal Cost
------------
Expand All @@ -90,9 +90,9 @@ x_max : -0.99

Most Sensitive Constraints
--------------------------
+1 : x_min <= C[1]·x
+0.99 : x <= C[0]·x_max
+0.01 : C[0] >= 1
+1 : x_min C[1]·x
+0.99 : x C[0]·x_max
+0.01 : C[0] 1


With constants relaxed individually
Expand All @@ -106,17 +106,17 @@ Constraints
-----------
Relax2
"original constraints":
x <= x_max
x >= x_min
x x_max
x x_min
"relaxation constraints":
"x_max":
Relax2.x_max >= 1
x_max >= Relax2.OriginalValues.x_max/Relax2.x_max
x_max <= Relax2.OriginalValues.x_max·Relax2.x_max
Relax2.x_max 1
x_max Relax2.OriginalValues.x_max/Relax2.x_max
x_max Relax2.OriginalValues.x_max·Relax2.x_max
"x_min":
Relax2.x_min >= 1
x_min >= Relax2.OriginalValues.x_min/Relax2.x_min
x_min <= Relax2.OriginalValues.x_min·Relax2.x_min
Relax2.x_min 1
x_min Relax2.OriginalValues.x_min/Relax2.x_min
x_min Relax2.OriginalValues.x_min·Relax2.x_min

Optimal Cost
------------
Expand Down Expand Up @@ -145,9 +145,9 @@ x_max : -0.99

Most Sensitive Constraints
--------------------------
+1 : x >= x_min
+1 : x_min >= Relax2.OriginalValues.x_min/Relax2.x_min
+0.99 : x <= x_max
+0.99 : x_max <= Relax2.OriginalValues.x_max·Relax2.x_max
+1 : x x_min
+1 : x_min Relax2.OriginalValues.x_min/Relax2.x_min
+0.99 : x x_max
+0.99 : x_max Relax2.OriginalValues.x_max·Relax2.x_max


4 changes: 2 additions & 2 deletions docs/source/examples/simple_box_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ A_{wall} : -1.5 upper limit, wall area

Most Sensitive Constraints
--------------------------
+1.5 : A_{wall} >= 2·h·w + 2·h·d
+0.5 : alpha <= h/w
+1.5 : A_{wall} 2·h·w + 2·h·d
+0.5 : alpha h/w

4 changes: 2 additions & 2 deletions docs/source/examples/simple_sp_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ y : 0.1

Most Sensitive Constraints
--------------------------
+1.1 : 1 - y <= x
+0.11 : y <= 0.1
+1.1 : 1 - y x
+0.11 : y 0.1

x values of each GP solve (note convergence)
2.50000, 0.92548, 0.90003, 0.90000
20 changes: 10 additions & 10 deletions docs/source/examples/simpleflight_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ Most Sensitive Variables

Most Sensitive Constraints
--------------------------
+1.3 : W >= W_0 + W_w
+1 : C_D >= (CDA0)/S + k·C_f·(\frac{S}{S_{wet}}) + C_L²/(π·A·e)
+1 : D >= 0.5·\rho·S·C_D·V²
+0.96 : W <= 0.5·\rho·S·C_L·V²
+0.43 : C_f >= 0.074/Re^0.2
+1.3 : W W_0 + W_w
+1 : C_D (CDA0)/S + k·C_f·(\frac{S}{S_{wet}}) + C_L²/(π·A·e)
+1 : D 0.5·\rho·S·C_D·V²
+0.96 : W 0.5·\rho·S·C_L·V²
+0.43 : C_f 0.074/Re^0.2

Solution Diff
=============
Expand Down Expand Up @@ -82,11 +82,11 @@ Most Sensitive Variables

Most Sensitive Constraints (in last sweep)
------------------------------------------
+1 : C_D >= (CDA0)/S + k·C_f·(\frac{S}{S_{wet}}) + C_L²/(π·A·e)
+1 : D >= 0.5·\rho·S·C_D·V²
+1 : W >= W_0 + W_w
+0.57 : W <= 0.5·\rho·S·C_L·V²
+0.54 : C_f >= 0.074/Re^0.2
+1 : C_D (CDA0)/S + k·C_f·(\frac{S}{S_{wet}}) + C_L²/(π·A·e)
+1 : D 0.5·\rho·S·C_D·V²
+1 : W W_0 + W_w
+0.57 : W 0.5·\rho·S·C_L·V²
+0.54 : C_f 0.074/Re^0.2

Solution Diff
=============
Expand Down
4 changes: 2 additions & 2 deletions docs/source/examples/sin_approx_example_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ y : 0.7854

Most Sensitive Constraints
--------------------------
+1 : x >= 0.785
+1 : y >= x
+1 : x 0.785
+1 : y x

16 changes: 8 additions & 8 deletions docs/source/examples/sp_to_gp_sweep_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ Warnings
========
Unexpectedly Loose Constraints in sweep 0
-----------------------------------------
0.9585 >= 0.9187 : V_{f_{avail}} >= V_f
0.9585 >= 0.9187 : V_{f_{avail}} V_f

Unexpectedly Loose Constraints in sweep 1
-----------------------------------------
0.9585 >= 0.9187 : V_{f_{avail}} >= V_f
0.9585 >= 0.9187 : V_{f_{avail}} V_f

Unexpectedly Loose Constraints in sweep 2
-----------------------------------------
0.9585 >= 0.9187 : V_{f_{avail}} >= V_f
0.9585 >= 0.9187 : V_{f_{avail}} V_f

Swept Variables
---------------
Expand Down Expand Up @@ -52,9 +52,9 @@ Most Sensitive Variables

Most Sensitive Constraints (in last sweep)
------------------------------------------
+1.2 : C_D >= (CDA0)/S + k·C_f·(\frac{S}{S_{wet}}) + C_L²/(π·A·e)
+1.2 : D >= 0.5·\rho·S·C_D·V²
+1.2 : T_{flight} >= Range/V
+1.2 : W_f >= TSFC·T_{flight}·D
+0.74 : C_f >= 0.074/Re^0.2
+1.2 : C_D (CDA0)/S + k·C_f·(\frac{S}{S_{wet}}) + C_L²/(π·A·e)
+1.2 : D 0.5·\rho·S·C_D·V²
+1.2 : T_{flight} Range/V
+1.2 : W_f TSFC·T_{flight}·D
+0.74 : C_f 0.074/Re^0.2

2 changes: 1 addition & 1 deletion docs/source/examples/unbounded_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ x : 1e+30

Most Sensitive Constraints
--------------------------
+1 : x <= 1e+30
+1 : x 1e+30

8 changes: 4 additions & 4 deletions docs/source/examples/vectorize_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ x : 1

Most Sensitive Constraints
--------------------------
+1 : x >= 1
+1 : x 1

__________

Expand All @@ -26,7 +26,7 @@ x : [ 1 2 1 ]

Most Sensitive Constraints
--------------------------
+1 : x[0] >= 1
+1 : x[1] >= 2
+1 : x[2] >= 1
+1 : x[0] 1
+1 : x[1] 2
+1 : x[2] 1

2 changes: 1 addition & 1 deletion docs/source/examples/water_tank_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Variable Sensitivities

Most Sensitive Constraints
--------------------------
+1 : A >= 2·(d[0]·d[1] + d[0]·d[2] + d[1]·d[2])
+1 : A 2·(d[0]·d[1] + d[0]·d[2] + d[1]·d[2])
+0.67 : M = V·\rho
+0.67 : V = d[0]·d[1]·d[2]

0 comments on commit 03790a7

Please sign in to comment.