メインプログラム

メインプログラムは、最適化の実行に必要なすべての処理を実行します。

必要なステップは次のとおりです:
  1. パラメトリックモデルを作成します。
  2. シミュレーションモデルを作成します。
  3. 必要な応答を追加します。
  4. 最適化を実行します。
  5. 得られた結果を出力します。

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 ()