JPH10323087A - Motor position controller - Google Patents

Motor position controller

Info

Publication number
JPH10323087A
JPH10323087A JP13109397A JP13109397A JPH10323087A JP H10323087 A JPH10323087 A JP H10323087A JP 13109397 A JP13109397 A JP 13109397A JP 13109397 A JP13109397 A JP 13109397A JP H10323087 A JPH10323087 A JP H10323087A
Authority
JP
Japan
Prior art keywords
motor
antibody
control value
value
evaluation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP13109397A
Other languages
Japanese (ja)
Inventor
Masahiro Murata
正博 村田
Satoshi Osanawa
智 長縄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyota Motor Corp
Aisin Corp
Original Assignee
Aisin Seiki Co Ltd
Toyota Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aisin Seiki Co Ltd, Toyota Motor Corp filed Critical Aisin Seiki Co Ltd
Priority to JP13109397A priority Critical patent/JPH10323087A/en
Publication of JPH10323087A publication Critical patent/JPH10323087A/en
Pending legal-status Critical Current

Links

Landscapes

  • Feedback Control In General (AREA)
  • Control Of Position Or Direction (AREA)
  • Control Of Stepping Motors (AREA)

Abstract

PROBLEM TO BE SOLVED: To always realize ideal controllability regardless of individual difference and secular change of a motor in a motor position controller for controlling the rotation position of motor to the target position. SOLUTION: Rotation position of a motor 10 is detected by using a potentiometer 48. An excitation current I is supplied to coils 18 to 24 for generating a rotating magnetic field in the vicinities of a permanent magnet 16, and the rotating position of the motor 10 is coincided with the target position. As the deviation between rotating position and target position becomes smaller, the exciting current I is reduced to a smaller value. The rule for varying the exciting current I as stated above is evaluated based on the controllability (quantity of overshoot, high speed) of the motor 10. The above rule is renewed as required to a rule capable of obtaining a better evaluation.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、電動機位置制御装
置に係り、特に、電動機の回転位置を目標位置に制御す
る装置として好適な電動機位置制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a motor position control device, and more particularly to a motor position control device suitable for controlling a rotational position of a motor to a target position.

【0002】[0002]

【従来の技術】従来より、例えば、特開平6−5835
9号に開示される如く、ステップモータを用いた減衰力
可変式ショックアブソーバが知られている。上記従来の
ショックアブソーバは、ステップモータの回転位置に応
じて減衰力を変更する可変オリフィスを備えている。従
って、上記従来のショックアブソーバによれば、ステッ
プモータの回転位置を制御することで、発生する減衰力
の大きさを適当に変化させることができる。
2. Description of the Related Art Conventionally, for example, Japanese Patent Laid-Open No.
As disclosed in No. 9, a damping force variable shock absorber using a step motor is known. The conventional shock absorber has a variable orifice that changes the damping force according to the rotational position of the step motor. Therefore, according to the conventional shock absorber, the magnitude of the generated damping force can be appropriately changed by controlling the rotational position of the step motor.

【0003】[0003]

【発明が解決しようとする課題】ところで、上記従来の
ショックアブソーバにおいて、減衰力段を速やかに所望
の減衰力段に変化させるためには、ステップモータを目
標位置に向けて高速で回転させ、かつ、ステップモータ
の回転位置を速やかに目標位置に収束させることが必要
である。ステップモータを高速で回転させるためには、
ステップモータに大きな励磁電流を供給することが有効
である。一方、ステップモータは、高速で回転するほど
目標位置に対してオーバーシュートし易くなる。このた
め、ステップモータの回転位置を速やかに目標位置に収
束させるためには、ステップモータに小さな励磁電流を
供給することが望ましい。
In the conventional shock absorber described above, in order to quickly change the damping force stage to a desired damping force stage, a step motor is rotated at a high speed toward a target position, and It is necessary to quickly converge the rotational position of the step motor to the target position. To rotate the step motor at high speed,
It is effective to supply a large exciting current to the step motor. On the other hand, as the step motor rotates at a higher speed, it tends to overshoot the target position. Therefore, it is desirable to supply a small exciting current to the step motor in order to quickly converge the rotational position of the step motor to the target position.

【0004】上記の背反する要求は、例えば、ステップ
モータの回転位置が目標位置から大きく離間している間
はステップモータに対して大きな励磁電流を供給し、か
つ、ステップモータの回転位置と目標回転位置との偏差
が小さい領域では、ステップモータに対して小さな励磁
電流を供給することで、共に満たすことができる。この
ような制御によれば、ステップモータは、目標位置から
離間している間は高速で回転し、目標位置の近傍ではそ
の回転速度を低下させる。従って、上記の制御によれ
ば、ステップモータの回転位置を、速やかに、かつ、精
度良く目標位置に一致させることができる。
[0004] The above conflicting requirements are, for example, that a large exciting current is supplied to the step motor while the rotational position of the step motor is far away from the target position, and that the rotational position of the step motor and the target rotational speed are different. In a region where the deviation from the position is small, both can be satisfied by supplying a small exciting current to the step motor. According to such control, the step motor rotates at a high speed while being away from the target position, and decreases its rotation speed near the target position. Therefore, according to the above control, the rotational position of the step motor can be quickly and accurately matched with the target position.

【0005】しかしながら、ステップモータの回転位置
が目標位置から離間している場合に供給し得る励磁電流
の値、および、その回転位置が目標位置の近傍である場
合に供給し得る励磁電流の値は、ステップモータの個体
差や経時変化に起因して、常に同一の値とはならない。
従って、ステップモータについて、常に理想的な回転位
置制御を実行するためには、ステップモータの回転位置
と目標位置との偏差と、ステップモータに供給する励磁
電流の値との関係を、個々のステップモータに対応した
最適な値に設定する必要がある。
However, the value of the exciting current that can be supplied when the rotational position of the step motor is away from the target position, and the value of the exciting current that can be supplied when the rotational position is near the target position are: However, the same value is not always obtained due to individual differences of the step motors and aging.
Therefore, in order to always execute ideal rotation position control for the step motor, the relationship between the deviation between the rotation position of the step motor and the target position and the value of the excitation current supplied to the step motor is determined for each step motor. It is necessary to set the optimal value corresponding to the motor.

【0006】本発明は、上述の点に鑑みてなされたもの
であり、電動機の回転位置制御に用いられる制御値を、
個々の電動機の状態に応じた好適な値に更新することの
できる電動機位置制御装置を提供することを目的とす
る。
[0006] The present invention has been made in view of the above points, and a control value used for controlling the rotational position of an electric motor is expressed as follows.
It is an object of the present invention to provide a motor position control device that can be updated to a suitable value according to the state of each electric motor.

【0007】[0007]

【課題を解決するための手段】上記の目的は、請求項1
に記載する如く、電動機の回転位置を検出する回転位置
検出手段と、電動機の回転位置と目標位置との位置偏差
を検出する位置偏差検出手段とを備え、前記位置偏差が
消滅するように電動機の回転位置を制御する電動機位置
制御装置において、前記位置偏差に基づいて、電動機の
制御変数を所定の制御値に定める制御変数設定手段と、
前記所定の制御値を用いて電動機を駆動する電動機駆動
手段と、電動機の制御性に基づいて前記所定の制御値を
評価する制御値評価手段と、前記所定の制御値を良好な
評価の得られる値に更新する制御値更新手段と、を備え
る電動機位置制御装置により達成される。
The above object is achieved by the present invention.
As described in the above, a rotational position detecting means for detecting the rotational position of the electric motor, and a position deviation detecting means for detecting a positional deviation between the rotational position of the electric motor and the target position, the motor of the motor so that the positional deviation disappears In a motor position control device that controls the rotational position, based on the position deviation, a control variable setting unit that determines a control variable of the motor to a predetermined control value,
A motor driving unit that drives the motor using the predetermined control value; a control value evaluation unit that evaluates the predetermined control value based on the controllability of the motor; and a favorable evaluation of the predetermined control value. And a control value updating means for updating the value to a value.

【0008】本発明において、電動機は、その回転位置
と目標位置との偏差が消滅するように制御される。この
際、電動機の制御に用いられる制御変数は、所定の制御
値に設定される。従って、電動機は、その制御値が適切
な値であるほど、良好な制御性の下に制御される。換言
すると、電動機の制御性が良好である場合は、制御に用
いられた制御値が適切な値であり、一方、電動機の制御
性が良好でない場合は、制御に用いられた制御値が適切
な値でないと判断できる。上記の制御値は、電動機の制
御性に基づいて評価されると共に、より良好な評価の得
られる値に更新される。従って、本発明によれば、個々
の電動機は、それらの状態に応じた好適な制御値に基づ
いて制御される。
In the present invention, the electric motor is controlled so that the deviation between its rotational position and the target position disappears. At this time, a control variable used for controlling the electric motor is set to a predetermined control value. Therefore, the electric motor is controlled with better controllability as the control value is an appropriate value. In other words, when the controllability of the motor is good, the control value used for the control is an appropriate value, while when the controllability of the motor is not good, the control value used for the control is an appropriate value. It can be determined that it is not a value. The above-mentioned control value is evaluated based on the controllability of the electric motor, and is updated to a value that can obtain a better evaluation. Therefore, according to the present invention, the individual electric motors are controlled based on suitable control values according to their states.

【0009】上記の目的は、請求項2に記載する如く、
上記請求項1記載の電動機位置制御装置において、電動
機のオーバーシュート量を検出するオーバーシュート量
検出手段と、電動機の目標位置への収束速度を検出する
収束速度検出手段と、を備えると共に、前記制御値評価
手段が、前記オーバーシュート量と、前記収束速度とに
基づいて、前記制御値を評価する電動機位置制御装置に
より達成される。
[0009] The object of the present invention is as described in claim 2.
2. The motor position control device according to claim 1, further comprising: an overshoot amount detection unit that detects an overshoot amount of the motor; and a convergence speed detection unit that detects a convergence speed of the motor to a target position. The value evaluation means is achieved by a motor position control device that evaluates the control value based on the overshoot amount and the convergence speed.

【0010】本発明において、制御値は、電動機のオー
バーシュート量と収束速度とに基づいて評価されると共
に、オーバーシュート量を抑制するうえで好適であり、
かつ、大きな収束速度を得るうえで好適な値に更新され
る。電動機の回転位置制御に、このような制御値が用い
られると、電動機の回転位置は、大きなオーバーシュー
トを生ずることなく速やかに目標位置に一致する。
In the present invention, the control value is evaluated based on the overshoot amount and the convergence speed of the motor, and is suitable for suppressing the overshoot amount.
In addition, the value is updated to a value suitable for obtaining a large convergence speed. When such a control value is used for controlling the rotation position of the motor, the rotation position of the motor quickly matches the target position without causing a large overshoot.

【0011】上記の目的は、請求項3に記載する如く、
上記請求項1記載の電動機位置制御装置において、前記
制御値更新手段が、遺伝的アルゴリズムを用いて新世代
の制御値データを生成する新世代生成手段と、前記新世
代の制御値データの評価と前記制御値の評価とを比較す
る評価比較手段と、前記新世代の制御値データの評価が
前記制御値の評価に比して優れている場合に、前記新世
代の制御値データを新たな制御値とする制御値変更手段
と、を備える電動機位置制御装置により達成される。
[0011] The above object is as described in claim 3.
2. The electric motor position control device according to claim 1, wherein the control value updating means generates new generation control value data using a genetic algorithm, and evaluates the new generation control value data. Evaluation comparing means for comparing the evaluation of the control value with the evaluation of the control value, and when the evaluation of the control value data of the new generation is superior to the evaluation of the control value, the control value data of the new generation is newly controlled. This is achieved by a motor position control device comprising:

【0012】本発明において、制御値は、より評価の優
れた新世代の制御値データに更新される。新世代の制御
値データは、遺伝的アルゴリズムに従って生成される。
遺伝的アルゴリズムによれば、過去に生成された制御値
の遺伝子を基に、目的の達成に適した遺伝子を継承する
新世代の制御値データを生成することができる。このた
め、本発明において、所定の制御値は、速やかに、優れ
た評価の得られる値に進化する。
In the present invention, the control value is updated to a new generation of control value data which is more excellent in evaluation. The new generation control value data is generated according to a genetic algorithm.
According to the genetic algorithm, a new generation of control value data that inherits a gene suitable for achieving an object can be generated based on a gene of a control value generated in the past. For this reason, in the present invention, the predetermined control value quickly evolves to a value with which excellent evaluation can be obtained.

【0013】また、上記の目的は、請求項4に記載する
如く、上記請求項1記載の電動機位置制御装置におい
て、前記制御値更新手段が、免疫的アルゴリズムを用い
て新世代の制御値データを生成する新世代生成手段と、
前記新世代の制御値データの評価と前記制御値の評価と
を比較する評価比較手段と、前記新世代の制御値データ
の評価が前記制御値の評価に比して優れている場合に、
前記新世代の制御値データを新たな制御値とする制御値
変更手段と、を備えることを特徴とする電動機位置制御
装置。
According to a fourth aspect of the present invention, in the electric motor position control device according to the first aspect, the control value updating means transmits a new generation of control value data using an immune algorithm. A new generation generating means for generating;
Evaluation comparing means for comparing the evaluation of the control value data of the new generation and the evaluation of the control value, and when the evaluation of the control value data of the new generation is superior to the evaluation of the control value,
A control value changing unit that uses the new generation control value data as a new control value.

【0014】本発明において、制御値は、より評価の優
れた新世代の制御値データに更新される。新世代の制御
値データは、遺伝的アルゴリズムに従って生成される。
遺伝的アルゴリズムによれば、過去に生成された制御値
の遺伝子を基に、目的の達成に適した遺伝子を継承する
新世代の制御値データを生成することができる。このた
め、本発明において、所定の制御値は、速やかに、優れ
た評価の得られる値に進化する。
In the present invention, the control value is updated to a new generation of control value data which has better evaluation. The new generation control value data is generated according to a genetic algorithm.
According to the genetic algorithm, a new generation of control value data that inherits a gene suitable for achieving an object can be generated based on a gene of a control value generated in the past. For this reason, in the present invention, the predetermined control value quickly evolves to a value with which excellent evaluation can be obtained.

【0015】本発明において、制御値は、免疫的アルゴ
リズムに従って生成され、かつ、優れた評価を有する新
世代の制御値データに更新される。免疫的アルゴリズム
によれば、過去に有効であった制御値の遺伝子を基に、
目的の達成に適した遺伝子を継承する新世代の制御値デ
ータを生成することができる。このため、本発明におい
て、所定の制御値は、速やかに、優れた評価の得られる
値に進化する。
In the present invention, the control value is generated according to an immune algorithm and is updated to a new generation of control value data having excellent evaluation. According to the immune algorithm, based on the genes of control values that were effective in the past,
A new generation of control value data that inherits genes suitable for achieving the object can be generated. For this reason, in the present invention, the predetermined control value quickly evolves to a value with which excellent evaluation can be obtained.

【0016】[0016]

【発明の実施の形態】図1は、本発明の第1実施例であ
る電動機位置制御装置のシステム構成図を示す。電動機
位置制御装置は、モータ10を備えている。モータ10
は、その中央部に回転軸12を備えている。回転軸12
には、回転子14が固定されている。また、回転子14
の外周には、環状の永久磁石16が装着されている。永
久磁石16は、その周方向に、交互にN極またはS極に
着磁されている。
FIG. 1 is a system configuration diagram of a motor position control device according to a first embodiment of the present invention. The motor position control device includes a motor 10. Motor 10
Is provided with a rotating shaft 12 at the center thereof. Rotary shaft 12
, The rotor 14 is fixed. Also, the rotor 14
An annular permanent magnet 16 is mounted on the outer circumference of the. The permanent magnets 16 are alternately magnetized to the N pole or the S pole in the circumferential direction.

【0017】モータ10は、A相コイル18、B相コイ
ル20、C相コイル22およびD相コイル24を備えて
いる。これらのコイル18〜24は、永久磁石16の周
囲に回転磁界を発生させることができるように設けられ
ている。モータ10は、コイル18〜24が永久磁石1
6の周囲に所定の磁界を発生させることにより、その回
転位置をNステップに切り換えることができる。また、
モータ10は、コイル16〜24が永久磁石16の周囲
に回転磁界を発生させることにより、異なるステップへ
回転することができる。
The motor 10 includes an A-phase coil 18, a B-phase coil 20, a C-phase coil 22, and a D-phase coil 24. These coils 18 to 24 are provided so that a rotating magnetic field can be generated around the permanent magnet 16. In the motor 10, the coils 18 to 24 have the permanent magnet 1
By generating a predetermined magnetic field around 6, the rotation position can be switched to N steps. Also,
The motor 10 can be rotated to different steps by the coils 16 to 24 generating a rotating magnetic field around the permanent magnet 16.

【0018】電動機位置制御装置は、電子制御ユニット
26(以下、ECU26と称す)を備えている。ECU
26は、CPU28を備えている。CPU28には、バ
スライン30を介してROM32、RAM34およびI
/Oポート36が接続されている。ECU26は、モー
タ10の回転位置を目標位置に一致させるべく後述する
処理を実行する。ECU26がその処理を実行するため
のプログラムは、ROM32に格納されている。
The motor position control device includes an electronic control unit 26 (hereinafter, referred to as ECU 26). ECU
26 has a CPU 28. The CPU 28 has a ROM 32, a RAM 34 and an I
The / O port 36 is connected. The ECU 26 executes a process described below so that the rotational position of the motor 10 matches the target position. A program for the ECU 26 to execute the processing is stored in the ROM 32.

【0019】I/Oポート36には、駆動回路38〜4
4が接続されている。駆動回路38〜44には、それぞ
れ、モータ10のA相コイル18〜D相コイル24が接
続されている。駆動回路38〜44は、それぞれ、CP
U28の指示に従って、所定の時期に所定の出力ゲイン
Gで対応するコイル(18〜24の何れか)に対して励
磁電流Iを供給する。
The I / O port 36 includes driving circuits 38 to 4
4 are connected. The A-phase coils 18 to D-phase coils 24 of the motor 10 are connected to the drive circuits 38 to 44, respectively. The drive circuits 38 to 44 each include a CP
In accordance with the instruction of U28, the exciting current I is supplied to the corresponding coil (any of 18 to 24) at a predetermined time with a predetermined output gain G.

【0020】I/Oポート36には、A/Dコンバータ
46が接続されている。また、A/Dコンバータ46に
は、ポテンショメータ48が接続されている。ポテンシ
ョメータ48は、モータ10の回転位置に応じた電気信
号を出力する。ECU26は、ポテンショメータ48の
出力信号に基づいて、モータ10の回転位置を検出す
る。
An A / D converter 46 is connected to the I / O port 36. A potentiometer 48 is connected to the A / D converter 46. The potentiometer 48 outputs an electric signal according to the rotation position of the motor 10. The ECU 26 detects the rotational position of the motor 10 based on the output signal of the potentiometer 48.

【0021】次に、電動機位置制御装置の動作について
説明する。上述の如く、モータ10は、4つのコイル1
8〜24が回転磁界を発生することにより駆動される。
ECU26は、モータ10の回転位置と目標位置との間
に偏差が生じている場合に、4つのコイル18〜24に
適宜励磁電流Iを供給して回転磁界を発生させる。そし
て、ECU26は、モータ10の回転位置と目標位置と
の偏差が消滅すると、以後、回転位置を目標位置に維持
すべく回転磁界を消滅させる。
Next, the operation of the motor position control device will be described. As described above, the motor 10 has four coils 1
8 to 24 are driven by generating a rotating magnetic field.
When a deviation occurs between the rotational position of the motor 10 and the target position, the ECU 26 appropriately supplies the exciting current I to the four coils 18 to 24 to generate a rotating magnetic field. When the deviation between the rotation position of the motor 10 and the target position disappears, the ECU 26 thereafter eliminates the rotating magnetic field to maintain the rotation position at the target position.

【0022】コイル18〜24が回転磁界を発生してい
る場合において、モータ10は、各コイル18〜24に
供給される励磁電流Iが大きな値であるほど高速で回転
することができる。従って、モータ10の回転位置を高
速で目標位置に近づけるためには、励磁各コイル18〜
24に供給される励磁電流Iを大きな値にすることが有
効である。一方、モータ10は、その回転速度が高速で
あるほど目標位置に対してオーバーシュートし易い。こ
のため、モータ10の回転位置を速やかに目標位置に収
束させるためには、各コイル18〜24に供給される励
磁電流Iが小さな値であることが望ましい。
When the coils 18 to 24 generate a rotating magnetic field, the motor 10 can rotate at a higher speed as the exciting current I supplied to each of the coils 18 to 24 has a larger value. Therefore, in order to bring the rotational position of the motor 10 closer to the target position at high speed, the excitation coils 18 to
It is effective to make the exciting current I supplied to 24 a large value. On the other hand, the higher the rotation speed of the motor 10, the easier it is for the motor 10 to overshoot the target position. Therefore, in order to quickly converge the rotational position of the motor 10 to the target position, it is desirable that the exciting current I supplied to each of the coils 18 to 24 has a small value.

【0023】図2(A)〜図2(D)は、それぞれ、本
実施例においてモータ10のA相コイル18〜D相コイ
ル24に供給される励磁電流IA 〜ID の波形の一例を
示す。尚、モータ10の回転位置は、励磁電流Iの供給
を受けるコイルがA相コイル18からD相コイル24に
変化するに連れて目標位置に近づくものとする。図2
(A)〜図2(D)に示す如く、本実施例において、各
コイル18〜24に供給される励磁電流IA 〜ID は、
モータ10の回転位置と目標位置との偏差が大きいほど
大きな値とされる。励磁電流IA 〜ID がこのように変
化すると、回転位置が目標位置から大きく離れている場
合にモータ10を高速で回転させ、かつ、回転位置が目
標位置に近接する場合にモータ10を低速で回転させる
ことができる。この場合、モータ10の回転位置を、速
やかに、かつ、大きなオーバーシュートを発生させるこ
となく目標位置に一致させることができる。
FIG. 2 (A) ~ FIG 2 (D), respectively, an example of a waveform of the exciting current I A ~I D supplied to the A-phase coil 18~D phase coil 24 of motor 10 in this embodiment Show. It is assumed that the rotational position of the motor 10 approaches the target position as the coil receiving the excitation current I changes from the A-phase coil 18 to the D-phase coil 24. FIG.
(A) As shown in to FIG. 2 (D), in the present embodiment, the exciting current I A ~I D supplied to each coil 18-24,
The larger the deviation between the rotation position of the motor 10 and the target position, the larger the value. When the exciting current I A ~I D is changed in this manner, the motor 10 is rotated at high speed when the rotation position is far from the target position, and the motor 10 when the rotational position approaches the target position low speed Can be rotated. In this case, the rotational position of the motor 10 can be made to coincide with the target position quickly and without generating a large overshoot.

【0024】ところで、本実施例の電動機位置制御装置
において、モータ10の回転位置と目標位置との偏差が
減少する過程で励磁電流Iが過度に減少されると、モー
タ10の回転速度が不必要に抑制される事態が生ずる。
一方、上記の如く偏差が減少する過程で励磁電流Iが充
分に減少されない場合は、モータ10のオーバーシュー
トを適正に抑制できない事態が生ずる。このため、本実
施例の電動機位置制御装置において、各コイル18〜2
4に供給される励磁電流Iを如何なる規則に沿って減少
させるかは、システムの特性を決める重要な項目であ
る。
In the motor position control device of this embodiment, if the exciting current I is excessively reduced in the process of decreasing the deviation between the rotational position of the motor 10 and the target position, the rotational speed of the motor 10 becomes unnecessary. Occurs.
On the other hand, if the exciting current I is not sufficiently reduced in the process of reducing the deviation as described above, a situation may occur in which the overshoot of the motor 10 cannot be properly suppressed. For this reason, in the motor position control device of this embodiment, each of the coils 18 to 2
The rule for reducing the exciting current I supplied to 4 is an important item which determines the characteristics of the system.

【0025】しかし、モータ10の回転位置を、速やか
に、かつ、大きなオーバーシュートを生じさせることな
く目標位置に一致させるうえで最適な規則は、個々のモ
ータ10の個体差や経時変化に起因して、常に一定には
ならない。従って、個々のモータ10に対して、常に理
想的な回転位置制御を実行するためには、回転位置と目
標位置との偏差に基づいて励磁電流Iを変化させるため
の規則を、個々のモータ10の状態等に応じて適宜最適
なものに更新する必要が生ずる。
However, the most suitable rule for matching the rotational position of the motor 10 to the target position promptly and without causing a large overshoot is due to individual differences of the individual motors 10 and aging. And it is not always constant. Therefore, in order to always execute ideal rotation position control for each motor 10, a rule for changing the excitation current I based on the deviation between the rotation position and the target position is set for each motor 10 It is necessary to appropriately update to an optimum one according to the state of the system.

【0026】本実施例の電動機位置制御装置は、上述の
要求を満たすべく、励磁電流Iの値を定めるための上記
の規則を、遺伝的アルゴリズム(Genetic Algorithm)を
用いて、個々のモータ10の状態に応じた最適なものに
更新する機能を備える点に特徴を有している。以下、図
3乃至図8を参照して、本実施例の電動機位置制御装置
の特徴部について説明する。
The motor position control device according to the present embodiment uses the above-mentioned rules for determining the value of the exciting current I to satisfy the above-mentioned requirements by using a genetic algorithm, and It is characterized in that it has a function of updating to an optimum one according to the state. Hereinafter, with reference to FIGS. 3 to 8, a description will be given of a characteristic portion of the electric motor position control device of the present embodiment.

【0027】図3および図4は、上記の機能を実現すべ
くECU26が実行する制御ルーチンの一例のフローチ
ャートを示す。本ルーチンは、その実行が終了する毎に
繰り返し起動されるメインルーチンである。図3および
図4に示すルーチンが起動されると、先ずステップ10
0の処理が実行される。ステップ100では、試行タイ
マTGAが所定時間T0 以上であるか否かが判別される。
試行タイマTGAは、後述の如く、回転位置制御の試行が
終了する毎にクリアされると共に、自動的にインクリメ
ントされるタイマである。所定時間T0は、回転位置制
御の試行を実行すべき間隔を定める時間である。上記の
判別の結果、TGA≧T0 が成立しないと判別された場合
は、未だ試行の時期が到来していないと判断される。こ
の場合、次にステップ102の処理が実行される。
FIGS. 3 and 4 show a flowchart of an example of a control routine executed by the ECU 26 to realize the above functions. This routine is a main routine that is repeatedly started each time the execution is completed. When the routine shown in FIG. 3 and FIG.
0 is executed. In step 100, attempts timer T GA whether the predetermined time T 0 or more is determined.
The trial timer TGA is a timer that is cleared and automatically incremented each time the trial of the rotational position control ends, as described later. The predetermined time T 0 is a time that determines an interval at which the trial of the rotational position control should be executed. If it is determined that T GA ≧ T 0 does not hold as a result of the above determination, it is determined that the time for trial has not yet come. In this case, the process of step 102 is executed next.

【0028】ステップ102では、“個体1”としてR
AM34に記憶されている出力ゲインデータ群Gs
(1)(s=1〜N)が、出力ゲインGs(s=1〜
N)に代入される。出力ゲインGsは、モータ10の回
転位置と目標位置との偏差がsステップ分に相当する場
合に駆動回路38〜44で用いられる出力ゲインであ
る。すなわち、駆動回路38〜44は、モータ10の回
転位置と目標位置とにsステップの偏差が存在する状況
下では、基準の電流I0 をGs倍に増幅することで得ら
れる励磁電流Iを、対応するコイル18〜24に対して
供給する。本ステップ102の処理が実行されると、以
後、駆動回路38〜44は、モータ10の回転位置と目
標位置との偏差がsステップである場合に、対応するコ
イル18〜44に対して、I=I0 ・Gs(1)で表さ
れる励磁電流Iを供給する。
In step 102, R is set as "individual 1".
Output gain data group Gs stored in AM34
(1) (s = 1 to N) is the output gain Gs (s = 1 to N)
N). The output gain Gs is an output gain used by the drive circuits 38 to 44 when the deviation between the rotation position of the motor 10 and the target position corresponds to s steps. That is, in a situation where there is a deviation of s steps between the rotation position of the motor 10 and the target position, the drive circuits 38 to 44 determine the excitation current I obtained by amplifying the reference current I 0 by Gs times. Supply to corresponding coils 18-24. When the process of step 102 is performed, the drive circuits 38 to 44 thereafter apply the I to the corresponding coils 18 to 44 when the deviation between the rotation position of the motor 10 and the target position is s steps. = I 0 · Gs (1).

【0029】図5は、ECU26がRAM34に記憶し
ている出力ゲインデータ群Gs(k)を示す。図5に示
す如く、ECU26には、“個体1”〜“個体m”まで
m個のデータ群(以下、“個体k”(k=1〜m)と称
す)が記憶されている。個体kには、それぞれ、回転位
置と目標位置との偏差が1ステップである場合に用いら
れるべき出力ゲインデータG1(k)から、上記の偏差
がNステップである場合に用いられるべき出力ゲインデ
ータGN(k)まで、N個のデータが記憶されている。
また、ECU26は、各個体kと関連付けて評価値X
(k)を記憶している。
FIG. 5 shows the output gain data group Gs (k) stored in the RAM 34 by the ECU 26. As shown in FIG. 5, the ECU 26 stores m data groups from “individual 1” to “individual m” (hereinafter, referred to as “individual k” (k = 1 to m)). The individual k has output gain data G1 (k) to be used when the deviation between the rotational position and the target position is one step, and output gain data to be used when the deviation is N steps. Up to GN (k), N data are stored.
The ECU 26 also associates the evaluation value X with each individual k.
(K) is stored.

【0030】図6は、個体kに記憶されるN個の出力ゲ
インデータ群Gs(k)(s=1〜N)と、回転位置と
目標位置との偏差sとの関係を示す。図6に示す如く、
出力ゲインデータ群Gsのそれぞれの値は、偏差sが大
きいほど大きな値となる。図7は、個体kの構成要素で
ある個々の出力ゲインデータGs(k)のデータ構造の
例を示す。本実施例において、個々の出力ゲインデータ
Gs(k)は、図7に示す如く、8ビットの2値化信号
で構成されている。
FIG. 6 shows the relationship between the N output gain data groups Gs (k) (s = 1 to N) stored in the individual k and the deviation s between the rotational position and the target position. As shown in FIG.
Each value of the output gain data group Gs has a larger value as the deviation s is larger. FIG. 7 shows an example of the data structure of individual output gain data Gs (k), which is a component of the individual k. In this embodiment, each output gain data Gs (k) is composed of an 8-bit binary signal as shown in FIG.

【0031】個体kの評価値X(k)は、個体kに記憶
されている出力ゲインデータ群Gs(k)の良否を定性
的に表した値である。本実施例において、評価値X
(k)は、個体kの出力ゲインデータ群Gsを用いてモ
ータ10の回転位置制御を行った場合に、オーバーシュ
ート量Poが少ないほど、また、モータ10の回転位置
が速やかに目標位置に収束するほど、小さな値となるよ
うに定められている。
The evaluation value X (k) of the individual k is a value qualitatively representing the quality of the output gain data group Gs (k) stored in the individual k. In this embodiment, the evaluation value X
(K) indicates that when the rotational position control of the motor 10 is performed using the output gain data group Gs of the individual k, the smaller the overshoot Po, and the faster the rotational position of the motor 10 converges to the target position. The smaller the value, the smaller the value.

【0032】一方、個体1〜個体mの順序は、その順で
評価値X(k)が大きな値となるように、すなわち、そ
の順で個体の評価が低下するように整理されている。従
って、上記ステップ102では、ECU26に記憶され
ている出力ゲインデータ群Gs(k)のうち、最も評価
の優れたデータ群が出力ゲインGsとして設定される。
On the other hand, the order of the individuals 1 to m is arranged so that the evaluation value X (k) becomes larger in that order, that is, the evaluation of the individual decreases in that order. Therefore, in step 102, the data group having the highest evaluation among the output gain data groups Gs (k) stored in the ECU 26 is set as the output gain Gs.

【0033】ステップ104では、モータ10の駆動が
要求されているか否かが判別される。本ステップ104
の処理は、モータ10の駆動が要求されるまで繰り返し
実行される。その結果、モータ10の駆動が要求される
と、次にステップ106の処理が実行される。ステップ
106では、ポテンショメータ48の出力信号に基づい
て、モータ10の回転位置が検出される。
In step 104, it is determined whether or not driving of the motor 10 is requested. This step 104
Are repeatedly executed until the drive of the motor 10 is requested. As a result, when the drive of the motor 10 is requested, the process of step 106 is executed next. In step 106, the rotational position of the motor 10 is detected based on the output signal of the potentiometer 48.

【0034】ステップ108では、モータ10の回転位
置と目標位置との偏差sが検出される。ステップ110
では、上記の如く検出した回転位置と偏差sとに基づい
て、今回の処理サイクルで用いるべき出力ゲインGと、
今回の処理サイクルで励磁電流Iを供給すべきコイル
(18〜24の何れか)とが決定される。本ステップ1
10の処理が実行されると、励磁電流Iを供給すべきコ
イル(18〜24の何れか)に対応する駆動回路(38
〜44の何れか)の出力ゲインGが、出力ゲインデータ
Gs(1)(sは上記ステップ108で求めた偏差s)
に設定される。
In step 108, a deviation s between the rotational position of the motor 10 and the target position is detected. Step 110
Then, based on the rotational position and the deviation s detected as described above, an output gain G to be used in the current processing cycle,
In this processing cycle, the coil (any of 18 to 24) to which the exciting current I is to be supplied is determined. This step 1
When the processing of step 10 is executed, the drive circuit (38) corresponding to the coil (any of 18 to 24) to which the exciting current I is to be supplied is provided.
To 44), the output gain G is output gain data Gs (1) (where s is the deviation s obtained in step 108).
Is set to

【0035】ステップ112では、励磁電流Iを出力す
るための処理が実行される。本ステップ112の処理が
実行されると、今回の処理サイクルで励磁電流Iを供給
すべきコイル18〜24に対して、I=I0 ・Gs
(1)で表される励磁電流Iが供給される。ステップ1
14では、モータ10の回転位置が目標位置に到達して
いるか否かが判別される。その結果、未だ目標位置に到
達していないと判別された場合は、再び上記ステップ1
06以降の処理が実行される。一方、既に目標位置に到
達していると判別される場合は、速やかに今回のルーチ
ンが終了される。
In step 112, a process for outputting the exciting current I is executed. When the process of step 112 is executed, I = I 0 · Gs is applied to the coils 18 to 24 to which the exciting current I is to be supplied in the current processing cycle.
An exciting current I represented by (1) is supplied. Step 1
At 14, it is determined whether the rotational position of the motor 10 has reached the target position. As a result, if it is determined that the target position has not yet been reached, the above step 1 is performed again.
06 and subsequent steps are executed. On the other hand, if it is determined that the target position has already been reached, the current routine is immediately terminated.

【0036】上記の処理によれば、モータ10の回転位
置を、個体1の出力ゲインデータ群Gs(1)(s=1
〜N)を用いた回転位置制御によって目標位置まで変化
させることができる。個体1の出力ゲインデータ群Gs
(1)は、モータ10の回転位置を高速で目標位置まで
変化させ、かつ、オーバーシュート量を極小さく抑制す
るうえで優れた評価を有するデータ群である。従って、
本実施例の電動機位置制御装置によれば、モータ10の
回転位置を、速やかに、かつ、精度良く目標位置に制御
することができる。
According to the above processing, the rotational position of the motor 10 is determined by the output gain data group Gs (1) (s = 1
To N), the position can be changed to the target position. Output gain data group Gs of individual 1
(1) is a data group having an excellent evaluation for changing the rotational position of the motor 10 to the target position at high speed and suppressing the overshoot amount to an extremely small value. Therefore,
According to the motor position control device of the present embodiment, the rotational position of the motor 10 can be quickly and accurately controlled to the target position.

【0037】本実施例のメインルーチン中、上記ステッ
プ100でTGA≧T0 が成立すると判別された場合は、
以後、回転位置制御の試行を開始すべく、図4に示すス
テップ116以降の処理が実行される。ステップ116
では、試行カウンタCGAをクリアする処理が実行され
る。試行カウンタCGAは、試行期間中に実行された回転
位置制御の試行回数を計数するためのカウンタである。
In the main routine of this embodiment, if it is determined in step 100 that T GA ≧ T 0 is satisfied,
Thereafter, the processing after step 116 shown in FIG. 4 is executed to start the trial of the rotation position control. Step 116
Then, a process of clearing the trial counter CGA is executed. The trial counter CGA is a counter for counting the number of trials of the rotational position control performed during the trial period.

【0038】ステップ118では、試行カウンタCGA
インクリメントされる。今回の処理サイクルが、試行期
間の開始後初回の処理であれば、本ステップ118が実
行されることにより試行カウンタCGAに“1”が計数さ
れる。ステップ120では、RAM34に記憶されてい
るm個の個体を基に、遺伝的アルゴリズムに従って新世
代の個体m+1が生成される。本ステップ120では、
具体的には、図8に示すルーチンに沿った処理を実行す
ることで新世代の個体m+1が生成される。
At step 118, the trial counter CGA is incremented. If the current processing cycle is the first processing after the start of the trial period, “1” is counted in the trial counter CGA by executing step 118. In step 120, a new generation individual m + 1 is generated based on the m individuals stored in the RAM 34 according to the genetic algorithm. In this step 120,
Specifically, a new generation individual m + 1 is generated by executing the processing according to the routine shown in FIG.

【0039】図8は、遺伝的アルゴリズムに従って新世
代の個体m+1を生成すべくECU26が実行する制御
ルーチンの一例のフローチャートを示す。図8に示すル
ーチンは、上記ステップ120の実行が要求される毎に
起動される。図8に示すルーチンが起動されると先ずス
テップ122の処理が実行される。ステップ122で
は、RAM34に記憶されているm個の個体(個体1〜
個体m)から2つの個体が確率的に選択される。これら
の個体k(k=1〜m)には、それぞれ、上記の如く8
ビットの2値化信号で構成される出力ゲインデータ群G
s(k)(s=1〜N)が記憶されている(図5および
図7参照)。ECU26は、本ステップ122で選択さ
れた2つの個体にそれぞれ記憶されている出力ゲインデ
ータを交配させることにより、新世代の個体m+1を構
成する出力ゲインデータ群Gs(m+1)(s=1〜
N)を生成する。
FIG. 8 shows a flowchart of an example of a control routine executed by the ECU 26 to generate a new generation individual m + 1 according to the genetic algorithm. The routine shown in FIG. 8 is started each time execution of step 120 is requested. When the routine shown in FIG. 8 is started, first, the process of step 122 is executed. In step 122, the m individuals stored in the RAM 34 (individuals 1 to
Two individuals are selected stochastically from the individual m). Each of these individuals k (k = 1 to m) has 8
Output gain data group G composed of binary signals of bits
s (k) (s = 1 to N) is stored (see FIGS. 5 and 7). The ECU 26 crosses the output gain data stored in each of the two individuals selected in the present step 122, so that the output gain data group Gs (m + 1) (s = 1 to 1) constituting the new generation individual m + 1
N).

【0040】ステップ124では、新世代の個体m+1
を生成する際に用いられる交配方法が選択される。本実
施例において、ECU26は、個々の出力ゲインデー
タGs(k)を単位とする交換、個々の出力ゲインデ
ータGs(k)のビットデータを単位とする交叉、また
は、突然変異等の手法を用いて個体間の交配を行う。
本ステップ124では、これらの選択肢から、今回の処
理サイクルで用いられる単数または複数の交配方法が確
率的に選択される。
In step 124, a new generation individual m + 1
Is selected. In the present embodiment, the ECU 26 uses a method such as exchange in units of individual output gain data Gs (k), crossover in units of bit data of individual output gain data Gs (k), or mutation. Mating between individuals.
In the present step 124, one or more mating methods used in the current processing cycle are stochastically selected from these options.

【0041】ステップ126では、交配させる出力ゲイ
ンデータの組み合わせ、交配させるビットデータの組み
合わせ等が確率的に選択される。具体的には、交配方法
として個々の出力ゲインデータGs(k)を単位とす
る交換、または、突然変異が選択されている場合は、
交配させる出力ゲインデータの組み合わせ、または、突
然変異を生じさせる出力ゲインデータの組み合わせが選
択される。また、交配方法としてビットデータを単位
とする交叉が選択されている場合は、交配させるビット
データの組み合わせが選択される。
In step 126, a combination of output gain data to be crossed, a combination of bit data to be crossed, and the like are stochastically selected. More specifically, when a method of breeding is selected in which the individual output gain data Gs (k) is used as a unit or the mutation is selected,
A combination of output gain data to be crossed or a combination of output gain data to cause mutation is selected. When crossover in units of bit data is selected as the mating method, a combination of bit data to be mated is selected.

【0042】ステップ128では、新世代の個体m+1
を生成する処理が実行される。本ステップ128では、
具体的には、上記ステップ122〜126で選択された
交配方法等に従って、2つの個体を基礎として、他の個
体と同様にN個の出力ゲインデータ群Gs(m+1)
(s=1〜N)を有する新世代の個体m+1が生成され
る。本ステップ128の処理が終了すると、今回のルー
チンが終了される。
At step 128, a new generation individual m + 1
Is generated. In this step 128,
Specifically, according to the mating method or the like selected in the above steps 122 to 126, N output gain data groups Gs (m + 1) based on the two individuals in the same manner as the other individuals.
A new generation individual m + 1 having (s = 1 to N) is generated. When the process of step 128 ends, the current routine ends.

【0043】本実施例のメインルーチンにおいて、上記
ステップ120(図4参照)の処理、すなわち、新世代
の個体m+1を生成する処理が終了すると、次にステッ
プ130の処理が実行される。ステップ130では、新
世代の個体m+1の構成要素であるN個の出力ゲインデ
ータ群Gs(m+1)(s=1〜N)が、各偏差sに対
して実現すべき出力ゲインGs(s=1〜N)として記
憶される。ECU26は、以後、上記の如く設定した出
力ゲインGsを用いて、すなわち、新世代の出力ゲイン
データ群Gs(m+1)を用いて回転位置制御の試行を
行う。
In the main routine of this embodiment, when the process of step 120 (see FIG. 4), that is, the process of generating the new generation individual m + 1 is completed, the process of step 130 is executed next. In step 130, N output gain data groups Gs (m + 1) (s = 1 to N), which are constituent elements of the new generation individual m + 1, are output gains Gs (s = 1 to be realized for each deviation s). NN). Thereafter, the ECU 26 performs the trial of the rotational position control using the output gain Gs set as described above, that is, using the new-generation output gain data group Gs (m + 1).

【0044】ステップ132では、上記ステップ104
の場合と同様に、モータ10の駆動が要求されているか
否かが判別される。その結果、モータ10の駆動が要求
されていると判別されると、次にステップ134の処理
が実行される。ステップ134では、変位タイマTMODE
をクリアした後スタートさせる処理が実行される。変位
タイマTMODEは、上記の如くスタートされた後、その計
数値を自動的にインクリメントする自動計数式タイマで
ある。本ルーチンにおいて、変位タイマTMODEは、回転
位置制御の試行に要した時間を計数するタイマとして用
いられる。
In step 132, the above-mentioned step 104
As in the case of, it is determined whether the drive of the motor 10 is requested. As a result, when it is determined that the drive of the motor 10 is requested, the process of step 134 is executed next. In step 134, the displacement timer T MODE
Is executed after clearing. After being started as described above, the displacement timer T MODE is an automatic counting timer that automatically increments its count value. In this routine, the displacement timer T MODE is used as a timer for counting the time required for trial of the rotational position control.

【0045】ステップ136〜144では、新世代の出
力ゲインデータ群Gs(m+1)を用いて、上記ステッ
プ106〜114と同様の手法で、モータ10の回転位
置が目標位置に到達するまで、4つのコイル18〜24
に対して順次励磁電流Iを供給する処理が実行される。
これらの処理が終了すると、次に、ステップ146の処
理が実行される。
In steps 136 to 144, using the new-generation output gain data group Gs (m + 1), in the same manner as in the above steps 106 to 114, until the rotational position of the motor 10 reaches the target position, Coil 18-24
Are sequentially supplied with the excitation current I.
When these processes end, the process of step 146 is executed.

【0046】ステップ146では、上記ステップ144
でモータ10の回転位置が目標位置に到達したと判別さ
れた後、モータ10に生じた最大のオーバーシュート量
Poを検出する処理が実行される。本ステップ146で
は、具体的には、過去に検出されたオーバーシュート量
に比して大きなオーバーシュート量Poが検出された場
合に、その値Poを新たにオーバーシュート量Poとし
て記憶する処理が実行される。
In step 146, the above-mentioned step 144
After it is determined that the rotational position of the motor 10 has reached the target position, a process for detecting the maximum overshoot Po generated in the motor 10 is executed. In step 146, specifically, when an overshoot amount Po larger than the overshoot amount detected in the past is detected, a process of newly storing the value Po as the overshoot amount Po is executed. Is done.

【0047】ステップ148では、上記ステップ144
の条件が成立した後、所定時間TP0が経過したか否かが
判別される。所定時間TP0は、モータ10のオーバーシ
ュートが収束するのに要する時間に比して僅かに長い時
間である。本ステップ148で、未だ所定時間TP0が経
過していないと判別される場合は、再び上記ステップ1
46の処理が実行される。一方、既に所定時間TP0が経
過したと判別される場合は、次にステップ150の処理
が実行される。
In step 148, step 144
After the condition is satisfied, it is determined whether a predetermined time T P0 has elapsed. The predetermined time T P0 is slightly longer than the time required for the overshoot of the motor 10 to converge. If it is determined in step 148 that the predetermined time T P0 has not yet elapsed, step 1
Step 46 is executed. On the other hand, if it is determined that the predetermined time T P0 has already elapsed, the process of step 150 is executed next.

【0048】ステップ150では、変位タイマTMODO
計数を停止させるための処理が実行される。本ステップ
150の処理が実行されると、変位タイマTMODEは、計
数値のインクリメントを停止する。上記の処理によれ
ば、変位タイマTMODEによって、モータ10の駆動が要
求された後、モータ10の回転位置が目標位置に収束す
るまでに要した時間を計数することができる。
In step 150, a process for stopping the counting of the displacement timer T MODO is executed. When the process of step 150 is performed, the displacement timer T MODE stops incrementing the count value. According to the above processing, the time required for the rotation position of the motor 10 to converge to the target position after the drive of the motor 10 is requested by the displacement timer T MODE can be counted.

【0049】ステップ152では、今回の試行で実現さ
れたモータ10の単位収束時間DT MOVEが演算される。
単位収束時間DTMOVEは、モータ10の回転位置が目標
位置に収束するまでに要した時間TMOVEを、その間にモ
ータ10に生じた変位ステップ数SMOVEで除することに
より得られる値である。本実施例のシステムにおいて、
モータ10は、変位ステップ数SMOVEの大小に関わら
ず、単位収束時間DTMO VEが短時間であるほど、収束性
に優れていると判断することができる。
In step 152, the realization is performed in this trial.
Unit convergence time DT of the motor 10 MOVEIs calculated.
Unit convergence time DTMOVEMeans that the rotational position of the motor 10 is the target
Time T required to converge to the positionMOVEIn the meantime
Number of displacement steps S generated in the data 10MOVETo be divided by
It is a value obtained from In the system of the present embodiment,
The motor 10 has a displacement step number SMOVERegardless of the size of
And unit convergence time DTMO VEIs shorter, the convergence
Can be determined to be excellent.

【0050】ステップ154では、次式に従って新世代
の個体m+1に対する評価値X(m+1)が演算され
る。 X(m+1)=α1 ・Po+β1 ・DTMOVE ・・・(1) 上記(1)式によれば、モータ10に生じたオーバーシ
ュート量Poが小さいほど、また、単位収束時間DT
MOVEが短時間であるほど、評価値X(m+1)が小さな
値に演算される。このため、新世代の個体m+1は、そ
の評価値X(m+1)が小さな値であるほど、モータ1
0の回転位置を速やかに、かつ、精度良く目標位置に一
致させる上で優れていると評価することができる。
In step 154, the evaluation value X (m + 1) for the new generation individual m + 1 is calculated according to the following equation. X (m + 1) = α 1 Po + β 1 DT MOVE (1) According to the above equation (1), the smaller the overshoot amount Po generated in the motor 10, the more the unit convergence time DT
The shorter the MOVE is, the smaller the evaluation value X (m + 1) is calculated. Therefore, the smaller the evaluation value X (m + 1) of the new generation individual m + 1 is, the smaller the motor 1
It can be evaluated as excellent in quickly and accurately matching the zero rotational position to the target position.

【0051】尚、上記(1)式中、α1 およびβ1 は、
オーバーシュート量Poおよび単位収束時間DTMODE
重み付けを行うための係数である。具体的には、例え
ば、α 1 をβ1 に比して大きな値に設定すると、新世代
の個体m+1がオーバーシュート量Poの抑制に適して
いる場合に良好な評価が得られ易くなる。また、β1
α1 に比して大きな値に設定すると、新世代の個体m+
1がモータ10の高速変位に適している場合に良好な評
価が得られ易くなる。
In the above equation (1), α1And β1Is
Overshoot Po and unit convergence time DTMODETo
This is a coefficient for performing weighting. Specifically, for example
If α 1To β1When set to a larger value than
M + 1 is suitable for suppressing the amount of overshoot Po
In this case, a good evaluation is easily obtained. Also, β1To
α1When set to a large value compared to, a new generation of individuals m +
1 is suitable for high-speed displacement of the motor 10
Value is easily obtained.

【0052】ステップ156では、(i) 個体1〜個体m
および新世代の個体m+1を、評価値X(k)の小さい
順に個体1〜個体m+1に並べ変える処理、および、(i
i)上記の処理により最も評価が低いと判断された出力ゲ
インデータ群Gs(k)(s=1〜N)を、すなわち、
新たに個体m+1に記憶された出力ゲインデータ群Gs
(m+1)(s=1〜N)を抹消する処理が実行され
る。
In step 156, (i) individual 1 to individual m
And rearranging the individual m + 1 of the new generation into individuals 1 to m + 1 in ascending order of the evaluation value X (k), and (i)
i) The output gain data group Gs (k) (s = 1 to N) determined to have the lowest evaluation by the above processing,
Output gain data group Gs newly stored in individual m + 1
A process for deleting (m + 1) (s = 1 to N) is executed.

【0053】上記の処理によれば、回転位置制御の試行
が行われる毎に、個体1〜個体mに記憶されている出力
ゲインデータ群Gs(k)を、オーバーシュート量Po
を抑制しつつモータ10を高速で変位させる上で優れた
データ群に進化させることができる。そして、上記の処
理によれば、常に、それらのデータ群の中で最も優れた
出力ゲインデータ群Gs(k)を個体1として記憶する
ことができる。
According to the above processing, the output gain data group Gs (k) stored in each of the individuals 1 to m is replaced with the overshoot Po
Can be evolved into a data group that is excellent in displacing the motor 10 at high speed while suppressing the occurrence of data. According to the above processing, the most excellent output gain data group Gs (k) among these data groups can always be stored as the individual 1.

【0054】ステップ158では、試行カウンタCGA
計数値が所定回数NTESTに到達しているか否かが判別さ
れる。その結果、未だCGA≧NTESTが成立しないと判別
される場合は、以後、再び上記ステップ118以降の処
理が実行される。一方、既にCGA≧NTESTが成立すると
判別される場合は、次にステップ160の処理が実行さ
れる。
[0054] At step 158, whether the count value of the attempt counter C GA has reached the predetermined number N TEST is determined. As a result, if it is determined that C GA ≧ N TEST is not established, the processing after step 118 is executed again. On the other hand, if it is determined that C GA ≧ N TEST is satisfied, the process of step 160 is executed next.

【0055】ステップ160では、試行タイマTGAをク
リアする処理が実行される。本ステップ160の処理が
終了すると、今回の処理サイクルが終了される。上記の
処理によれば、試行タイマTGAに所定値T0 が計数され
る毎に、所定回数NTESTだけ繰り返して、新世代の個
体m+1の生成、その個体m+1を用いた回転位置制
御の試行、および、個体1〜個体mの更新を行うこと
ができる。そして、通常時には、ECU26に記憶され
ている個体の中で最も評価の優れた個体1の出力ゲイン
データ群Gs(1)(s=1〜N)を用いて回転位置制
御を行うことができる。このため、本実施例の電動機位
置制御装置によれば、システムの個体差や経時変化に関
わらず、常に、オーバーシュートを抑制しつつモータ1
0を高速で制御することができる。
In step 160, a process for clearing the trial timer TGA is executed. When the process of step 160 ends, the current processing cycle ends. According to the above process, every time the predetermined value T 0 is counted in the trial timer T GA , it is repeated a predetermined number of times N TEST to generate a new generation individual m + 1 and to perform a rotational position control trial using the individual m + 1. , And individual 1 to individual m can be updated. Then, at normal times, the rotational position control can be performed using the output gain data group Gs (1) (s = 1 to N) of the individual 1 having the highest evaluation among the individuals stored in the ECU 26. For this reason, according to the motor position control device of the present embodiment, the motor 1 is always controlled while suppressing the overshoot regardless of the individual difference of the system or the change over time.
0 can be controlled at high speed.

【0056】ところで、上記の実施例においては、単位
収束時間DTMOVEに基づいてモータ10の高速性を評価
している。上記実施例で用いられる単位収束時間DT
MOVEは、モータ10が目標位置に収束するまでの速度
(収束速度)の逆数に相当する値である。本発明におい
て、モータ10の高速性を評価する手法は上記実施例の
手法に限定されるものではなく、その評価は、モータ1
0の収束速度に基づいて直接的に行うこととしてもよ
い。
In the above embodiment, the high-speed performance of the motor 10 is evaluated based on the unit convergence time DT MOVE . Unit convergence time DT used in the above embodiment
MOVE is a value corresponding to the reciprocal of the speed (convergence speed) until the motor 10 converges to the target position. In the present invention, the method of evaluating the high-speed performance of the motor 10 is not limited to the method of the above embodiment, and the evaluation is performed by the motor 1
It may be performed directly based on the convergence speed of zero.

【0057】尚、上記の実施例においては、ポテンショ
メータ48が前記請求項1記載の「回転位置検出手段」
に、出力ゲインGsが前記請求項1記載の「制御値」
に、それぞれ相当していると共に、ECU26が、上記
ステップ106、108、136および138の処理を
実行することにより前記請求項1記載の「位置偏差検出
手段」が、上記ステップ110および140の処理を実
行することにより前記請求項1記載の「制御変数設定手
段」が、上記ステップ112および142の処理を実行
することにより前記請求項1記載の「電動機駆動手段」
が、上記ステップ134および146〜154の処理を
実行することにより前記請求項1記載の「制御値評価手
段」が、上記ステップ120〜128および156の処
理を実行することにより前記請求項1記載の「制御値更
新手段」が、それぞれ実現されている。
In the above embodiment, the potentiometer 48 is the "rotational position detecting means" according to the first aspect.
2. The "control value" according to claim 1, wherein the output gain Gs is
The ECU 26 executes the processing of steps 106, 108, 136 and 138, and the "position deviation detecting means" according to claim 1 executes the processing of steps 110 and 140. By executing, the “control variable setting means” according to claim 1 executes the processing of steps 112 and 142 to execute the “motor driving means” according to claim 1.
Executes the processing of steps 134 and 146 to 154, whereby the “control value evaluation means” of claim 1 executes the processing of steps 120 to 128 and 156 to execute the processing of steps 120 to 128 and 156. "Control value updating means" is realized respectively.

【0058】また、上記の実施例においては、ECU2
6が、上記ステップ146および148の処理を実行す
ることにより前記請求項2記載の「オーバーシュート量
検出手段」が、上記ステップ134、150および15
2の処理を実行することにより前記請求項2記載の「収
束速度検出手段」が、それぞれ実現されている。更に、
上記の実施例においては、出力ゲインデータ群Gs
(k)が前記請求項3記載の「制御値データ」に相当し
ていると共に、ECU26が、上記ステップ120〜1
28の処理を実行することにより前記請求項3記載の
「新世代生成手段」が、上記ステップ156の処理を実
行することにより前記請求項3記載の「評価比較手段」
および「制御値変更手段」が、それぞれ実現されてい
る。
In the above embodiment, the ECU 2
6 executes the processing of steps 146 and 148, whereby the “overshoot amount detecting means” according to claim 2 performs the processing of steps 134, 150 and 15
The "convergence speed detecting means" according to the second aspect is realized by executing the second process. Furthermore,
In the above embodiment, the output gain data group Gs
(K) corresponds to the “control value data” according to the third aspect, and the ECU 26 executes the processing in the steps 120 to 1.
28. The “new generation generating means” according to claim 3 by executing the processing of step 28, and the “evaluation comparing means” according to claim 3 by executing the processing of step 156.
And "control value changing means" are each realized.

【0059】次に、図9乃至図14を参照して、本発明
の第2実施例の電動機位置制御装置について説明する。
本実施例の電動機位置制御装置は、上記図1に示すシス
テム構成において、ECU26に、図9乃至図11に示
すルーチン、および、図14に示すルーチンを実行させ
ることにより実現される。本実施例の電動機位置制御装
置は、出力ゲインGs(s=1〜N)に代入される出力
ゲインデータ群Gs(i)(s=1〜N,i=1〜m+
1)が、免疫的アルゴリズム(Immune Algorithm)に従
って更新される点に特徴を有している。
Next, a motor position control device according to a second embodiment of the present invention will be described with reference to FIGS.
The motor position control device of the present embodiment is realized by causing the ECU 26 to execute the routine shown in FIGS. 9 to 11 and the routine shown in FIG. 14 in the system configuration shown in FIG. The motor position control device according to the present embodiment has an output gain data group Gs (i) (s = 1 to N, i = 1 to m +) substituted for the output gain Gs (s = 1 to N).
1) is characterized in that it is updated according to an immune algorithm (Immune Algorithm).

【0060】図9乃至図11は、本実施例の電動機位置
制御装置において実行されるメインルーチンの一例のフ
ローチャートを示す。尚、図9乃至図11において、上
記図3および図4に示すステップと同一の処理を実行す
るステップについては、同一の符号を付してその説明を
省略または簡略する。図9乃至図11に示すルーチンが
起動されると、先ず、ステップ162の処理が実行され
る。
FIGS. 9 to 11 show a flowchart of an example of a main routine executed in the motor position control device of this embodiment. 9 to 11, steps that execute the same processing as the steps shown in FIGS. 3 and 4 are denoted by the same reference numerals, and description thereof is omitted or simplified. When the routine shown in FIGS. 9 to 11 is started, first, the process of step 162 is executed.

【0061】ステップ162では、試行タイマTIAが所
定値T0 に達しているか否かが判別される。試行タイマ
IAは、モータ10の回転位置制御の試行が終了した後
の時間を計数するためのタイマである。所定時間T
0 は、回転位置制御の試行を実行すべき間隔を定める時
間である。本ステップ162でTIA≧T0 が成立しない
と判別された場合は、未だ試行の時期が到来していない
と判断される。この場合、次にステップ164の処理が
実行される。
[0061] At step 162, whether attempts timer T IA has reached the predetermined value T 0 is determined. The trial timer TIA is a timer for counting the time after the trial of the rotational position control of the motor 10 is completed. Predetermined time T
0 is a time that determines an interval at which the trial of the rotational position control should be executed. If it is determined in this step 162 that T IA ≧ T 0 is not established, it is determined that the trial time has not yet come. In this case, the process of step 164 is executed next.

【0062】ステップ164では、“抗体1”としてR
AM34に記憶されている出力ゲインデータ群Gs
(1)(s=1〜N)が、回転位置制御で用いられる出
力ゲインGs(s=1〜N)として記憶される。出力ゲ
インGsは、モータ10の回転位置と目標位置との偏差
がsステップである場合に、駆動回路38〜44で用い
られる出力ゲインである。
In step 164, R is set as "antibody 1".
Output gain data group Gs stored in AM34
(1) (s = 1 to N) is stored as the output gain Gs (s = 1 to N) used in the rotational position control. The output gain Gs is an output gain used in the drive circuits 38 to 44 when the deviation between the rotation position of the motor 10 and the target position is s steps.

【0063】図12は、本実施例のシステムにおいて、
RAM34の内部に形成される記憶領域の一部を示す。
図12に示す如く、本実施例のシステムにおいて、RA
M34の内部には、抗体生産領域166と記憶細胞領域
168とが形成されている。抗体生産領域166には、
上記ステップ164で用いられる“抗体1”を含むm個
の抗体、および、これらに基づいて生成される“新世代
の抗体m+1”を記憶するための領域が確保されてい
る。抗体1は、抗体生産領域166に記憶される複数の
抗体のうち“抗原”に対して最も効き目のある抗体であ
る。
FIG. 12 shows a system according to this embodiment.
2 shows a part of a storage area formed inside the RAM 34.
As shown in FIG. 12, in the system of the present embodiment, RA
Inside M34, an antibody producing region 166 and a memory cell region 168 are formed. In the antibody production region 166,
An area for storing m antibodies including “antibody 1” used in the above step 164 and “new generation antibody m + 1” generated based on them is secured. The antibody 1 is the most effective antibody for the “antigen” among the plurality of antibodies stored in the antibody production region 166.

【0064】ここで“抗原”とは、本実施例のシステム
によって無害化すべき刺激である。本実施例の電動機位
置制御装置は、オーバーシュート量Poを抑制しつ
つ、モータ10を高速で目的位置まで回転させるこ
と、すなわち、モータ10において高い収束速度を得る
ことを目的としている。従って、本実施例において“抗
原”は、モータ10に生ずるオーバーシュート量Poと
モータ10の収束速度である。また、抗体1は、抗体生
産領域166に記憶される複数の抗体のうち、車体のバ
ネ上挙動の安定化を図るうえで最も優れた抗体である。
Here, the “antigen” is a stimulus to be rendered harmless by the system of this embodiment. The motor position control device of the present embodiment aims at rotating the motor 10 to a target position at a high speed while suppressing the overshoot Po, that is, obtaining a high convergence speed in the motor 10. Therefore, in this embodiment, the “antigen” is the overshoot amount Po generated in the motor 10 and the convergence speed of the motor 10. The antibody 1 is the most excellent antibody among the plurality of antibodies stored in the antibody production area 166 in stabilizing the sprung behavior of the vehicle body.

【0065】記憶細胞領域168には、最大NMAX 個の
保存抗体を記憶することができる。本実施例において、
記憶細胞領域168には、“保存抗体1”〜“保存抗体
m”までm個(≦NMAX 個)のデータ群(以下、“保存
抗体i”(i=1〜m)と称す)が記憶されている。保
存抗体iは、過去において“抗原”に対して有効である
と判断された抗体である。それぞれの保存抗体iには、
第1実施例における個体kと同様に、回転位置と目標位
置との偏差ステップ数s(s=1〜N)に対応する出力
ゲインデータ群Gs(i)が記憶されている。
The memory cell area 168 can store up to N MAX conserved antibodies. In this embodiment,
The memory cell region 168 stores m (≦ N MAX ) data groups (hereinafter “conserved antibody i” (i = 1 to m)) from “conserved antibody 1” to “conserved antibody m”. Have been. Conserved antibody i is an antibody that has been previously determined to be effective against an “antigen”. For each stored antibody i,
Similarly to the individual k in the first embodiment, an output gain data group Gs (i) corresponding to the number of deviation steps s (s = 1 to N) between the rotational position and the target position is stored.

【0066】記憶細胞領領域168には、保存抗体iの
それぞれに対応して抗原親和度Viが記憶されている。
抗原親和度Viは、抗原に対する保存抗体iの効き目を
定性的に表した値である。より具体的には、抗原親和度
Viは、保存抗体iに記憶されている出力ゲインデータ
群Gs(i)(s=1〜N)を用いて行われる回転位置
制御に伴って発生するオーバーシュート量Po、およ
び、その回転位置制御によって実現される収束速度に基
づいて、抗体iの良否を定性的に表した値である。尚、
抗原親和度Viの演算式については、後に詳細に説明す
る。
In the memory cell region 168, the antigen affinity Vi is stored for each of the stored antibodies i.
The antigen affinity Vi is a value qualitatively representing the effect of the stored antibody i on the antigen. More specifically, the antigen affinity Vi is an overshoot generated by the rotation position control performed using the output gain data group Gs (i) (s = 1 to N) stored in the storage antibody i. It is a value qualitatively representing the quality of the antibody i based on the amount Po and the convergence speed realized by the rotation position control. still,
The arithmetic expression of the antigen affinity Vi will be described later in detail.

【0067】抗体生産領域166に記憶される抗体1〜
抗体mは、記憶細胞領域168に記憶されるm個の保存
抗体iを基礎として生成される。具体的には、ECU2
6は、所定の時期において記憶細胞領域168に記憶さ
れている保存抗体iの内容を抗体生産領域166にロー
ドして、抗体生産領域166にm個の初期抗体群(抗体
1〜抗体m)を形成させる。抗体生産領域166に形成
された初期抗体群は、その後、新世代の抗体m+1を生
成する基礎として用いられると共に、抗原に対してより
優れた効き目を発揮する抗体群に更新される。
Antibodies 1 to 1 stored in the antibody production area 166
The antibody m is generated based on the m conserved antibodies i stored in the memory cell area 168. Specifically, the ECU 2
6 loads the contents of the stored antibody i stored in the memory cell area 168 at a predetermined time into the antibody production area 166, and stores m initial antibody groups (antibodies 1 to m) in the antibody production area 166. Let it form. The initial antibody group formed in the antibody production region 166 is then used as a basis for generating a new generation of antibody m + 1, and is updated to a group of antibodies that exerts superior effects on the antigen.

【0068】その結果、抗体生産領域166中に、保存
抗体として記憶する価値を有する抗体iが生成される
と、その抗体iが、新たな保存抗体として記憶細胞領域
168に記憶される。この際、記憶細胞領域168に、
既に上限値であるNMAX 個の保存抗体が記憶されている
場合は、記憶細胞領域168において、新たに保存抗体
とすべき抗体iと、その抗体iと最も特性の近似した保
存抗体との入れ換えが行われる。
As a result, when an antibody i having a value to be stored as a conserved antibody is generated in the antibody producing region 166, the antibody i is stored in the memory cell region 168 as a new conserved antibody. At this time, in the memory cell area 168,
When N MAX conserved antibodies, which are the upper limit, are already stored, in the memory cell region 168, the antibody i to be newly set as the conserved antibody is replaced with the conserved antibody having the closest characteristic to the antibody i. Is performed.

【0069】図13は、抗体iに記憶されている出力ゲ
インデータ群Gs(i)、および、ECU26が、抗体
iと関連させて記憶する各種データの種類を示す。図1
3に示す如く、ECU26は、それぞれの抗体iと関連
付けて、抗原親和度Vi、抗体間親和度Uij(j
=1〜m+1、i≠j)、飽和度Si、および、期
待値EXiを記憶している。
FIG. 13 shows the output gain data group Gs (i) stored in the antibody i and the types of various data stored by the ECU 26 in association with the antibody i. FIG.
As shown in FIG. 3, the ECU 26 associates the antigen affinity Vi and the inter-antibody affinity Uij (j
= 1 to m + 1, i ≠ j), the degree of saturation Si, and the expected value EXi.

【0070】抗原親和度Viは、上述の如く、オーバ
ーシュート量Poとモータの収束速度とに基づく抗体i
の評価を定性的に表した値である。この値は、第1実施
例における評価値X(k)と同様に、抗体iを用いて回
転位置制御を実行した際に発生するオーバーシュート量
Poと、その制御によって実現される単位収束時間DT
MODEとを用いて、次式の如く表すことができる。
As described above, the antigen affinity Vi is determined based on the amount of overshoot Po and the convergence speed of the motor.
Is a value qualitatively expressing the evaluation of. This value is, like the evaluation value X (k) in the first embodiment, the amount of overshoot Po generated when the rotational position control is performed using the antibody i, and the unit convergence time DT realized by the control.
Using MODE , it can be expressed as follows.

【0071】 Vi=α2 ・Po+β2 ・DTMOVE ・・・(2) 尚、上記(2)式中、α2 およびβ2 は、2 は、オーバ
ーシュート量Poおよび単位収束時間DTMODEに重み付
けを行うための係数である。抗原親和度Viが上記
(2)式により演算される場合、抗体iは、抗原親和度
Viの値が小さいほど、オーバーシュート量Poを抑制
しつつモータ10を高速回転させるうえで好適であると
評価できる。抗体生産領域166において、抗体1〜抗
体mは、その順で抗原親和度Viが大きな値となるよう
に整理されている。従って、抗体生産領域166に記憶
される抗体の中では、抗体1が最も評価の優れた抗体で
ある。
[0071] Vi = α 2 · Po + β 2 · DT MOVE ··· (2) It should be noted that, in the above equation (2), α 2 and β 2 is, 2, weighted to overshoot the amount of Po and the unit convergence time DT MODE Is a coefficient for performing When the antigen affinity Vi is calculated by the above equation (2), it is considered that the smaller the value of the antigen affinity Vi, the more suitable the antibody i is for the high-speed rotation of the motor 10 while suppressing the overshoot Po. Can be evaluated. In the antibody production region 166, the antibodies 1 to m are arranged such that the antigen affinity Vi becomes larger in that order. Therefore, among the antibodies stored in the antibody production region 166, the antibody 1 is the antibody with the highest evaluation.

【0072】抗体間親和度Uij(j=1〜m+1、
i≠j)は、抗体iに記憶されている出力ゲインデータ
群Gs(i)が、抗体生産領域166に記憶されている
他の抗体j(j=1〜m+1、i≠j)に記憶されてい
る出力ゲインデータ群Gs(j)とどの程度類似してい
るかを定性的に表した値である。本実施例において、抗
体iの出力ゲインデータ群Gsと偏差ステップ数sとの
関係は、上記図6に示す如く、Gsとsとの2次元座標
上に表すことができる。そして、2次元座標上で出力ゲ
インデータ群Gsを結ぶことによりGsとsとの関係を
表す特性曲線を得ることができる。Gsとsとの2次元
座標上に表された特性曲線については、最小二乗法によ
り定めた回帰直線Gs=ai・s+biにより、その直
線的傾向を表すことができる。尚、回帰直線を表す“a
i”および“bi”は、抗体iの出力ゲインデータ群G
sについて(Gs−ai・s−bi)2 をs=1〜Nま
で累積した場合に、その累積値を最小とする係数として
定められた値である。
The affinity between antibodies Uij (j = 1 to m + 1,
i ≠ j) indicates that the output gain data group Gs (i) stored in the antibody i is stored in another antibody j (j = 1 to m + 1, i ≠ j) stored in the antibody production area 166. This is a value qualitatively representing how similar the output gain data group Gs (j) is. In the present embodiment, the relationship between the output gain data group Gs of the antibody i and the number of deviation steps s can be represented on the two-dimensional coordinates of Gs and s as shown in FIG. Then, by connecting the output gain data group Gs on the two-dimensional coordinates, a characteristic curve representing the relationship between Gs and s can be obtained. Regarding the characteristic curve represented on the two-dimensional coordinates of Gs and s, a linear trend can be represented by a regression line Gs = ai · s + bi determined by the least squares method. Note that "a" representing the regression line
“i” and “bi” are output gain data group G for antibody i
When s = (Gs−ai · s−bi) 2 is accumulated from s = 1 to N, this is a value determined as a coefficient that minimizes the accumulated value.

【0073】同様に、抗体jについても、Gsとsとの
2次元座標上に、抗体jの出力ゲインデータ群Gsと偏
差ステップ数sとの関係を表す特性曲線を表すことがで
きる。また、その特性曲線についても、最小二乗法によ
り定めた回帰直線Gs=aj・s+bjにより、その直
線的傾向を表すことができる。尚、回帰直線を表す“a
j”および“bj”は、抗体jの出力ゲインデータ群G
sについて(Gs−aj・s−bj)2 をs=1〜Nま
で累積した場合に、その累積値を最小とする係数として
定められた値である。このように、本実施例において
は、抗体iおよび抗体jのそれぞれについて、出力ゲイ
ンデータ群Gsに対応する回帰直線を特定することがで
きる。
Similarly, for the antibody j, a characteristic curve representing the relationship between the output gain data group Gs of the antibody j and the number of deviation steps s can be represented on the two-dimensional coordinates of Gs and s. In addition, the characteristic curve can also be represented by a linear trend using a regression line Gs = aj · s + bj determined by the least square method. Note that "a" representing the regression line
“j” and “bj” are the output gain data group G of antibody j.
When s is equal to (Gs−aj · s−bj) 2 s = 1 to N, this is a value determined as a coefficient that minimizes the accumulated value. As described above, in the present embodiment, a regression line corresponding to the output gain data group Gs can be specified for each of the antibody i and the antibody j.

【0074】抗体iと抗体jとは、上記の如く特定され
る回帰直線の傾き“a”および“c”が近似しているほ
ど、互いに類似していると判断できる。従って、本実施
例において、抗体iと抗体jとの抗体間親和度Uij
は、次式に従って求めることができる。 Uij=(ai−aj)2 ・・・(3) 抗体間親和度Uijが上記(3)式により演算される場
合、抗体iと抗体jとは、抗体間親和度Uijの値が小
さいほど類似していると判断できる。
The closer the gradients “a” and “c” of the regression line specified as described above are, the more similar the antibodies i and j are to each other. Therefore, in this example, the affinity Uij between the antibodies i and j
Can be obtained according to the following equation. Uij = (ai−aj) 2 (3) When the inter-antibody affinity Uij is calculated by the above equation (3), the antibody i and the antibody j are more similar as the value of the inter-antibody affinity Uij is smaller. You can judge that you are doing.

【0075】飽和度Siは、抗体生産領域166中に
記憶されている抗体の中に、抗体iに近似する抗体がど
の程度の割合で存在するかを定性的に表した値である。
本実施例において、抗体iの飽和度は、次式に従って求
めることができる。 Si=NSIMILAR /m ・・・(4) 上記(4)式中、NSIMILAR は、抗体生産領域166中
に存在する他の抗体jの中で、抗体iに近似していると
判断される抗体の数である。ここで、抗体iと他の抗体
jとは、両者の抗体間親和度Uijが所定値UTHに比し
て小さい場合に近似していると判断される。従って、抗
体iの飽和度Siは、抗体生産領域166中に、Uij
<UTHの関係を満たす抗体jが数多く存在するほど
“1.0”に近い値となる。
The saturation Si is a value qualitatively representing the proportion of the antibodies stored in the antibody production region 166 that are close to the antibody i.
In this example, the saturation of the antibody i can be determined according to the following equation. Si = N SIMILAR / m (4) In the above formula (4), N SIMILAR is determined to be similar to antibody i among other antibodies j present in antibody production region 166. The number of antibodies. Here, the antibody i and other antibody j, between both antibody affinity Uij is determined to be approximated is smaller than the predetermined value U TH. Therefore, the saturation Si of the antibody i is expressed in the antibody production region 166 as Uij
<A value close enough to "1.0" that there are many antibodies j satisfies the relationship U TH.

【0076】期待値EXiは、抗体iを新世代の抗体
m+1の基礎とすべきか否かを判断するための指標であ
る。本実施例のシステムにおいて、ECU26は、後述
の如く、抗体生産領域166に記憶されているm個の抗
体の中から、最も期待値EXiの高い抗体iを2つ選択
し、それらを交配させることにより新世代の抗体m+1
を生成する。従って、新世代の抗体m+1には、大きな
期待値EXiを有する抗体iの遺伝子が承継され易い。
The expected value EXi is an index for determining whether or not the antibody i should be used as the basis for the new generation antibody m + 1. In the system according to the present embodiment, as described later, the ECU 26 selects two antibodies i having the highest expected value EXi from the m antibodies stored in the antibody production area 166 and crosses them. New generation antibody m + 1
Generate Therefore, the gene of antibody i having a large expected value EXi is likely to be inherited by the new generation antibody m + 1.

【0077】換言すると、抗体iの期待値EXiは、そ
の抗体iの価値が高いほど大きな値とされるべき値であ
る。本実施例において、抗体iには、その抗体iが他の
抗体jと比較して抗原に対して優れた効き目を発揮する
ほど高い価値が認められる。一方、抗体iの価値は、抗
体生産領域166中に抗体iに似た抗体が多数存在する
ほど低下すると共に、記憶細胞領域168中に抗体iに
似た保存抗体が数多く記憶されているほど低下する。こ
れらの点を考慮して、抗体iの期待値EXiは、次式に
従って演算される。
In other words, the expected value EXi of the antibody i is a value that should be made larger as the value of the antibody i becomes higher. In this example, the value of the antibody i is higher as the antibody i exerts an excellent effect on the antigen as compared with the other antibodies j. On the other hand, the value of antibody i decreases as more antibodies similar to antibody i are present in antibody production region 166, and decreases as more stored antibodies similar to antibody i are stored in memory cell region 168. I do. In consideration of these points, the expected value EXi of the antibody i is calculated according to the following equation.

【0078】 EXi=Vi/{(NSC1 /m)・(NSC2 /m)} ・・・(5) 上記(5)式中“m”は抗体の総数(=保存抗体の総
数)である。また、“N SC1 ”および“NSC2 ”は、そ
れぞれ、抗体生産領域166に記憶される抗体のうち
「Vi−ΔSC≦Vj≦Vi+ΔSC」の関係を満たす抗原
親和度Vjを有するものの数、および、記憶細胞領域1
68に記憶される保存抗体のうち「Vi−Δ SC≦Vj≦
Vi+ΔSC」の関係を満たす抗原親和度Vjを有するも
のの数である。尚、ΔSCは、抗原に対する効き目が抗体
親和度Viと実質的に同一である範囲を定めるべく予め
設定された値である。
EXi = Vi / {(NSC1/ M) ・ (NSC2/ M)} (5) In the above formula (5), “m” is the total number of antibodies (= the total number of stored antibodies).
Number). Also, “N SC1"And" NSC2"
Each of the antibodies stored in the antibody production area 166
"Vi-ΔSC≦ Vj ≦ Vi + ΔSCThat satisfies the relationship
Number of those having affinity Vj and memory cell region 1
Among the stored antibodies stored in No. 68, “Vi-Δ SC≦ Vj ≦
Vi + ΔSCHas an antigen affinity Vj that satisfies the relationship
Is the number of Note that ΔSCIs an antibody whose effect on the antigen is
In order to determine a range that is substantially the same as the affinity Vi,
This is the set value.

【0079】上記(5)式によれば、抗体iは、その希
少価値が高く、かつ、オーバーシュト量Poを抑制しつ
つモータ10を高速で回転させることができる場合に、
高い期待値EXiを得ることができる。本実施例のメイ
ンルーチンにおいて、上記ステップ164の処理が終了
すると、以後、第1実施例の場合と同様に、ステップ1
04〜114の処理が実行されることにより、抗体1の
出力ゲインデータ群Gs(1)を用いた回転位置制御が
実行される。抗体1の出力ゲインデータ群Gs(1)
は、上記の如く、抗体生産領域166に記憶される抗体
の中で最も評価の良い抗体である。従って、本実施例の
電動機位置制御装置によれば、回転位置制御の実行中
に、オーバーシュート量を抑制しつつモータ10を高速
で回転させることができる。
According to the above formula (5), when the antibody i has a high rarity value and can rotate the motor 10 at high speed while suppressing the overshoot Po,
A high expected value EXi can be obtained. In the main routine of this embodiment, when the processing of step 164 is completed, thereafter, as in the first embodiment, step 1 is executed.
By executing the processes of 04 to 114, the rotational position control using the output gain data group Gs (1) of the antibody 1 is executed. Output gain data group Gs (1) of antibody 1
Is the most highly evaluated antibody among the antibodies stored in the antibody producing region 166 as described above. Therefore, according to the motor position control device of the present embodiment, the motor 10 can be rotated at a high speed while suppressing the overshoot amount during the execution of the rotational position control.

【0080】本実施例のメインルーチンにおいて、上記
ステップ162で試行タイマTIAが所定時間T0 以上で
あると判別されると、次に、図10に示すステップ17
0の処理が実行される。ステップ170では、抗体生産
領域166中に初期抗体群を生成する処理が実行され
る。本ステップ170では、具体的には、記憶細胞領域
168に記憶されているm個の保存抗体iの内容を抗体
生産領域166にロードして、抗体生産領域166中に
m個の抗体i(i=1〜m)を生成する処理が実行され
る。
In the main routine of this embodiment, if it is determined in step 162 that the trial timer T IA is equal to or longer than the predetermined time T 0 , then step 17 shown in FIG.
0 is executed. In step 170, processing for generating an initial antibody group in the antibody production area 166 is executed. In this step 170, specifically, the contents of the m stored antibodies i stored in the memory cell area 168 are loaded into the antibody production area 166, and the m antibodies i (i = 1 to m) is executed.

【0081】ステップ172では、上記ステップ170
で抗体1として記憶された内容が、新世代の抗体m+1
として記憶される。以後、回転位置制御の初回の試行
は、本ステップ172で新世代の抗体m+1とされた抗
体1を用いて、すなわち、初期抗体群の中で最も抗原に
対して優れた効き目を発揮する抗体を用いて実行され
る。
In step 172, the above step 170
Is stored as antibody 1 in the new generation antibody m + 1
Is stored as Thereafter, the first trial of the rotational position control is performed using the antibody 1 which has been determined to be the new generation antibody m + 1 in this step 172, that is, the antibody exhibiting the best effect on the antigen in the initial antibody group is determined. Performed using

【0082】ステップ174では、試行カウンタCIA
クリアされる。試行カウンタCIAは、試行期間が開始さ
れた後、車高制御の試行が繰り返された回数を計数する
ためのカウンタである。ステップ176では、試行カウ
ンタCIAをインクリメントする処理が実行される。今回
の処理サイクルが、試行期間の開始後初回の処理であれ
ば、本ステップ176が実行されることにより試行カウ
ンタCIAに“1”が計数される。
At step 174, the trial counter CIA is cleared. The trial counter CIA is a counter for counting the number of times the trial of the vehicle height control is repeated after the trial period is started. In step 176, a process of incrementing the trial counter CIA is performed. If the current processing cycle is the first processing after the start of the trial period, “1” is counted in the trial counter CIA by executing step 176.

【0083】ステップ178では、抗体生産領域166
に記憶される抗体i(i=1〜m+1)のそれぞれと、
他の抗体j(j=1〜m+1、j≠i)のそれぞれとの
抗体間親和度Uijが演算される。抗体間親和度Uij
は、上記(3)式に従って演算される。抗体iについて
の抗体間親和度Uij(j=1〜m+1、j≠i)は、
上記の如く抗体iと関連付けて記憶される(図13参
照)。
In step 178, the antibody producing region 166
Each of the antibodies i (i = 1 to m + 1) stored in
The affinity Uij between the antibodies and each of the other antibodies j (j = 1 to m + 1, j ≠ i) is calculated. Affinity between antibodies Uij
Is calculated according to the above equation (3). The inter-antibody affinity Uij (j = 1 to m + 1, j) i) for antibody i is
It is stored in association with the antibody i as described above (see FIG. 13).

【0084】ステップ180では、新世代の抗体m+1
の出力ゲインデータ群Gs(m+1)を出力ゲインGs
とする処理が実行される。本ステップ180の処理が実
行されると、以後、ECU26は新世代の出力ゲインデ
ータ群Gs(m+1)を用いて回転位置制御の試行を行
う。本ステップ180の処理が終了すると、次にステッ
プ132の処理が実行される。
In step 180, the new generation antibody m + 1
Output gain data group Gs (m + 1)
Is performed. After the processing of step 180 is executed, the ECU 26 thereafter performs a trial of the rotational position control using the new-generation output gain data group Gs (m + 1). When the process of step 180 is completed, the process of step 132 is executed.

【0085】ステップ132〜144では、第1実施例
の場合と同様に、新世代の出力ゲインデータ群Gs(m
+1)を用いた回転位置制御の試行が行われる。これら
の処理が実行されることにより、モータ10の回転位置
が目標位置に到達したと判別されると(ステップ14
4)、次に図11に示すステップ196の処理が実行さ
れる。
In steps 132 to 144, as in the first embodiment, a new generation output gain data group Gs (m
A trial of the rotational position control using +1) is performed. By executing these processes, when it is determined that the rotational position of the motor 10 has reached the target position (step 14).
4) Then, the process of step 196 shown in FIG. 11 is executed.

【0086】ステップ146〜152では、第1実施例
の場合と同様に、今回の試行に伴ってモータ10に発生
したオーバーシュート量Poを検出する処理、および、
今回の試行において実現された単位収束時間DTMOVE
演算する処理が実行される。これらの処理が終了する
と、次にステップ182の処理が実行される。ステップ
182では、上記の如く検出すたオーバーシュート量P
o、および、上記の如く演算した単位収束時間DTMOVE
を上記(2)式に代入することにより、新世代の抗体m
+1の抗原親和度Viが演算される。
In steps 146 to 152, as in the case of the first embodiment, a process of detecting the overshoot Po generated in the motor 10 due to the current trial, and
A process of calculating the unit convergence time DT MOVE realized in this trial is executed. When these processes end, the process of step 182 is executed next. In step 182, the overshoot amount P detected as described above
o and the unit convergence time DT MOVE calculated as described above
Into the above equation (2) to obtain a new generation of antibody m
An antigen affinity Vi of +1 is calculated.

【0087】ステップ184では、抗体生産領域166
に記憶されている抗体1〜抗体m+1のそれぞれについ
て、飽和度Si(i=1〜m+1)が演算される。抗体
iの飽和度Siは、上述の如く、抗体生産領域166中
に存在する他の抗体jのうち、抗体iとの抗体親和度U
ijが所定値UTHに満たないものの数NSIMILAR を、上
記(4)式に代入することにより演算される。
In step 184, the antibody producing region 166
The saturation Si (i = 1 to m + 1) is calculated for each of the antibody 1 to the antibody m + 1 stored in the step S1. As described above, the saturation Si of the antibody i is the antibody affinity U with the antibody i among the other antibodies j present in the antibody production region 166.
The calculation is performed by substituting the number N SIMILAR of those for which ij is less than the predetermined value U TH into the above equation (4).

【0088】ステップ186では、抗体生産領域166
中に、保存抗体として記憶する価値を有する抗体が存在
するか否かが判別される。抗体生産領域166中に記憶
される抗体群は、回転位置制御の試行が繰り返されるに
連れて、現在の状況下で抗原に対して良好な効き目を発
揮する抗体群に進化する。このような進化が継続して行
われると、抗体生産領域166中に記憶されるそれぞれ
の抗体は、互いに類似したものに進化する。
In step 186, the antibody producing region 166
Among them, it is determined whether or not there is an antibody having a value to be stored as a stored antibody. The group of antibodies stored in the antibody production area 166 evolves into a group of antibodies that exerts a good effect on the antigen under the current situation as the trial of the rotational position control is repeated. As such evolution continues, each antibody stored in the antibody production region 166 evolves to be similar to each other.

【0089】換言すると、抗体生産領域166に記憶さ
れる抗体群の更新が繰り返し行われた結果、その抗体群
の中に互いに類似する抗体が複数生成された場合には、
それらの抗体を、現在の状況下で抗原に対して有効に作
用する抗体と認識することができる。本実施例におい
て、抗体生産領域166中に、抗体iに類似する他の抗
体jが多数存在する場合は、抗体iの飽和度Siが大き
な値となる。従って、本実施例のシステムにおいて、抗
体生産領域166に記憶されている抗体群のうち、飽和
度Siの大きな抗体iは、現在の状況下で特に有効な抗
体と認識することができる。
In other words, when a plurality of antibodies similar to each other are generated in the group of antibodies as a result of repeatedly updating the group of antibodies stored in the antibody production area 166,
Those antibodies can be recognized as antibodies that effectively act on the antigen under the current circumstances. In the present embodiment, when many other antibodies j similar to the antibody i exist in the antibody production region 166, the saturation Si of the antibody i becomes a large value. Therefore, in the system according to the present embodiment, the antibody i having a high degree of saturation Si can be recognized as a particularly effective antibody under the current situation among the antibody groups stored in the antibody production area 166.

【0090】上記ステップ186では、所定値STH以上
の飽和度Siを有する抗体iが、保存抗体として記憶す
る価値のある抗体と判断される。このような判断によれ
ば、特定の状況下で有効に作用する抗体を、記憶細胞領
域168に複数記憶させることができる。上記ステップ
186で、抗体生産領域166中に保存抗体として記憶
する価値のある抗体が存在すると判別された場合は、次
にステップ188の処理が実行される。一方、保存抗体
として記憶する価値のある抗体が存在しないと判別され
た場合は、ステップ188〜194がジャンプされ、次
にステップ196の処理が実行される。
In step 186, it is determined that the antibody i having the saturation Si equal to or higher than the predetermined value S TH is an antibody worth storing as a stored antibody. According to such a determination, a plurality of antibodies that effectively act under a specific situation can be stored in the memory cell region 168. If it is determined in step 186 that there is an antibody worth storing as a preserved antibody in the antibody production area 166, the process of step 188 is executed. On the other hand, if it is determined that there is no antibody worth storing as a preserved antibody, steps 188 to 194 are jumped, and the process of step 196 is executed.

【0091】ステップ188では、記憶細胞領域168
に記憶されている保存抗体の数が、上限値NMAX に達し
ているか否かが判別される。その結果、既にNMAX 個の
保存抗体が記憶されていると判別される場合は、次にス
テップ190の処理が実行される。一方、記憶細胞領域
168中に、NMAX 個の保存抗体が記憶されていないと
判別される場合は、ステップ190および192がジャ
ンプされ、次にステップ194の処理が実行される。
In step 188, the memory cell area 168
It is determined whether or not the number of stored antibodies stored in the. Has reached the upper limit NMAX . As a result, if it is determined that N MAX stored antibodies have already been stored, the process of step 190 is executed. On the other hand, when it is determined that N MAX conserved antibodies are not stored in the memory cell region 168, steps 190 and 192 are jumped, and the process of step 194 is executed.

【0092】ステップ190では、記憶細胞領域168
に記憶されている保存抗体j(j=1〜m)のそれぞれ
と、新たに保存抗体として記憶すべき抗体iとの抗体間
親和度Uijが演算される。本ステップ190におい
て、抗体間親和度Uijは、保存抗体jの出力ゲインデ
ータ群Gs(j)に対応する回帰直線の傾きajと、抗
体iの出力ゲインデータ群Gs(i)に対応する回帰直
線の傾きbiとを、上記(3)式に代入することにより
演算される。
In step 190, the memory cell area 168
Is calculated between each of the stored antibodies j (j = 1 to m) stored in the storage device and an antibody i to be newly stored as a stored antibody. In this step 190, the affinity between antibodies Uij is calculated by calculating the slope aj of the regression line corresponding to the output gain data group Gs (j) of the stored antibody j and the regression line corresponding to the output gain data group Gs (i) of the antibody i. Is calculated by substituting the inclination bi of equation (3) into the equation (3).

【0093】ステップ192では、記憶細胞領域168
に記憶される保存抗体群の中で、新たに保存抗体とすべ
き抗体iと最も類似する保存抗体jが、すなわち、抗体
iとの抗体間親和度Uijが最も小さな値となった保存
抗体jが抹消される。本ステップ192の処理が実行さ
れることにより、記憶細胞領域168中に、抗体iを新
たに記憶するための領域が確保される。
In step 192, the memory cell area 168
Among the group of stored antibodies stored in the storage antibody j, the stored antibody j most similar to the antibody i to be newly stored is the stored antibody j in which the affinity Uij between the antibody i and the antibody i has the smallest value. Is deleted. By executing the processing of step 192, an area for newly storing the antibody i is secured in the memory cell area 168.

【0094】ステップ194では、新たに保存抗体とす
べき抗体iが、記憶細胞領域に記憶される。上記の処理
によれば、記憶細胞領域168に既にNMAX 個の保存抗
体が記憶されている場合は、抗体iが、その抗体iと最
も類似する保存抗体jと入れ代わるかたちで新たな保存
抗体とされる。抹消される保存抗体jは、過去におい
て、特定の状況下で有効な効き目を発揮すると評価され
た価値のある抗体である。しかしながら、その保存抗体
jに近似する抗体iによれば、保存抗体jと同等の効果
を得ることができる。このため、保存抗体jと抗体iと
を入れ換えても、実質的に不利益が生ずることはない。
In step 194, the antibody i to be newly stored is stored in the memory cell area. According to the above processing, when N MAX conserved antibodies are already stored in the memory cell region 168, the antibody i is replaced with a conserved antibody j which is the most similar to the antibody i and a new conserved antibody is used. Is done. The deleted conserved antibody j is a valuable antibody that has been evaluated in the past to be effective in certain situations. However, according to the antibody i similar to the conserved antibody j, the same effect as the conserved antibody j can be obtained. Therefore, there is no substantial disadvantage even if the stored antibody j is replaced with the antibody i.

【0095】ステップ196では、(i) 抗体生産領域1
66に記憶されている抗体1〜抗体m+1を、抗原親和
度Viの小さい順に抗体1〜抗体m+1に並べ変える処
理、および、(ii)上記の処理により最も効き目がないと
判断された出力ゲインデータ群Gs(i)を、すなわ
ち、新たに抗体m+1として記憶された出力ゲインデー
タ群Gs(m+1)を抗体生産領域166から抹消する
処理が実行される。
In step 196, (i) the antibody producing region 1
A process of rearranging the antibody 1 to the antibody m + 1 stored in the order 66 into the antibody 1 to the antibody m + 1 in ascending order of the antigen affinity Vi; and (ii) output gain data determined to be ineffective by the above process. A process of deleting the group Gs (i), that is, the output gain data group Gs (m + 1) newly stored as the antibody m + 1 from the antibody production area 166 is executed.

【0096】上記の処理によれば、回転位置制御の試行
が行われる毎に、抗体1〜抗体mに記憶されている出力
ゲインデータ群Gs(i)を、オーバーシュート量Po
を抑制しつつモータ10を高速で回転させるうえでより
優れたデータ群に進化させることができると共に、常
に、それらのデータ群の中で最も優れた出力ゲインデー
タ群を抗体1として記憶することができる。
According to the above processing, the output gain data group Gs (i) stored in the antibodies 1 to m is changed to the overshoot amount Po each time the rotation position control is attempted.
It is possible to evolve into a data group superior in rotating the motor 10 at a high speed while suppressing the noise, and always to store the most excellent output gain data group in the data group as the antibody 1. it can.

【0097】ステップ198では、試行カウンタCIA
計数値が所定回数NTESTに到達しているか否かが判別さ
れる。その結果、既にCIA≧NTESTが成立すると判別さ
れる場合は、次にステップ200の処理が実行される。
一方、未だCIA≧NTESTが成立しないと判別される場合
は、次にステップ202の処理が実行される。ステップ
200では、試行タイマTGAをクリアする処理が実行さ
れる。本ステップ200の処理が終了すると、回転位置
制御の試行が終了すると共に、今回の処理サイクルが終
了される。
[0097] At step 198, whether the count value of the attempt counter C IA has reached the predetermined number N TEST is determined. As a result, if it is determined that C IA ≧ N TEST is already established, the process of step 200 is executed next.
On the other hand, if it is determined that C IA ≧ N TEST is not established, the process of step 202 is executed next. In step 200, a process of clearing the trial timer TGA is executed. When the process of step 200 ends, the trial of the rotational position control ends, and the current processing cycle ends.

【0098】ステップ202では、抗体生産領域166
に記憶されているm個の抗体i(i=1〜m)のそれぞ
れについて、期待値EXiが演算される。期待値EXi
は、抗体iの抗原親和度Vi、抗体iと保存抗体j(j
=1〜m)との抗体間親和度Uij、抗体iの飽和度S
i、および、抗体iと他の抗体j(j=1〜m、j≠
i)との抗体間親和度Uijを、上記(5)式に代入す
ることで演算される。本ステップ202の処理が終了す
ると次にステップ204の処理が実行される。
In step 202, the antibody producing region 166
The expected value EXi is calculated for each of the m antibodies i (i = 1 to m) stored in Expected value EXi
Is the antigen affinity Vi of antibody i, antibody i and stored antibody j (j
= 1 to m) and the saturation S of the antibody i
i, and the antibody i and another antibody j (j = 1 to m, j ≠
This is calculated by substituting the antibody affinity Uij with i) into the above equation (5). When the process of step 202 is completed, the process of step 204 is executed next.

【0099】ステップ204では、抗体生産領域166
に記憶されている抗体1〜抗体mを基礎として、新世代
の抗体m+1を生成する処理が実行される。本ステップ
204では、具体的には、図14に示すルーチンに沿っ
た処理を実行することで新世代の抗体m+1が生成され
る。図14は、本実施例のシステムにおいて新世代の抗
体m+1を生成すべくECU26が実行する制御ルーチ
ンの一例のフローチャートを示す。尚、図14におい
て、上記図8に示すステップと同一の処理を実行するス
テップには、同一の符号を付してその説明を省略または
簡略する。
In step 204, the antibody producing region 166
A process of generating a new generation of antibody m + 1 is performed based on the antibodies 1 to m stored in the storage area. In step 204, specifically, a new generation of the antibody m + 1 is generated by executing the processing according to the routine shown in FIG. FIG. 14 is a flowchart illustrating an example of a control routine executed by the ECU 26 to generate a new generation antibody m + 1 in the system according to the present embodiment. In FIG. 14, steps that execute the same processing as the steps shown in FIG. 8 are denoted by the same reference numerals, and description thereof will be omitted or simplified.

【0100】図14に示すルーチンは、上記ステップ2
04の実行が要求される毎に起動される。図14に示す
ルーチンが起動されると、先ずステップ206の処理が
実行される。ステップ206では、抗体生産領域166
に記憶されているm個の抗体(抗体1〜抗体m)の中か
ら、最も高い期待値EXiを有する抗体iと、その抗体
iに次いで高い期待値EXjを有する抗体jとが、新世
代の抗体m+1の基礎として選択される。
The routine shown in FIG.
It is activated every time execution of the program 04 is requested. When the routine shown in FIG. 14 is started, first, the process of step 206 is executed. In step 206, the antibody production region 166
Out of the m antibodies (antibody 1 to antibody m) stored in a new generation, an antibody i having the highest expected value EXi and an antibody j having the next highest expected value EXj after the antibody i Selected as the basis for antibody m + 1.

【0101】ステップ124〜126では、第1実施例
の場合と同様に、新世代の抗体m+1を生成する際に用
いられる交配方法、交配させるデータ、および、交配さ
せるビットの位置等が選択される。そして、ステップ1
28では、上記の如く選択された交配方法等に従って抗
体iと抗体jとを交配させることにより、新世代の抗体
m+1が生成される。
In steps 124 to 126, as in the first embodiment, a mating method, data to be mated, positions of bits to be mated, and the like used for generating the new generation antibody m + 1 are selected. . And step 1
At 28, a new generation of antibody m + 1 is generated by crossing antibody i and antibody j according to the hybridization method selected as described above.

【0102】上記の処理によれば、期待値の大きな2つ
の抗体の遺伝子を、すなわち、希少価値が高く、かつ、
現在の状況下で抗原に対して特に優れた効き目を発揮す
る2つの抗体の遺伝子を、優先的に抗体m+1に承継さ
せることができる。このような手法によれば、保存抗体
と異なる形を有し、かつ、抗原に対して有効に作用する
新たな抗体の生成を促進することができる。
According to the above-described processing, the genes of two antibodies having a large expected value, that is, having a high rarity value and
The genes of the two antibodies, which exert particularly good effects on the antigen under the current circumstances, can be preferentially passed on to the antibody m + 1. According to such a technique, it is possible to promote the generation of a new antibody having a form different from that of the conserved antibody and effectively acting on the antigen.

【0103】本実施例のメインルーチンにおいて、上記
ステップ204の処理が終了すると、以後、再び上記ス
テップ176以降の処理が実行される。そして、上記ス
テップ176〜144および146〜204の処理は、
試行カウンタCIAの計数値がNTESTに達するまで繰り返
される。上記の処理によれば、試行タイマTIAに所定値
0 が計数される毎に、所定回数NTESTだけ繰り返し
て、新世代の抗体m+1の生成、その抗体m+1を
用いた回転位置制御の試行、および、抗体1〜抗体m
の更新を行うことができる。また、試行が繰り返される
過程で新たに生成された価値の高い抗体を、保存抗体と
して記憶することができる。そして、通常時には、試行
の過程で生成された抗体の中で最も評価の高い抗体1の
出力ゲインデータ群Gs(1)を用いて回転位置制御を
実行することができる。
In the main routine of this embodiment, when the processing of step 204 is completed, the processing of step 176 and thereafter is executed again. Then, the processing of the above steps 176 to 144 and 146 to 204
The count value of the attempt counter C IA is repeated until the N TEST. According to the above-described processing, each time the predetermined value T 0 is counted in the trial timer T IA , it is repeated a predetermined number of times N TEST to generate a new-generation antibody m + 1 and to perform a rotational position control using the antibody m + 1. And antibody 1 to antibody m
Can be updated. Further, a high-value antibody newly generated in the process of repeating the trial can be stored as a stored antibody. Then, in the normal state, the rotational position control can be executed using the output gain data group Gs (1) of the antibody 1 which has the highest evaluation among the antibodies generated in the course of the trial.

【0104】このため、本実施例の電動機位置制御装置
によれば、システムの個体差や経時変化に関わらず、オ
ーバーシュート量Poを抑制しつつモータ10を高速で
回転させることができると共に、モータ10の状態が変
化した場合等において、過去に有効であった保存抗体を
利用して、変化後の状態に対して優れた制御性を実現し
得る状況を速やかに形成することができる。
Therefore, according to the motor position control device of this embodiment, the motor 10 can be rotated at a high speed while suppressing the overshoot Po, irrespective of the individual difference of the system and the change with time. In the case where the state of No. 10 has changed, for example, a condition that can realize excellent controllability with respect to the state after the change can be quickly formed by using the previously-conserved preserved antibody.

【0105】ところで、本実施例では、第1実施例の場
合と同様に単位収束時間DTMOVEに基づいてモータ10
の高速性を評価することとしているが、モータ10の高
速性を評価する手法は上記の手法に限定されるものでは
ない。すなわち、モータ10の高速性は、単位収束時間
DTMOVEの逆数であるモータ10の収束速度に基づいて
評価してもよい。
In the present embodiment, the motor 10 is controlled based on the unit convergence time DT MOVE as in the first embodiment.
However, the method for evaluating the high speed of the motor 10 is not limited to the above method. That is, the speed of the motor 10 may be evaluated based on the convergence speed of the motor 10, which is the reciprocal of the unit convergence time DT MOVE .

【0106】尚、上記の実施例においては、ECU26
が、上記ステップ106、108、136および138
の処理を実行することにより前記請求項1記載の「位置
偏差検出手段」が、上記ステップ110および140の
処理を実行することにより前記請求項1記載の「制御変
数設定手段」が、上記ステップ112および142の処
理を実行することにより前記請求項1記載の「電動機駆
動手段」が、上記ステップ134、146〜152およ
び182の処理を実行することにより前記請求項1記載
の「制御値評価手段」が、上記ステップ178、184
〜196、202および204の処理を実行することに
より前記請求項1記載の「制御値更新手段」が、それぞ
れ実現されている。
In the above embodiment, the ECU 26
Are the same as steps 106, 108, 136 and 138
By executing the processing of (1), the "position deviation detecting means" of the above-mentioned claim 1 executes the processing of the above steps 110 and 140, so that the "control variable setting means" of the above-mentioned claim 1 becomes the above-mentioned step 112. And "142", the "motor driving means" according to claim 1 executes the processing of steps 134, 146-152 and 182 to "control value evaluation means" according to claim 1. Are the steps 178 and 184
196, 202, and 204 realize the "control value updating means" according to claim 1 respectively.

【0107】また、上記の実施例においては、ECU2
6が、上記ステップ146および148の処理を実行す
ることにより前記請求項2記載の「オーバーシュート量
検出手段」が、上記ステップ134、150および15
2の処理を実行することにより前記請求項2記載の「収
束速度検出手段」が、それぞれ実現されている。更に、
上記の実施例においては、出力ゲインデータ群Gs
(k)が前記請求項4記載の「制御値データ」に相当し
ていると共に、ECU26が、上記ステップ178、1
84〜194、202および204の処理を実行するこ
とにより前記請求項4記載の「新世代生成手段」が、上
記ステップ196の処理を実行することにより前記請求
項4記載の「評価比較手段」および「制御値変更手段」
が、それぞれ実現されている。
In the above embodiment, the ECU 2
6 executes the processing of steps 146 and 148, whereby the “overshoot amount detecting means” according to claim 2 performs the processing of steps 134, 150 and 15
The "convergence speed detecting means" according to the second aspect is realized by executing the second process. Furthermore,
In the above embodiment, the output gain data group Gs
(K) corresponds to the “control value data” according to the fourth aspect, and the ECU 26 executes the processing in the steps 178, 1
84 to 194, 202 and 204, the "new generation generating means" according to claim 4 executes the processing of step 196, "evaluation comparing means" according to claim 4, "Control value changing means"
Have been realized respectively.

【0108】[0108]

【発明の効果】上述の如く、請求項1記載の発明によれ
ば、電動機の制御に用いられる制御値を、個々の電動機
の状態に応じた好適な値に更新することができる。従っ
て、本発明によれば、電動機の個体差や経時変化に関わ
らず、常に正確かつ速やかに、電動機の回転位置を目標
位置に制御することができる。
As described above, according to the first aspect of the present invention, the control value used for controlling the electric motor can be updated to a suitable value according to the state of each electric motor. Therefore, according to the present invention, it is possible to always and accurately control the rotational position of the electric motor to the target position regardless of individual differences or changes over time of the electric motor.

【0109】請求項2記載の発明によれば、個々の電動
機を、大きなオーバーシュートを生じさせることなく、
かつ、その回転位置を速やかに目標位置に一致させるう
えで好適な条件で制御することができる。また、請求項
3または請求項4記載の発明によれば、電動機の制御に
用いられる制御値を速やかに進化させることができる。
このため、本発明によれば、電動機を好適な条件で制御
し得る状況を、速やかに形成することができる。
According to the second aspect of the present invention, the individual electric motors can be controlled without causing a large overshoot.
In addition, it is possible to control the rotation position under suitable conditions in order to quickly match the rotation position with the target position. According to the third or fourth aspect of the present invention, it is possible to quickly evolve the control value used for controlling the electric motor.
Therefore, according to the present invention, a situation where the electric motor can be controlled under suitable conditions can be quickly formed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1および第2実施例の電動機位置制
御装置のシステム構成図である。
FIG. 1 is a system configuration diagram of a motor position control device according to first and second embodiments of the present invention.

【図2】図1に示す電動機位置制御装置の動作を説明す
るためのチャムチャートである。
FIG. 2 is a charm chart for explaining an operation of the electric motor position control device shown in FIG. 1;

【図3】本実施例の第1実施例において実行されるメイ
ンルーチンの一例のフローチャート(その1)である。
FIG. 3 is a flowchart (part 1) of an example of a main routine executed in the first embodiment of the present embodiment;

【図4】本実施例の第1実施例において実行されるメイ
ンルーチンの一例のフローチャート(その2)である。
FIG. 4 is a flowchart (part 2) of an example of a main routine executed in the first embodiment of the present embodiment;

【図5】本発明の第1実施例においてRAMに記憶され
る複数の個体のデータ構造を示す図である。
FIG. 5 is a diagram showing a data structure of a plurality of individuals stored in a RAM in the first embodiment of the present invention.

【図6】本発明の第1および第2実施例で用いられる出
力ゲインデータGsと、モータの回転位置と目標位置と
の偏差ステップsとの関係を表す図である。
FIG. 6 is a diagram illustrating a relationship between output gain data Gs used in the first and second embodiments of the present invention and a deviation step s between a rotational position of the motor and a target position.

【図7】図5に示す個体に記憶される個々のデータの構
造を示す図である。
FIG. 7 is a diagram showing the structure of individual data stored in the individual shown in FIG.

【図8】本発明の第1実施例において実行される新世代
生成ルーチンの一例のフローチャートである。
FIG. 8 is a flowchart of an example of a new generation generation routine executed in the first embodiment of the present invention.

【図9】本実施例の第2実施例において実行されるメイ
ンルーチンの一例のフローチャート(その1)である。
FIG. 9 is a flowchart (part 1) of an example of a main routine executed in a second embodiment of the present embodiment;

【図10】本実施例の第2実施例において実行されるメ
インルーチンの一例のフローチャート(その2)であ
る。
FIG. 10 is a flowchart (part 2) of an example of a main routine executed in a second embodiment of the present embodiment.

【図11】本実施例の第2実施例において実行されるメ
インルーチンの一例のフローチャート(その3)であ
る。
FIG. 11 is a flowchart (part 3) of an example of a main routine executed in a second embodiment of the present embodiment;

【図12】本発明の第2実施例においてRAMに形成さ
れる記憶領域の一例を示す図である。
FIG. 12 is a diagram illustrating an example of a storage area formed in a RAM according to a second embodiment of the present invention.

【図13】本発明の第2実施例において用いられる抗体
iのデータ構造を示す図である。
FIG. 13 is a diagram showing a data structure of an antibody i used in a second embodiment of the present invention.

【図14】本発明の第2実施例において実行される新世
代生成ルーチンの一例のフローチャートである。
FIG. 14 is a flowchart of an example of a new generation generation routine executed in the second embodiment of the present invention.

【符号の説明】[Explanation of symbols]

10 モータ 12 回転軸 16 永久磁石 18 A相コイル 20 B相コイル 22 C相コイル 24 D相コイル 26 電子制御ユニット(ECU) 48 ポテンショメータ DESCRIPTION OF SYMBOLS 10 Motor 12 Rotary axis 16 Permanent magnet 18 A-phase coil 20 B-phase coil 22 C-phase coil 24 D-phase coil 26 Electronic control unit (ECU) 48 Potentiometer

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 電動機の回転位置を検出する回転位置検
出手段と、電動機の回転位置と目標位置との位置偏差を
検出する位置偏差検出手段とを備え、前記位置偏差が消
滅するように電動機の回転位置を制御する電動機位置制
御装置において、 前記位置偏差に基づいて、電動機の制御変数を所定の制
御値に定める制御変数設定手段と、 前記所定の制御値を用いて電動機を駆動する電動機駆動
手段と、 電動機の制御性に基づいて前記所定の制御値を評価する
制御値評価手段と、 前記所定の制御値を良好な評価の得られる値に更新する
制御値更新手段と、 を備えることを特徴とする電動機位置制御装置。
1. A motor comprising: a rotational position detecting means for detecting a rotational position of an electric motor; and a position deviation detecting means for detecting a positional deviation between the rotational position of the electric motor and a target position. In a motor position control device for controlling a rotational position, control variable setting means for setting a control variable of the motor to a predetermined control value based on the position deviation; motor driving means for driving the motor using the predetermined control value And control value evaluation means for evaluating the predetermined control value based on the controllability of the electric motor; and control value updating means for updating the predetermined control value to a value at which good evaluation is obtained. Motor position control device.
【請求項2】 請求項1記載の電動機位置制御装置にお
いて、 電動機のオーバーシュート量を検出するオーバーシュー
ト量検出手段と、 電動機の目標位置への収束速度を検出する収束速度検出
手段と、を備えると共に、 前記制御値評価手段が、前記オーバーシュート量と、前
記収束速度とに基づいて、前記制御値を評価することを
特徴とする電動機位置制御装置。
2. The motor position control device according to claim 1, further comprising: an overshoot amount detecting means for detecting an overshoot amount of the motor; and a convergence speed detecting means for detecting a convergence speed of the motor to a target position. A motor position control device, wherein the control value evaluation means evaluates the control value based on the overshoot amount and the convergence speed.
【請求項3】 請求項1記載の電動機位置制御装置にお
いて、前記制御値更新手段が、 遺伝的アルゴリズムを用いて新世代の制御値データを生
成する新世代生成手段と、 前記新世代の制御値データの評価と前記制御値の評価と
を比較する評価比較手段と、 前記新世代の制御値データの評価が前記制御値の評価に
比して優れている場合に、前記新世代の制御値データを
新たな制御値とする制御値変更手段と、 を備えることを特徴とする電動機位置制御装置。
3. The motor position control device according to claim 1, wherein said control value updating means generates a new generation of control value data using a genetic algorithm, and said new generation control value. Evaluation comparing means for comparing the evaluation of data and the evaluation of the control value; and the evaluation of the control value data of the new generation is superior to the evaluation of the control value. And a control value changing means for setting a new control value.
【請求項4】 請求項1記載の電動機位置制御装置にお
いて、前記制御値更新手段が、 免疫的アルゴリズムを用いて新世代の制御値データを生
成する新世代生成手段と、 前記新世代の制御値データの評価と前記制御値の評価と
を比較する評価比較手段と、 前記新世代の制御値データの評価が前記制御値の評価に
比して優れている場合に、前記新世代の制御値データを
新たな制御値とする制御値変更手段と、 を備えることを特徴とする電動機位置制御装置。
4. The electric motor position control device according to claim 1, wherein said control value updating means generates a new generation of control value data using an immune algorithm, and said new generation control value. Evaluation comparing means for comparing the evaluation of data and the evaluation of the control value; and the evaluation of the control value data of the new generation is superior to the evaluation of the control value. And a control value changing means for setting a new control value.
JP13109397A 1997-05-21 1997-05-21 Motor position controller Pending JPH10323087A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13109397A JPH10323087A (en) 1997-05-21 1997-05-21 Motor position controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13109397A JPH10323087A (en) 1997-05-21 1997-05-21 Motor position controller

Publications (1)

Publication Number Publication Date
JPH10323087A true JPH10323087A (en) 1998-12-04

Family

ID=15049819

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13109397A Pending JPH10323087A (en) 1997-05-21 1997-05-21 Motor position controller

Country Status (1)

Country Link
JP (1) JPH10323087A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594235A (en) * 2011-01-12 2012-07-18 日本电产伺服有限公司 Drive circuit and drive method of a stepping motor
CN105395162A (en) * 2015-12-21 2016-03-16 深圳市莫廷影像技术有限公司 Method and device for controlling polarization controller through potentiometer and OCT system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594235A (en) * 2011-01-12 2012-07-18 日本电产伺服有限公司 Drive circuit and drive method of a stepping motor
CN105395162A (en) * 2015-12-21 2016-03-16 深圳市莫廷影像技术有限公司 Method and device for controlling polarization controller through potentiometer and OCT system

Similar Documents

Publication Publication Date Title
CN112861427B (en) Permanent magnet synchronous motor parameter identification method based on improved wolf optimization algorithm
CN112682197B (en) Method for generating control data for vehicle, control device for vehicle, and control system
CN110829904B (en) Grey wolf optimization-based parameter optimization method for brushless direct current motor controller
Purnama et al. Intelligent control strategies for tuning PID of speed control of DC motor-a review
JPH0879910A (en) Power generation control method for series hybrid vehicle
CN110149080B (en) Flux weakening control method and device for permanent magnet synchronous motor
Feng et al. Optimal torque sharing function control for switched reluctance motors based on active disturbance rejection controller
CN104980069B (en) A kind of brshless DC motor double loop speed-regulating system Multipurpose Optimal Method
CN108345216B (en) Construction method of robust controller of magnetic suspension bearing based on multi-target particle swarm algorithm
JPH10323087A (en) Motor position controller
Kannan et al. Selection of PI controller tuning parameters for speed control of PMSM using biogeography based optimization algorithm
CN110266230A (en) A kind of parameter identification method of parallel mixed electrical automobile power permanent magnet synchronous motor
Dogan et al. Application of speed control of permanent magnet synchronous machine with PID and fuzzy logic controller
JPH08200025A (en) Solenoid valve controller
CN117277351A (en) Resonant frequency tracking control method based on improved whale optimization algorithm
CN109889112B (en) Efficiency optimization method for flux weakening control single current regulator of permanent magnet synchronous motor
CN113987946B (en) Particle swarm multi-target motor optimization method and system based on orthogonal analysis
CN113708685B (en) Permanent magnet synchronous motor sliding mode control method with adjustable stable time
CN114421830A (en) Motor control method based on virtual damping winding for permanent magnet synchronous motor
CN110836168B (en) Fan damping self-adaptive control method based on PSO optimization and controller thereof
CN109660156B (en) Motor starting control method and device
CN116146342A (en) Engine active suspension hybrid control method, device, equipment and storage medium
CN114157199B (en) Multi-parameter identification method for permanent magnet synchronous motor
JP5733192B2 (en) Rotating machine control device
CN112713830B (en) Permanent magnet synchronous motor speed regulation system and multi-target optimal state feedback control method