You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- having option to switch between stacked 'tall' and a grid type. Default is tall.
- having ylabels instead of titles.
- other improvements to make sure there is no overlays between the subplots.
Copy file name to clipboardExpand all lines: famodel/design/LineDesign.py
+63-32Lines changed: 63 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -1313,8 +1313,14 @@ def getCons4PSO(self, X):
1313
1313
returnconList
1314
1314
1315
1315
1316
-
defplotOptimization(self):
1317
-
1316
+
defplotOptimization(self, layout="grid"):
1317
+
'''Plot the optimization trajectory, including design variables, constraints and cost.
1318
+
1319
+
Parameters
1320
+
----------
1321
+
layout : str
1322
+
"tall" (default) or "grid" layout for subplots. The grid will place all d.v.s in the first column, all constraints in the second column, and cost in the third column.
1323
+
'''
1318
1324
iflen(self.log['x']) ==0:
1319
1325
print("No optimization trajectory saved (log is empty). Nothing to plot.")
0 commit comments