メインプログラム
メインプログラムは、最適化の実行に必要なすべての処理を実行します。
- パラメトリックモデルを作成します。
- シミュレーションモデルを作成します。
- 必要な応答を追加します。
- 最適化を実行します。
- 得られた結果を出力します。
例
if __name__ == "__main__":
# Instantiate the Fourbar parametric model with default design parameters
fbar = Fourbar ()
# Create the simulation model with the defined design parameters
fbar.createModel ()
# Add the responses used by the optimizer
fbar.addResponses ()
# This is provided for model debugging purposes
#fbar.simulate ()
# Perform the optimization
fbar.optimize ()
# Print the final results to the screen
fbar.printResults ()