JP3127634B2 - Constraint relaxation inference method - Google Patents

Constraint relaxation inference method

Info

Publication number
JP3127634B2
JP3127634B2 JP04317276A JP31727692A JP3127634B2 JP 3127634 B2 JP3127634 B2 JP 3127634B2 JP 04317276 A JP04317276 A JP 04317276A JP 31727692 A JP31727692 A JP 31727692A JP 3127634 B2 JP3127634 B2 JP 3127634B2
Authority
JP
Japan
Prior art keywords
node
satisfaction
degree
constraint
nodes
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.)
Expired - Fee Related
Application number
JP04317276A
Other languages
Japanese (ja)
Other versions
JPH06161756A (en
Inventor
健太郎 尾口
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 Central R&D Labs Inc
Original Assignee
Toyota Central R&D Labs Inc
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 Toyota Central R&D Labs Inc filed Critical Toyota Central R&D Labs Inc
Priority to JP04317276A priority Critical patent/JP3127634B2/en
Publication of JPH06161756A publication Critical patent/JPH06161756A/en
Application granted granted Critical
Publication of JP3127634B2 publication Critical patent/JP3127634B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は制約緩和推論方法に係
り、より詳しくは、探索により探索木を生成して推論を
行い、制約条件を全て満足する解が得られない場合に制
約条件を緩和して推論を進める制約緩和推論方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a constraint relaxation inference method. And a constraint relaxation inference method for performing inference.

【0002】[0002]

【従来の技術】複数の制約条件を用いて推論する場合に
おいて、これらの制約条件を全て満足する解が得られな
い場合がある。このような場合、なんらかの方法で制約
条件を緩和し適当な解を見つけ出す必要がある。制約条
件を緩和する方法として従来では、全ての制約条件に対
してその制約条件の強さを表す制約強度を定義し、制約
強度の弱いものから制約条件の適用を外して推論を進め
ていく方法が知られている(特開平3−67334
号)。この方法は、全ての制約条件を考慮して解が得ら
れなかった場合、最も制約強度の弱い制約条件の適用を
外し、すなわち、制約条件として考慮しないようにして
推論を進め、再び解が得られなくなったとき、その次に
弱い制約強度を持つ制約条件の適用を外し、というよう
に順次制約条件の適用を外していく方法である。
2. Description of the Related Art In a case of inference using a plurality of constraints, a solution satisfying all of these constraints may not be obtained. In such a case, it is necessary to relax the constraints by some method and find an appropriate solution. Conventionally, as a method of relaxing constraints, a method is defined in which the strength of the constraint that represents the strength of the constraint is defined for all the constraints, and the reasoning is advanced by excluding the application of the constraint from the weaker constraint. (Japanese Patent Application Laid-Open No. 3-67334)
issue). In this method, when a solution is not obtained after considering all the constraints, the application of the constraint having the weakest constraint strength is removed, that is, the inference is performed without considering the constraint as a constraint, and the solution is obtained again. When it is no longer possible, the application of the constraint condition having the next weaker constraint strength is removed, and so on.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来の方法のように、制約条件に制約強度を定義する場合
には、制約条件を強い、弱いという観点から順序付けす
るので、同じような強さの制約条件が複数存在する場合
には適切な制約強度を与えることができない、という問
題がある。
However, when the constraint strength is defined in the constraint condition as in the above-mentioned conventional method, the constraint condition is ordered from the viewpoint of strong and weak. There is a problem that when there are a plurality of constraint conditions, it is not possible to provide an appropriate constraint strength.

【0004】また、制約強度を用い制約強度の弱い制約
条件から順次適用を外して推論を進める方法において
は、制約条件の外し方に順序が生じてしまうので、制約
強度の強い制約条件のみを満足していない場合でもそれ
より制約強度が弱い制約条件を全て外さなくてはなら
ず、解の精度が悪くなる、という問題がある。さらに、
外された制約条件については全く考慮されることなく解
が求まるので、制約条件を外した分だけ得られる解の精
度が低下することになる。
Further, in the method in which the inference is performed by sequentially removing the application from the constraints having the weaker constraint strength and using the constraint strength to proceed with the inference, an order is generated in the manner of removing the constraints, so that only the constraint having the stronger constraint is satisfied. Even when not performed, there is a problem that all the constraint conditions having weaker constraint strengths must be removed, and the accuracy of the solution becomes worse. further,
Since the solution is obtained without considering the removed constraint condition at all, the accuracy of the solution obtained by removing the constraint condition is reduced.

【0005】本発明は上記問題点を解消するために成さ
れたもので、制約条件を緩和する場合において制約強度
が同じような制約条件が複数存在する場合や制約強度に
順序が生じている場合等でも、全ての制約条件を考慮す
ることによって高い精度の解が得られる制約緩和推論方
法を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem. In the case where a constraint condition is relaxed, when there are a plurality of constraint conditions having the same constraint strength, or when the constraint strengths are in an order. Also, an object of the present invention is to provide a constraint relaxation inference method that can obtain a solution with high accuracy by considering all constraint conditions.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に本発明は、生成ルールに従って節点の展開を行い新た
な節点を生成する工程と、予め定められた制約条件に基
づいて生成された各節点における該制約条件を充足する
度合いを、該制約条件を完全に満足する度合いから該制
約条件を全く満足しない度合いまで複数の段階に分けて
表し、充足度として記憶する工程と、前記充足度が基準
充足度を満足する節点を展開するための節点として選択
すると共に、前記充足度が基準充足度を満足する節点が
存在しないときには前記基準充足度を段階的に緩和した
値を基準充足度として前記充足度が基準充足度を満足す
る節点を展開するための節点として選択する工程と、を
繰り返すことによって目標の節点を推論する。
In order to achieve the above object, the present invention provides a method of expanding a node according to a generation rule to generate a new node, and a method of generating a new node based on a predetermined constraint condition. The degree of satisfying the constraint condition at the node is represented in a plurality of stages from the degree of completely satisfying the constraint condition to the degree of not satisfying the constraint condition at all, and storing the degree of satisfaction as a degree of satisfaction; A node that satisfies the reference satisfaction degree is selected as a node for developing, and when there is no node whose satisfaction degree satisfies the reference satisfaction degree, a value obtained by gradually relaxing the reference satisfaction degree is used as the reference satisfaction degree. And selecting a node whose degree of satisfaction satisfies the reference degree of satisfaction as a node for developing the target node.

【0007】[0007]

【作用】本発明では、生成ルールに従って節点の展開を
行い新たな節点を生成するが、この新たに生成された各
節点に、予め定められた制約条件を充足する度合いを表
す充足度を定義する。充足度は、その制約条件をどの程
度満たしているかを表す指標であり、制約条件を完全に
満足する度合いから該制約条件を全く満足しない度合い
までを複数の段階に分けて表わされ、節点について記憶
される。
According to the present invention, new nodes are generated by expanding the nodes in accordance with the generation rules. Each of the newly generated nodes is defined with a sufficiency indicating a degree of satisfying a predetermined constraint condition. . The degree of satisfaction is an index indicating the degree to which the constraint is satisfied. The degree of satisfaction is expressed in a plurality of stages from the degree of completely satisfying the constraint to the degree of not satisfying the constraint at all. It is memorized.

【0008】各節点の充足度を基準充足度と比較し、充
足度が基準充足度を満足する節点を、展開するための節
点として選択する。一方、充足度が基準充足度を満足す
る節点が存在しない場合には、基準充足度の値を段階的
緩和し、緩和された基準充足度と充足度とを比較し、
値が緩和された基準充足度を満足する節点を、展開する
ための節点として選択する。そして、上記のことを繰り
返すことにより、目標の節点である解を推論する。
The sufficiency of each node is compared with a reference sufficiency, and a node whose satisfaction satisfies the reference sufficiency is selected as a node for development. On the other hand, if there is no node whose satisfaction degree satisfies the reference satisfaction degree, the value of the reference satisfaction degree is gradually increased.
Relaxed to, by comparing the fullness with relaxed criteria satisfaction degree,
A node that satisfies the relaxed reference satisfaction degree is selected as a node to be developed. Then, by repeating the above, a solution that is a target node is inferred.

【0009】[0009]

【実施例】以下本発明の実施例を説明する。本実施例
は、複数の塗装ラインに多数の製品を割付ける製品割付
け装置に本発明を適用したものである。図1に示すよう
に、本実施例は制約条件を記憶した条件記憶部10と生
成ルール及び評価ルールを記憶したルール記憶部12と
を備えている。条件記憶部10とルール記憶部12と
は、探索により節点を展開して探索木を生成しながら推
論を行う推論部14に接続されている。推論部14に
は、推論した結果をスケジュールとして表示するスケジ
ュール表示部16が接続されている。
Embodiments of the present invention will be described below. In this embodiment, the present invention is applied to a product allocating apparatus that allocates a large number of products to a plurality of coating lines. As shown in FIG. 1, the present embodiment includes a condition storage unit 10 storing constraint conditions and a rule storage unit 12 storing generation rules and evaluation rules. The condition storage unit 10 and the rule storage unit 12 are connected to an inference unit 14 that performs inference while expanding a node by searching to generate a search tree. The inference unit 14 is connected to a schedule display unit 16 that displays the inference result as a schedule.

【0010】この製品割付け装置の作用を、4本の自動
化された塗装ラインA〜Dに対して、色、生産量、サイ
ズが異なる8種類の製品ア〜クを適切に割付けていく場
合を例に採って説明する。塗装ラインA〜D、製品ア〜
クの特性はそれぞれ表1、表2に示す通りである。
An example of the operation of the product allocating apparatus is a case where eight kinds of product arcs having different colors, production amounts, and sizes are appropriately allocated to four automated coating lines A to D. This will be explained. Painting line A ~ D, product A ~
Table 1 and Table 2 show the characteristics of the laser.

【0011】[0011]

【表1】 [Table 1]

【0012】[0012]

【表2】 [Table 2]

【0013】推論部14での推論は、節点を展開して探
索木を生成しながら行われ、探索木の下の方に行く節点
ほど割り付けが完成されていき、最も下の節点が求める
最適な割付け、すなわち解になる。
The inference performed by the inference unit 14 is performed while expanding the nodes to generate a search tree, and the more nodes that go to the lower part of the search tree, the more the assignment is completed. That is, it becomes a solution.

【0014】ルール記憶部12には、推論を行うための
ルールが記憶されているが、以下に上記例で用いる生成
ルール及び評価ルールの一部を示す。
The rule storage unit 12 stores rules for performing inference. Some of the generation rules and evaluation rules used in the above example are shown below.

【0015】生成ルール: (1)塗装ラインにまだ余裕があり、かつ、30個以上
残っている製品があればその製品を余裕がある塗装ライ
ンに割り付ける。
Generation rules: (1) If there is still room in the painting line and there is a product with 30 or more remaining, the product is allocated to the painting line with room.

【0016】(2)色が赤か紫の製品が残っていれば、
それらの製品は対応できる塗装ラインが限られているの
で、その製品を対応できる塗装ラインに割り付ける。
(2) If a product of red or purple color remains,
Since these products have limited available coating lines, they are assigned to applicable coating lines.

【0017】評価ルール: (1)色が塗装ラインの基準色と同一の製品が割り付け
られているならば、割り付け量×1を得点にプラスす
る。
Evaluation rules: (1) If a product whose color is the same as the reference color of the coating line is allocated, the allocation amount × 1 is added to the score.

【0018】(2)同一塗装ライン内に割り付けられて
いる製品のサイズの最大と最小との差が30以内ならば
30を得点にプラスする。
(2) If the difference between the maximum and the minimum of the sizes of the products allocated in the same coating line is within 30, 30 is added to the score.

【0019】また、条件記憶部10には、以下の制約条
件が記憶されている。 制約条件: (1)同一塗装ライン内に割り付けられている製品のサ
イズの最大と最小との差が60以上あるならば、充足度
=0.2とする。
The condition storage unit 10 stores the following constraints. Restrictions: (1) If there is a difference of 60 or more between the maximum and the minimum of the sizes of the products allocated in the same coating line, the satisfaction level is set to 0.2.

【0020】(2)塗装ラインに、色が基準色でも対応
色でもない製品が割り付けられているならば、充足度=
0とする。
(2) If a product whose color is neither the reference color nor the corresponding color is assigned to the coating line, the degree of satisfaction =
Set to 0.

【0021】(3)塗装ラインA,Dは小サイズ用の塗
装ラインなので、塗装ラインA,Dにサイズが40〜6
0の製品が割り付けられているならば充足度=0.8と
する。
(3) Since the coating lines A and D are small-size coating lines, the sizes of the coating lines A and D are 40 to 6
If the product of 0 is allocated, the satisfaction level is set to 0.8.

【0022】(4)塗装ラインA,Dは小サイズ用の塗
装ラインなので、塗装ラインA,Dにサイズが70以上
の製品が割り付けられているならば、充足度=0.6と
する。
(4) Since the coating lines A and D are small-size coating lines, if the products having a size of 70 or more are allocated to the coating lines A and D, the satisfaction level is set to 0.6.

【0023】推論部14は、制約条件の緩和や探索木を
遡るバックトラックを行って推論を行うが、この推論を
図9、図10のフローチャートに従って説明する。
The inference unit 14 performs the inference by relaxing the constraints and backtracking the search tree. This inference will be described with reference to the flowcharts of FIGS.

【0024】初期状態では、全ての塗装ラインにはどの
製品も割り付けられていない。従って、ステップ100
において初期状態の節点を選択節点とし、また基準充足
度を1とする。なお、充足度=1は制約条件を100%
満足する場合、すなわち、完全に満足する場合を意味
し、充足度=0は制約条件を全く満足しない場合を意味
し、1>充足度>0は制約条件を完全に満足する度合い
から全く満足しない度合いの間の状態を意味する。
In the initial state, no products are assigned to all the coating lines. Therefore, step 100
In, the node in the initial state is set as the selected node, and the reference satisfaction degree is set to 1. Satisfaction = 1 means that the constraint condition is 100%
Satisfaction, that is, complete satisfaction, where sufficiency = 0 means no constraint is satisfied, and 1>satisfaction> 0 does not satisfy the constraint at all. Means a state between degrees.

【0025】ステップ102において、初期状態の選択
節点にルール記憶部12から読み込んだ生成ルールを適
用して節点を展開し、製品をいずれか1つの塗装ライン
に割り付けた節点を複数作成する。図2には生成ルール
(1)が適用され、30個以上の製品ウ、エ、オ、カを
標準生産量が50の塗装ラインAに割付け、 製品ウを塗装ラインAに50個割り付けた節点 製品エを塗装ラインAに30個割り付けた節点 製品オを塗装ラインAに40個割り付けた節点 製品カを塗装ラインAに30個割り付けた節点 の4つの節点が作成された例が示されている。
In step 102, the generation rules read from the rule storage unit 12 are applied to the selected nodes in the initial state to develop the nodes, and a plurality of nodes in which the product is allocated to any one painting line are created. In FIG. 2, the generation rule (1) is applied, and 30 or more products C, D, O, and K are assigned to the painting line A having the standard production amount of 50, and 50 products C are assigned to the painting line A. An example is shown in which four nodes are created: a node where 30 products are allocated to painting line A. A node where 40 products are allocated to painting line A. .

【0026】次のステップ104では作成された節点
〜に制約条件を適用し、各節点の充足度合いを表す
「充足度」を決定する。なお、充足度の初期値は1と
し、どの制約条件も適合しなければその節点の充足度を
初期値のまま、すなわち1とする。図2の例では節点
に制約条件(3)が適合して節点の充足度が0.8と
なり、節点に制約条件(2)と制約条件(3)とが適
合して節点の充足度が最小値である0となっている。
節点、はどの制約条件も適合しないので充足度は1
のままである。
In the next step 104, a constraint condition is applied to the created nodes (1) to (4) to determine a "satisfaction degree" representing the satisfaction degree of each node. Note that the initial value of the sufficiency is set to 1, and if no constraint condition is satisfied, the sufficiency of the node is set to the initial value, that is, 1. In the example of FIG. 2, the constraint (3) matches the node and the degree of satisfaction of the node is 0.8, and the constraint (2) and the constraint (3) match and the degree of satisfaction of the node is minimum. It has a value of 0.
Since the node does not satisfy any of the constraints, the degree of satisfaction is 1
Remains.

【0027】ステップ106では、充足度が決定された
節点でかつ充足度が0でない節点に対し、上記の評価ル
ールを適用し各節点に得点を付与する。図2の例では、
基準色が青色の塗装ラインAにラインの基準色と同色で
ある青色の製品ウ、エ、オが割付けられているので、評
価ルール(1)が節点、、に適合し、割り付け量
×1の演算により、節点、、の各々に50点、3
0点、40点の得点(評価点)が付与されている。節点
については充足度が0であるので、得点は付与しな
い。
In step 106, the above evaluation rules are applied to nodes whose satisfaction is determined and the satisfaction is not 0, and a score is given to each node. In the example of FIG.
Since the blue product C, D, and O having the same color as the reference color of the line are assigned to the blue coating line A, the evaluation rule (1) conforms to the nodal point, and the assignment amount × 1 By calculation, each node has 50 points, 3
0 points and 40 points (evaluation points) are given. No score is given to the node since the degree of satisfaction is 0.

【0028】ステップ108では充足度が基準充足度を
満たす節点が存在するかどうか判断する。図2の例では
基準充足度=1を満たす節点、が存在するので、ス
テップ120を通ってステップ110に進み、評価され
た節点の中で、最も得点が高い節点を選択節点として選
択する。上記の例では、得点が最も高い節点が選択節
点として選択される。上記の例では、基準充足度=1で
あるので、選択された節点は、充足度=1である節点の
中で最も得点の高い節点になる。得点が同点の節点が複
数存在する場合には、得点が同点の節点の全てを選択す
る。
In step 108, it is determined whether or not there is a node whose satisfaction degree satisfies the reference satisfaction degree. In the example of FIG. 2, there is a node satisfying the reference satisfaction level = 1, so the process proceeds to step 110 through step 120, and the node having the highest score among the evaluated nodes is selected as the selected node. In the above example, the node with the highest score is selected as the selected node. In the above example, since the reference satisfaction level = 1, the selected node is the node with the highest score among the nodes satisfying the satisfaction level = 1. If there are a plurality of nodes having the same score, all the nodes having the same score are selected.

【0029】次に、ステップ102に戻りこの選択節点
に対し再度上記の生成ルールを適用し節点の展開を行
うことにより次の枝を延ばす。この例では生成ルール
(2)が適合し、図3に示すように、 製品カを塗装ラインCに30個割り付けた節点 製品カを塗装ラインDに30個割り付けた節点 製品キを塗装ラインCに 2個割り付けた節点 の3つの節点が得られる。得られた3つの節点、、
に対し、ステップ104で上記と同様に制約条件を適
用する。上記の例では、節点に制約条件(3)が適合
するので充足度は0.8となる。節点、に適合する
制約条件は存在しないので充足度は1のままである。そ
して、ステップ106で上記と同様に評価ルールを適用
し得点を付与する。この場合評価ルール(1)が適合
し、節点、、の得点は各々50点、50点、52
点となる。
Next, returning to step 102, the next branch is extended by applying the above generation rule again to the selected node and expanding the node. In this example, the generation rule (2) conforms, and as shown in FIG. 3, a node where 30 product mosquitoes are allocated to the painting line C. A node where 30 product mosquitoes are allocated to the painting line D. Three nodes of the two nodes are obtained. The three nodes obtained,
In step 104, a constraint condition is applied in the same manner as described above. In the above example, the satisfaction degree is 0.8 because the constraint condition (3) matches the node. Since there is no constraint satisfying the node, the degree of satisfaction remains 1. Then, in step 106, the evaluation rule is applied in the same manner as described above, and a score is given. In this case, the evaluation rule (1) is satisfied, and the scores of the nodes are 50 points, 50 points, and 52 points, respectively.
Points.

【0030】そして、ステップ108、ステップ110
において説明したように、充足度が基準充足度を満たす
節点、すなわち充足度1の節点の中から最も得点の高い
節点を選択節点として選択し、再びステップ102に戻
って生成ルールを適用し枝を延ばし探索を進めていく。
Then, step 108, step 110
As described in the above, a node whose satisfaction degree satisfies the reference satisfaction degree, that is, a node having the highest score among the nodes having the satisfaction degree 1 is selected as a selection node, and the process returns to step 102 again to apply the generation rule and to select a branch. Prolong the search.

【0031】上記ステップ102〜ステップ110を繰
り返すことにより図4のような探索木が得られたと仮定
する。
It is assumed that a search tree as shown in FIG. 4 is obtained by repeating steps 102 to 110.

【0032】図4では探索木の下方の太線の節点aに生
成ルールを適用して生成した2つの節点b,cが、制約
条件によって共に充足度0になっている。すなわち、こ
れ以上先に枝を延ばし探索を進めることができなくなっ
ている。そこで、ステップ108からステップ112へ
進みバックトラックを行う。最初にステップ112へ進
んだときは、バックトラックが1回目でバックトラック
回数が制限値(例えば、2)以下であるのでステップ1
16に進んでバックトラックを行い他の枝を探索する。
すなわち、図4の破線矢印に示すようにバックトラック
を行い、節点Xを選択節点として選択する。
In FIG. 4, two nodes b and c generated by applying the generation rule to the thick line node a below the search tree have both the sufficiency 0 due to the constraint condition. That is, it is impossible to extend the branch any further and proceed with the search. Therefore, the process proceeds from step 108 to step 112 to perform backtracking. When the process first proceeds to step 112, the first backtrack is performed and the number of backtracks is equal to or less than the limit value (for example, 2).
Proceed to 16 to perform backtracking and search for another branch.
That is, backtracking is performed as shown by the dashed arrow in FIG. 4, and the node X is selected as the selected node.

【0033】図10は、図9のステップ116のバック
トラックの詳細を示すもので、ステップ200において
現在の選択節点を節点Xとし、ステップ210におい
て、節点Xに横並びの節点があり、その節点の中に基準
充足度を満たしかつ評価点が節点Xの評価点より低い節
点が存在するか否かを判断する。ステップ210の判断
が否定のときはステップ220において節点Xの親の節
点(展開が1つ前の節点)を節点Xとしてステップ21
0の判断を再び行う。一方、ステップ210の判断が肯
定のときは、ステップ230で節点Xの横並びの節点で
あって、基準充足度を満たしかつ評価点が節点Xの次に
高い節点を新しい選択節点とする。このバックトラック
により、探索木の下方で基準充足度を満たしかつ評価点
が節点aの次に高い節点Xが選択節点として選択される
ことになる。
FIG. 10 shows the details of the backtracking in step 116 of FIG. 9. In step 200, the currently selected node is set to node X. In step 210, there is a node that is arranged side by side with node X. It is determined whether or not there exists a node satisfying the standard satisfaction degree and having an evaluation point lower than the evaluation point of the node X. If the determination in step 210 is negative, in step 220, the parent node of the node X (the node immediately before development) is set to the node X, and the process proceeds to step 21.
The determination of 0 is performed again. On the other hand, if the determination in step 210 is affirmative, in step 230, the nodes that are the side-by-side nodes of the nodes X and satisfy the reference satisfaction degree and have the evaluation points next to the node X are set as new selected nodes. By this backtrack, a node X that satisfies the reference satisfaction degree below the search tree and has an evaluation point next to the node a is selected as the selected node.

【0034】しかし、上記のような1回目のバックトラ
ックを行っても、探索を進めることができなくなってし
まうことがある。図5の例では、節点Xの展開により節
点Xの先に生成された節点dが充足度0となって探索を
進めることができなくなっている。この場合も破線矢印
で示すように再度バックトラックを行い節点Yを選択節
点として選択する。
However, the search may not be able to proceed even if the first backtrack is performed as described above. In the example of FIG. 5, the node d generated before the node X due to the expansion of the node X becomes the satisfaction degree 0, and the search cannot be advanced. Also in this case, backtracking is performed again as indicated by a broken arrow, and the node Y is selected as a selected node.

【0035】しかしながら、図6に示すように節点Yの
先も充足度が0になり結局探索を進めることができなく
なってしまう場合もある。このような場合、バックトラ
ックを行って再び他を探索してもよいが、いつまでたっ
ても解にたどりつけない場合もある。そこで、上記のよ
うにバックトラックの回数に制限を設け、例えばバック
トラックは2回までに制限する。そうすると、図6の例
では完全に探索を進めることができなくなることにな
る。そこで、ステップ112からステップ114に進ん
で制限条件の緩和を実行する。すなわち、基準充足度の
値を緩和し、基準充足度の制約を 0.9≦基準充足度<1 とし、ステップ118においてこの条件を満たす節点を
検索する。この節点が複数個存在した場合は、 1)充足度が大きい節点 2)探索木の下の方にある節点 3)評価得点の高い節点 を優先させて選択することにする。完全に同じ条件の節
点が複数存在すれば複数の節点の全てを選択してもよ
い。図6の例では、充足度が0.9の節点Zを選択節点
として選択している。これ以降、ステップ108に進ん
で、上記ステップ102〜ステップ110を繰返すこと
により0.9≦充足度<1の範囲で探索をすすめる。
However, as shown in FIG. 6, the sufficiency of the point beyond the node Y may become 0, and the search may not be able to proceed. In such a case, backtracking may be performed and another search may be performed again, but the solution may not be reached forever. Therefore, the number of backtracks is limited as described above, for example, the number of backtracks is limited to two. Then, the search cannot be completely advanced in the example of FIG. Therefore, the process proceeds from step 112 to step 114 to relax the restriction condition. That is, the value of the reference satisfaction degree is relaxed, the constraint of the reference satisfaction degree is set to 0.9 ≦ reference satisfaction degree <1, and in step 118, a node satisfying this condition is searched. When there are a plurality of nodes, 1) a node having a high degree of satisfaction 2) a node below the search tree 3) a node having a high evaluation score is preferentially selected. If there are a plurality of nodes having completely the same condition, all of the plurality of nodes may be selected. In the example of FIG. 6, the node Z having the degree of satisfaction of 0.9 is selected as the selected node. Thereafter, the process proceeds to step 108, and the above steps 102 to 110 are repeated to search in the range of 0.9 ≦ satisfaction <1.

【0036】このまま探索を続け、途中で再度図7のよ
うな状況になることもある。この場合、生成された節点
Wの充足度は0.9≦充足度<1の条件は満足していな
い。また、バックトラックをしようとしても残されてい
る節点の中に、0.9≦充足度<1の条件を満たす節点
が存在しない。この場合は再び制約条件を緩和し、基準
充足度を0.8≦基準充足度<0.9とし、この範囲で
探索を進める。そして、ステップ120で割付け終了と
判断されるまで上記のステップを繰り返し、最後に図8
に示す目標の節点である解としての節点Vを得、ステッ
プ122で割付けスケジュールをスケジュール表示部1
6に表示する。
The search may be continued as it is, and the situation shown in FIG. In this case, the satisfaction degree of the generated node W does not satisfy the condition of 0.9 ≦ satisfaction degree <1. In addition, there is no node that satisfies the condition of 0.9 ≦ satisfaction degree <1 among the remaining nodes even when backtracking is attempted. In this case, the constraint condition is relaxed again, and the reference satisfaction degree is set to 0.8 ≦ the reference satisfaction degree <0.9, and the search is advanced in this range. Then, the above steps are repeated until it is determined in step 120 that the allocation is completed.
The node V as a solution which is the target node shown in FIG.
6 is displayed.

【0037】なお、上記では本発明を製品割付け装置に
本発明を適用した例について説明したが、本発明はこれ
に限定されるものではなく、人工知能や人工知能を利用
した各種のシステムに適用できるものである。
Although the present invention has been described above with reference to an example in which the present invention is applied to a product allocating apparatus, the present invention is not limited to this, and is applicable to artificial intelligence and various systems utilizing artificial intelligence. You can do it.

【0038】[0038]

【発明の効果】以上説明したように本発明によれば、制
約条件に充足度を定義することにより、制約条件を絶対
に順守しなければならない制約条件から、できれば順守
してほしいというゆるい制約条件まで柔軟に表現するこ
とができるので、同じような強さの制約条件が複数ある
場合でも適切な充足度を与えることができ、また制約条
件を外すことなく常に全ての制約条件を考慮して充足度
が基準充足度を満足する節点を選択するので、高い精度
の解を得ることができる、という効果が得られる。
As described above, according to the present invention, by defining the degree of sufficiency in a constraint, a constraint that must be strictly obeyed from a constraint that must be absolutely observable is preferably set. Can be expressed flexibly, so that even if there are multiple constraints with similar strength, it is possible to give an appropriate degree of satisfaction, and always satisfy all constraints without removing constraints. Since a node whose degree satisfies the reference satisfaction degree is selected, an effect that a highly accurate solution can be obtained is obtained.

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

【図1】本実施例の製品割付け装置のブロック図であ
る。
FIG. 1 is a block diagram of a product allocating apparatus according to an embodiment.

【図2】初期状態の選択節点を展開して節点〜を生
成した状態を示す線図である。
FIG. 2 is a diagram showing a state in which a selected node in an initial state is expanded to generate a node ~.

【図3】選択節点を展開して節点〜を生成した状
態を示す線図である。
FIG. 3 is a diagram showing a state in which a selected node is expanded to generate a node ~.

【図4】節点aから節点Xにバックトラックした状態を
示す線図である。
FIG. 4 is a diagram showing a state in which backtracking is performed from a node a to a node X.

【図5】節点Xから節点Yにバックトラックした状態を
示す線図である。
FIG. 5 is a diagram showing a state in which backtracking is performed from a node X to a node Y.

【図6】節点Yから節点Zにバックトラックした状態を
示す線図である。
FIG. 6 is a diagram showing a state where backtracking is performed from a node Y to a node Z;

【図7】節点Zを展開して節点Wを求めた状態を示す線
図である。
FIG. 7 is a diagram illustrating a state where a node Z is obtained by expanding a node Z;

【図8】目的とする節点Vを求めた状態を示す線図であ
る。
FIG. 8 is a diagram showing a state where a target node V is obtained.

【図9】推論部における推論ルーチンを示す流れ図であ
る。
FIG. 9 is a flowchart showing an inference routine in an inference unit.

【図10】図9のステップ116の詳細を示す流れ図で
ある。
FIG. 10 is a flowchart showing details of step 116 in FIG. 9;

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

10 条件記憶部 12 ルール記憶部 14 推論部 16 スケジュール表示部 Reference Signs List 10 Condition storage unit 12 Rule storage unit 14 Inference unit 16 Schedule display unit

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平4−186434(JP,A) 特開 平4−125734(JP,A) 特開 平4−118720(JP,A) 特開 平1−177163(JP,A) 特開 平5−346856(JP,A) 電子情報通信学会技術研究報告、VO L.90、NO.390(AI90−72〜75)、 社団法人電子情報通信学会・発行(1991 年1月)、P.17〜23(特許庁CSDB 文献番号:CSNT199900975003) (58)調査した分野(Int.Cl.7,DB名) G06F 9/44 G06F 17/60 G06F 19/00 B23Q 41/08 G05B 13/02 JICSTファイル(JOIS) CSDB(日本国特許庁)──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-4-186434 (JP, A) JP-A-4-125734 (JP, A) JP-A-4-118720 (JP, A) JP-A-1- 177163 (JP, A) JP-A-5-346856 (JP, A) IEICE Technical Report, Vol. 90, NO. 390 (AI 90-72 to 75), published by the Institute of Electronics, Information and Communication Engineers (January 1991), 17-23 (Patent Office CSDB Document No .: CCNT199900975003) (58) Fields investigated (Int. Cl. 7 , DB name) G06F 9/44 G06F 17/60 G06F 19/00 B23Q 41/08 G05B 13/02 JICST file (JOIS) CSDB (Japan Patent Office)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 生成ルールに従って節点の展開を行い新
たな節点を生成する工程と、 予め定められた制約条件に基づいて生成された各節点に
おける該制約条件を充足する度合いを、該制約条件を完
全に満足する度合いから該制約条件を全く満足しない度
合いまでを複数の段階に分けて表し、充足度として記憶
する工程と、 前記充足度が基準充足度を満足する節点を展開するため
の節点として選択すると共に、前記充足度が基準充足度
を満足する節点が存在しないときには前記基準充足度を
段階的に緩和した値を基準充足度として前記充足度が基
準充足度を満足する節点を展開するための節点として選
択する工程と、 を繰り返すことによって目標の節点を推論する制約緩和
推論方法。
A step of expanding a node in accordance with a generation rule to generate a new node; A step of dividing the degree of complete satisfaction from the degree of not satisfying the constraint condition at all into a plurality of stages and storing the degree of satisfaction as a degree of satisfaction; and as a node for developing a node at which the degree of satisfaction satisfies the reference degree of satisfaction. And selecting the reference satisfaction degree when there is no node satisfying the reference satisfaction degree.
A step of selecting a node satisfying the reference satisfaction degree as a reference satisfaction degree using the value relaxed in a stepwise manner as a node for developing a node satisfying the reference satisfaction degree.
JP04317276A 1992-11-26 1992-11-26 Constraint relaxation inference method Expired - Fee Related JP3127634B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04317276A JP3127634B2 (en) 1992-11-26 1992-11-26 Constraint relaxation inference method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04317276A JP3127634B2 (en) 1992-11-26 1992-11-26 Constraint relaxation inference method

Publications (2)

Publication Number Publication Date
JPH06161756A JPH06161756A (en) 1994-06-10
JP3127634B2 true JP3127634B2 (en) 2001-01-29

Family

ID=18086428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04317276A Expired - Fee Related JP3127634B2 (en) 1992-11-26 1992-11-26 Constraint relaxation inference method

Country Status (1)

Country Link
JP (1) JP3127634B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0618679U (en) * 1992-08-07 1994-03-11 新東工業株式会社 Powder feeder

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4530235B2 (en) * 1999-06-11 2010-08-25 富士通株式会社 Knowledge discovery method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
電子情報通信学会技術研究報告、VOL.90、NO.390(AI90−72〜75)、社団法人電子情報通信学会・発行(1991年1月)、P.17〜23(特許庁CSDB文献番号:CSNT199900975003)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0618679U (en) * 1992-08-07 1994-03-11 新東工業株式会社 Powder feeder

Also Published As

Publication number Publication date
JPH06161756A (en) 1994-06-10

Similar Documents

Publication Publication Date Title
Hopcroft et al. Linear time algorithm for isomorphism of planar graphs (preliminary report)
US7761397B2 (en) Rule processing method and apparatus providing automatic user input selections
JPH0410165A (en) Optimum plan generating system
US8386287B2 (en) Resource management using constraint programming with efficient ordering of variables
JP2006024238A (en) Modified buddy system for managing disk space
US5228115A (en) Hybrid backtrack/lookahead search technique for constraint-satisfaction problems
JP3127634B2 (en) Constraint relaxation inference method
CN114239960A (en) Distribution network project group progress management method and system based on dynamic resource optimization
Ramesh et al. Interactive multicriteria linear programming: an extension of the method of Zionts and Wallenius
US5197115A (en) Inferential system and inferential method
JPH0644074A (en) Knowledge base, inference method and descriptive text preparation method
CN107105052A (en) Heuristic web service composition method based on figure planning
CN115469915A (en) Method, device, equipment and medium for managing API (application program interface) based on tree structure classification
Castillo et al. Genetic algorithms for batch sizing and production scheduling
Vembu et al. Heuristics for operator allocation and sequencing in product-line-cells with manually operated machines
CN113343040A (en) Automatic incremental method, device, equipment and storage medium for graph algorithm
CN109993193A (en) Method and device for identifying key points of three-dimensional curve
JPH11161707A (en) Method and device for optical load averaging program planning
Weide Random graphs and graph optimization problems
Huang Using case-based techniques to enhance constraint satisfaction problem solving
EP0451540A2 (en) Hybrid backtrack/lookahead search technique for constraint-satisfaction problems
JP3092550B2 (en) Processing flow progress management system and processing flow progress management method
JPS63121978A (en) Optimization processor for large-scaled combination problem
JPH03228175A (en) Schedule generating device
JPH04113464A (en) Information node evaluating method for information retrieving system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees