パラメトリックモデルクラス - PIDモデル

この例のパラメトリックモデルクラスを以下に示します。設計変数とその制限値のデフォルト値はサスペンション設計者が指定しています。

class PID (object):
 def __init__(self,
  label      = 'PID',
  mass       = 2,   
  kp         = 0,   } The default values for the design variables
  ki         = 0.5, } The default values for the design variables
  kd         = 0,   } The default values for the design variables
  force      = 1
  ):

  self.mass = mass   } Store the design with the instance
  self.kp = kp       } Store the design with the instance
  self.ki = ki       } Store the design with the instance 
  self.kd = kd       } Store the design with the instance
  self.force_mag = force } Store the design with the instance