JPH06161990A - Arranging system - Google Patents

Arranging system

Info

Publication number
JPH06161990A
JPH06161990A JP31029492A JP31029492A JPH06161990A JP H06161990 A JPH06161990 A JP H06161990A JP 31029492 A JP31029492 A JP 31029492A JP 31029492 A JP31029492 A JP 31029492A JP H06161990 A JPH06161990 A JP H06161990A
Authority
JP
Japan
Prior art keywords
condition
constraint
arrangement
rectangle
area
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.)
Withdrawn
Application number
JP31029492A
Other languages
Japanese (ja)
Inventor
Fumihiro Maruyama
文宏 丸山
Yoriko Minoda
依子 箕田
Hideho Sawada
秀穂 澤田
Yuka Takizawa
ユカ 滝沢
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP31029492A priority Critical patent/JPH06161990A/en
Publication of JPH06161990A publication Critical patent/JPH06161990A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To efficiently perform arrangement processing concerning an arrangement problem such as jamming in some rectangular arranging areas with different plural areas, etc. CONSTITUTION:This system is provided with a means 1 which performs the position decision of a rectangle whose position to be located is undecided and the change of a decided position at need, a means 2 which houses each rectangle in the arranging area and sets an initial restriction violation condition from a condition of restriction to prevent overlapping with each other and sets a near violation condition as the AND of a condition in which the coordinate of a point where violation condition that becomes tautology is not satisfied is substituted in a variable representing the coordinate of the lower left apex of a processing object rectangle within a satisfied violation condition when at least one restriction violation condition can be satisfied even when the processing object rectangle is located anywhere in the processing of the means 1, and a means 3 which stores the restriction violation condition set by the means 2, and the arrangement processing is performed so as not to satisfy all the violation conditions in the means 3.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、詰め込みや積み込み等
の配置問題に関する。例えば、大きな長方形の板から小
さな長方形の棚板を切り出す問題や、トラックの(幌付
きの)荷台に箱の形に梱包された荷物を積み込む問題を
対象とする。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a layout problem such as packing and loading. For example, the problem of cutting out a small rectangular shelf from a large rectangular board, or the problem of loading luggage packed in a box shape on a truck bed (with a hood).

【0002】[0002]

【従来の技術】このような配置問題では、潜在的な解空
間が組み合わせ的に大きくなり単純な探索方式は適用で
きない。ところが、見かけ上の解空間の中で求める解が
存在しない部分が識別できるケースがあり、このような
構造を有効に利用することにより、効率的に解を求める
ことが可能になる場合がある。
2. Description of the Related Art In such a placement problem, the potential solution space is combinatorially large and a simple search method cannot be applied. However, there are cases in which it is possible to identify a portion in the apparent solution space where the desired solution does not exist, and it may be possible to efficiently obtain the solution by effectively utilizing such a structure.

【0003】従来は、上記問題群に対して一般的な解法
を適用することはせず、個々の問題の特殊性を利用して
個別にプログラムを作成していた。
Conventionally, a general solution method is not applied to the above-mentioned problem group, and a program is individually created by utilizing the peculiarity of each problem.

【0004】[0004]

【発明が解決しようとする課題】本発明は、一般にそれ
ぞれ形状の異なる複数の長方形を互いに重ね合わせるこ
となく与えられた長方形領域内に詰め込む問題、一般に
それぞれの形状の異なる複数の直方体を互いにくい込み
合うことなく与えられた直方体領域内に詰め込む問題、
あるいはこれらの問題をn次元へ拡張した問題を対象と
して、処理の途中時点までに得られた失敗情報をそれ以
降の処理において最大限に利用することによる処理の効
率化を目的とする。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention The present invention generally involves packing a plurality of rectangles each having a different shape in a given rectangular area without overlapping each other, and generally packing a plurality of rectangular parallelepipeds each having a different shape into each other. Problem of packing in a given rectangular area without any
Alternatively, it is intended to improve the efficiency of processing by maximally utilizing the failure information obtained up to the midpoint of the processing in the subsequent processing, for the problem that these problems are expanded to n dimensions.

【0005】[0005]

【課題を解決するための手段】図1は本発明の原理ブロ
ック図である。同図(a)は第1の発明の原理を示す。
同図において、長方形を配置する際の制約条件に違反し
ないように、またそれぞれの形状の異なる複数の直方体
を相互に重ね合わせることなく、与えられた長方形の配
置領域内に詰め込む配置方式の原理構成が示されてい
る。
FIG. 1 is a block diagram showing the principle of the present invention. FIG. 3A shows the principle of the first invention.
In the figure, the principle configuration of the layout method that does not violate the constraint conditions when arranging the rectangles and does not overlap a plurality of rectangular parallelepipeds having different shapes with each other in the given rectangular layout area. It is shown.

【0006】図1(a)において位置決定/変更手段1
は、例えば位置決定部と位置変更部とに対応し、配置領
域内で置く位置が未定の長方形についてその位置を決定
し、すでに置く位置が決まっている長方形の位置を必要
に応じて変更する。すなわち一度置く位置が決定された
長方形についても、全ての長方形を配置領域内にうまく
詰め込むために、必要に応じてその位置が変更される。
Position determining / changing means 1 in FIG.
Corresponds to, for example, the position determining unit and the position changing unit, determines the position of a rectangle whose placement position is undetermined, and changes the position of the rectangle whose placement position has already been determined as necessary. That is, even for a rectangle whose position is once determined, its position is changed as necessary in order to successfully pack all the rectangles in the arrangement area.

【0007】制約違反条件設定手段2は、例えば初期制
約違反条件設定部と制約違反条件生成部とに対応し、配
置すべき各長方形が与えられた配置領域内に収まるため
の制約条件と、任意の2つの長方形が重なり合わないた
めの制約条件とから制約違反の十分条件となる初期制約
違反条件を最初に設定し、また位置決定/変更手段1に
よる長方形の位置決定/変更時において対象とする長方
形を配置領域内のどこに置いても少なくとも1つの制約
違反条件が成立する時、恒真となる制約違反条件が成立
しない点の座標を、成立する制約違反条件内の対象長方
形の左下頂点の座標に対応する変数に代入した条件の論
理積として、新しい制約条件を生成するものである。制
約違反記憶手段3は、制約違反条件設定手段2によって
設定された制約違反条件を記憶するものである。
The constraint violation condition setting means 2 corresponds to, for example, an initial constraint violation condition setting unit and a constraint violation condition generation unit, and a constraint condition for each rectangle to be placed within a given placement area, and an arbitrary constraint condition. The initial constraint violation condition, which is a sufficient condition for constraint violation, is first set based on the constraint condition that the two rectangles do not overlap each other, and is targeted when the position determination / change of the rectangle by the position determination / change means 1 is performed. When at least one constraint violation condition is satisfied no matter where the rectangle is placed, the coordinates of the point that does not satisfy the constraint violation condition that is true are the coordinates of the lower left vertex of the target rectangle in the satisfied constraint violation condition. A new constraint condition is generated as the logical product of the conditions assigned to the variables corresponding to. The constraint violation storage unit 3 stores the constraint violation condition set by the constraint violation condition setting unit 2.

【0008】図1(b)は第2の発明の原理ブロック図
である。同図は長方形を配置する時の制約条件から、制
約充足条件を全て満たすように、またそれぞれ形状の異
なる複数の長方形を互いに重ね合わせることなく、与え
られた配置領域内に詰め込む配置方式の原理ブロック図
である。同図において位置決定/変更手段4は、第1の
発明における位置決定/変更手段1と同様に、長方形の
位置の決定/変更処理を行う。
FIG. 1B is a block diagram of the principle of the second invention. The figure shows the principle block of the layout method that fills a given layout area from the constraint conditions when arranging rectangles so that all the constraint satisfaction conditions are satisfied and multiple rectangles with different shapes do not overlap each other. It is a figure. In the figure, the position determining / changing means 4 performs the determination / changing process of the position of the rectangle, similarly to the position determining / changing means 1 in the first invention.

【0009】制約充足条件設定手段5は、例えば初期制
約充足条件設定部と制約充足条件生成部とに対応し、配
置すべき各長方形が与えられた長方形領域内に収まるた
めの制約条件と、任意の2つの長方形が重なり合わない
ための制約条件とから制約充足の必要条件となる初期制
約充足条件を最初に設定し、位置決定/変更手段4によ
る長方形の位置決定/変更処理において対象となる長方
形をどこに置いても少なくとも1つの制約充足条件が成
立しない時、恒偽となる制約充足条件が成立しない点の
座標を、成立しない制約充足条件内の対象長方形の左下
頂点の座標に対応する変数に代入した条件の論理和とし
て、新しい制約充足条件を設定するものである。制約充
足条件記憶手段6は設定された制約条件を記憶する。
The constraint satisfaction condition setting means 5 corresponds to, for example, an initial constraint satisfaction condition setting unit and a constraint satisfaction condition generation unit, and a constraint condition for each rectangle to be arranged to fit within a given rectangular area and an arbitrary condition. First, an initial constraint satisfaction condition, which is a necessary condition for constraint satisfaction, is set based on a constraint condition for preventing the two rectangles from overlapping with each other, and the target rectangle is used in the position determination / change processing of the rectangle by the position determination / change means 4. Where at least one constraint satisfaction condition is not satisfied, the coordinates of the point where the constraint satisfaction condition that is constant is not satisfied are set to the variable corresponding to the coordinates of the lower left vertex of the target rectangle in the constraint satisfaction condition that is not satisfied. A new constraint satisfaction condition is set as the logical sum of the substituted conditions. The constraint satisfaction condition storage means 6 stores the set constraint conditions.

【0010】[0010]

【作用】本発明においては、それぞれ形状の異なる複数
の長方形を互いに重ね合わさることなく、与えられた長
方形の配置領域内に詰め込む配置が行われる。図1
(a)にその原理を示した第1の発明においては、制約
違反条件記憶手段3に記憶されている全ての制約違反条
件を1つも成立させないように各長方形の位置決定/変
更処理が繰り返されて、全ての長方形の配置位置が決定
された時点で配置処理が完了する。
According to the present invention, a plurality of rectangles each having a different shape are placed in a given rectangle arrangement area without overlapping each other. Figure 1
In the first invention whose principle is shown in (a), the position determination / change processing of each rectangle is repeated so as not to satisfy all the constraint violation conditions stored in the constraint violation condition storage means 3. Then, the placement process is completed when the placement positions of all the rectangles are determined.

【0011】例えば適当な初期配置が生成され、その配
置が初期制約違反条件に該当しないか否かが判定され、
該当するものが1つでもある場合には適当な長方形の位
置変更が行われる。
For example, an appropriate initial layout is generated, it is determined whether or not the layout does not meet the initial constraint violation condition,
If there is even one match, the rectangle is repositioned appropriately.

【0012】この位置変更処理において、その長方形を
配置領域内のどこに置いても少なくとも1つの制約違反
条件が成立する時には、恒真となる制約違反条件が成立
しない点の座標を成立する制約違反条件内で対象の長方
形の左下頂点に対応する変数に代入した条件の論理積と
して新しい制約違反条件が生成され、その条件が制約違
反条件記憶手段3に新たに記憶され、その後に再び適当
な長方形の位置変更、または位置決定が繰り返されて、
制約違反条件記憶手段3に記憶されている制約違反条件
の全てを成立させることなく全ての長方形の位置が決定
された時点で、配置成功として配置処理が終了する。
In this position changing process, if at least one constraint violation condition is satisfied no matter where the rectangle is placed in the arrangement area, the constraint violation condition that establishes the coordinates of the point where the constraint violation condition that is true is not satisfied. , A new constraint violation condition is generated as a logical product of the conditions assigned to the variables corresponding to the lower left vertices of the target rectangle, the condition is newly stored in the constraint violation condition storage means 3, and then the appropriate rectangle is again stored. Position change or position determination is repeated,
When the positions of all the rectangles are determined without satisfying all of the constraint violation conditions stored in the constraint violation condition storage unit 3, the placement process ends as placement success.

【0013】図1(b)にその原理を示した第2の発明
においては、第1の発明における制約違反条件の代わり
に制約充足の必要条件となる制約充足条件を用いて長方
形の配置が行われる。すなわち制約充足条件記憶手段6
に記憶されている制約充足条件を全て満たすように、全
ての長方形の位置が決定された時点で配置処理が終了す
る。
In the second invention whose principle is shown in FIG. 1 (b), rectangular arrangement is performed using a constraint satisfaction condition which is a necessary condition for constraint satisfaction in place of the constraint violation condition in the first invention. Be seen. That is, the constraint satisfaction condition storage means 6
The placement process ends when the positions of all the rectangles are determined so as to satisfy all the constraint satisfaction conditions stored in.

【0014】本発明においては、例えば配置領域内への
複数の全ての長方形の配置が成功するたびに、配置領域
の右辺のx座標を示す変数、または上辺のy座標を示す
変数の値がより厳しい値、すなわち配置領域の面積が小
さくなるような値に更新され、配置処理が繰り返される
ことによって最終的に配置領域の右辺のx座標を示す変
数、または上辺のy座標を示す変数の他には変数が含ま
れない制約違反条件が生成されて配置不能と判定される
まで、最適配置を求める配置処理が繰り返される。また
本発明は二次元の長方形の配置だけでなく、三次元空間
における直方体の配置処理、および四次元以上の空間に
おける配置処理にも適用される。
In the present invention, for example, every time a plurality of rectangles are successfully placed in the placement area, the value of the variable indicating the x coordinate of the right side of the placement area or the value of the variable indicating the y coordinate of the top side becomes greater. In addition to a strict value, that is, a value that reduces the area of the placement area and the placement process is repeated, a variable indicating the x coordinate of the right side of the placement area or the variable indicating the y coordinate of the top side of the variable is finally added. The placement process for obtaining the optimal placement is repeated until a constraint violation condition that does not include a variable is generated and it is determined that placement is impossible. Further, the present invention is applied not only to the two-dimensional rectangular arrangement but also to the arrangement processing of the rectangular parallelepiped in the three-dimensional space and the arrangement processing in the space of four or more dimensions.

【0015】以上のように本発明においては、例えば制
約違反条件に違反しないように長方形の位置の決定/変
更を行うことによって長方形の左下頂点の範囲がしぼり
込まれ、これによって配置の探索空間が狭められる。
As described above, in the present invention, the range of the lower left apex of the rectangle is narrowed down by determining / changing the position of the rectangle so as not to violate the constraint violation condition. Narrowed.

【0016】[0016]

【実施例】図2は第1の発明の配置方式を用いる配置シ
ステムの実施例の構成ブロック図である。同図におい
て、初期制約違反条件設定部11は配置領域内に配置さ
れるべき複数の長方形が与えられた配置領域内に収まる
ための制約条件と、任意の2つの長方形が重なり合わな
いための制約条件10から、制約違反の十分条件となる
初期制約違反条件を設定して、制約違反条件格納部15
に格納するものである。
2 is a block diagram showing the configuration of an embodiment of an arrangement system using the arrangement system of the first invention. In the figure, the initial constraint violation condition setting unit 11 has a constraint condition that a plurality of rectangles to be placed in the placement region fit within a given placement region and a constraint condition that any two rectangles do not overlap. From condition 10, an initial constraint violation condition that is a sufficient condition for constraint violation is set, and the constraint violation condition storage unit 15 is set.
To be stored in.

【0017】位置変更部12はすでに配置領域内で一応
配置が決定された長方形の位置を必要に応じて変更する
ものであり、位置決定部13はまだ配置が決定されてい
ない長方形の位置を決定するものである。位置変更部1
2および位置決定部13は、制約違反条件格納部15に
すでに格納されている制約違反条件をどれ1つ成立させ
ないように位置変更、または位置決定を行うが、そのよ
うな位置決定、または位置変更が不可能の場合には制約
違反条件生成部14を起動する。
The position changing unit 12 changes the position of the rectangle whose arrangement has been decided in the arrangement area as needed, and the position deciding unit 13 decides the position of the rectangle whose arrangement has not been decided yet. To do. Position change unit 1
2 and the position determination unit 13 perform position change or position determination so as not to satisfy any one of the constraint violation conditions already stored in the constraint violation condition storage unit 15. However, such position determination or position change is performed. If it is impossible, the constraint violation condition generation unit 14 is activated.

【0018】この制約違反条件の成立の有無の判定にお
いて、まだ置く位置が決まっていない長方形の左下頂点
の座標に対応する変数、すなわち現在その値が未定の変
数を含む制約違反条件については、その成立の有無の判
定は不可能であり、そのような制約違反条件は不成立と
みなされる。
In the determination of whether or not the constraint violation condition is satisfied, the constraint violation condition including the variable corresponding to the coordinate of the lower left vertex of the rectangle whose position is not yet determined, that is, the variable whose value is currently undetermined, is It is impossible to determine whether or not the condition is satisfied, and such a constraint violation condition is regarded as not satisfied.

【0019】制約違反条件生成部14は、位置変更部1
2、または位置決定部13によって起動されると、成立
する制約違反条件内の位置決定、または位置変更対象と
なっている長方形の左下頂点に対応する変数に、恒真と
なる制約違反条件が成立しない点の座標を代入し、代入
結果としての、一般に複数の条件の論理積として新しい
制約違反条件を生成し、それを制約違反条件格納部15
に格納する。すなわち制約違反条件格納部15は、配置
処理の開始直後には初期制約違反条件設定部11によっ
て設定された初期制約違反条件のみを格納し、その後制
約違反条件生成部14によって生成される制約違反条件
を順次格納することになる。
The constraint violation condition generating unit 14 includes a position changing unit 1
2 or when activated by the position determining unit 13, a constant constraint violation condition is satisfied for the variable corresponding to the lower left vertex of the rectangle whose position is to be determined or the position is to be changed within the constraint violation condition that is satisfied. Substituting the coordinates of the points not to be generated, a new constraint violation condition is generally generated as a logical product of a plurality of conditions as the substitution result, and the new constraint violation condition storage unit 15
To store. That is, the constraint violation condition storage unit 15 stores only the initial constraint violation condition set by the initial constraint violation condition setting unit 11 immediately after the placement process is started, and then the constraint violation condition generated by the constraint violation condition generation unit 14. Will be sequentially stored.

【0020】すなわち第1の発明においては、制約違反
条件格納部15に格納されている制約違反条件は制約条
件10に違反する十分条件である。配置すべき1つの長
方形について、その左下頂点をどこに置いても少なくと
も1つの制約違反条件が成立する時には、対象となる長
方形の左下頂点に対応する変数が数値化された制約違反
条件を生成することによって、位置を変更すべき長方形
のしぼり込みと、その左下頂点の範囲のしぼり込みが行
われる。また複数の不等式の論理積をとることにより、
複数の長方形のからみによって生じる制約違反のための
十分条件が表現される。
That is, in the first aspect, the constraint violation condition stored in the constraint violation condition storage unit 15 is a sufficient condition that violates the constraint condition 10. When at least one constraint violation condition is satisfied for one rectangle to be placed no matter where the lower left vertex is placed, a variable corresponding to the lower left vertex of the target rectangle is generated as a numerical constraint violation condition. Narrows the rectangle whose position is to be changed, and narrows the range of the lower left apex. Also, by taking the logical product of multiple inequalities,
Sufficient conditions are expressed for constraint violations caused by multiple rectangular entanglements.

【0021】図3は第2の発明の配置方式を用いる配置
システムの実施例の構成を示すブロック図である。前述
のように、第2の発明においては第1の発明における制
約違反条件の代わりに制約充足条件を用いて、制約充足
条件の全てを満たすように複数の長方形の配置が行われ
る。
FIG. 3 is a block diagram showing the configuration of an embodiment of an arrangement system using the arrangement system of the second invention. As described above, in the second invention, the constraint satisfaction condition is used instead of the constraint violation condition in the first invention, and a plurality of rectangles are arranged so as to satisfy all the constraint satisfaction conditions.

【0022】図3において初期制約充足条件設定部16
は、図2において説明した制約条件10から制約充足の
必要条件となる初期制約充足条件を設定し、制約充足条
件格納部20に格納する。位置変更部17、位置決定部
18は図2における位置変更部12、位置決定部13と
同様に長方形の位置変更、または位置決定を行う。
In FIG. 3, the initial constraint satisfaction condition setting unit 16
Sets an initial constraint satisfaction condition, which is a necessary condition for constraint satisfaction, from the constraint condition 10 described in FIG. 2, and stores it in the constraint satisfaction condition storage unit 20. The position changing unit 17 and the position determining unit 18 change the position of the rectangle or determine the position similarly to the position changing unit 12 and the position determining unit 13 in FIG.

【0023】この場合制約充足条件格納部20にすでに
格納されている制約充足条件の少なくとも1つの制約充
足条件が成立しない時には、制約充足条件生成部19が
起動され、制約充足条件生成部19は成立しない制約充
足条件内で位置変更、または決定の対応となっている長
方形の左下頂点の座標に対応する変数に、恒偽となる制
約充足条件が成立しない点の座標を代入し、代入結果と
しての一般に複数の条件の論理和として新しい制約充足
条件を生成し、それを制約充足条件格納部20に格納す
る。制約充足条件の成立の有無の判定においては、置く
位置が未だに定められていない長方形の左下頂点の座標
に対応する変数、すなわち現在その値が未定の変数を含
む制約充足条件については、その成立の判定は不可能で
あるので、成立しているものとみなして処理が行われ
る。
In this case, when at least one constraint satisfaction condition already stored in the constraint satisfaction condition storage unit 20 is not satisfied, the constraint satisfaction condition generation unit 19 is activated and the constraint satisfaction condition generation unit 19 is satisfied. Substituting the coordinates of the point that does not satisfy the constraint satisfaction condition, which is a constant, into the variable corresponding to the coordinates of the lower left vertex of the rectangle that is the position change or decision correspondence within the constraint satisfaction condition, and In general, a new constraint satisfaction condition is generated as a logical sum of a plurality of conditions and stored in the constraint satisfaction condition storage unit 20. In determining whether the constraint satisfaction condition is satisfied, the constraint satisfaction condition that includes the variable corresponding to the coordinates of the lower left vertex of the rectangle whose position is not yet determined, that is, the variable whose value is currently undetermined, is satisfied. Since the determination is impossible, the processing is performed assuming that it is established.

【0024】第2の発明においては、制約充足条件格納
部20に処理の開始時に格納された初期制約充足条件、
および制約充足条件生成部19によって追加格納された
制約充足条件は、制約条件を満たす配置が存在するため
に満たされなくてはならない必要条件である。配置対象
の1つの長方形の左下頂点をどこに置いても少なくとも
1つの制約充足条件が成立しない時には、その対象の長
方形の左下頂点に対応する変数が数値化された制約充足
条件を生成することによって、位置を変更すべき長方形
のしぼり込みと、その左下頂点の範囲のしぼり込みが行
われる。また複数の不等式の論理和をとることによっ
て、複数の長方形のからみによる制約違反が起きないた
めの必要条件が表現される。
In the second invention, the initial constraint satisfaction condition stored in the constraint satisfaction condition storage unit 20 at the start of processing,
The constraint satisfaction condition additionally stored by the constraint satisfaction condition generation unit 19 is a necessary condition that must be satisfied because there is an arrangement that satisfies the constraint condition. When at least one constraint satisfaction condition is not satisfied no matter where the lower left apex of the placement target rectangle is placed, by generating a constraint satisfaction condition in which the variable corresponding to the lower left apex of the target rectangle is digitized, The rectangular area to be repositioned is narrowed down, and the area of the lower left apex is narrowed down. Moreover, by taking the logical sum of a plurality of inequalities, the necessary condition for preventing the constraint violation due to the entanglement of a plurality of rectangles is expressed.

【0025】図4は第1の発明における配置処理の実施
例フローチャートである。同図において処理が開始され
ると、まずステップ(S)24で初期配置として適当な
配置が生成され、S25で制約条件が満たされているか
否かが、制約違反条件(NJ)が1つでも成立している
か否かによって判定され、成立していない時にはS26
で置く位置が未定の長方形があるか否かが判定され、な
い時にはS27でNJの中に成立しているものがあるか
否かが再び判定され、ない時には配置成功として処理を
終了する。
FIG. 4 is a flow chart of an embodiment of the placement process in the first invention. When the process is started in the figure, first, in step (S) 24, an appropriate layout is generated as an initial layout, and in step S25, whether or not the constraint condition is satisfied is determined by any constraint violation condition (NJ). It is determined whether or not it is established, and when not established, S26
It is determined whether or not there is a rectangle whose placement position is undetermined, and when there is no rectangle, it is determined again in S27 whether or not there is any established NJ, and when there is not, it is determined that the placement is successful and the process ends.

【0026】S25でNJが1つでも成立している時に
は、S28で初期配置で配置が決定された長方形のうち
の適当な長方形の位置変更が試みられる。そしてS29
で位置変更が成功したか、すなわち配置領域内の全ての
位置に対して1つ以上のNJが成り立ち、全ての位置が
配置不可能として禁止されるか否かが判定され、禁止さ
れていない時にはS26以降の処理に移行する。
If at least one NJ is satisfied in S25, an attempt is made to change the position of an appropriate rectangle among the rectangles whose arrangement has been determined in the initial arrangement in S28. And S29
It is determined whether or not the position change is successful, that is, whether or not one or more NJs are satisfied for all the positions in the arrangement area and all the positions are prohibited as the disposition is impossible. The processing moves to S26 and thereafter.

【0027】S26で置く位置が未定の長方形があると
判定された時には、その長方形に対する位置決定がS3
0で試みられ、S29で全ての位置が禁止されているか
否かが判定される。
When it is determined in S26 that there is a rectangle whose position is to be determined, the position of the rectangle is determined in S3.
0 is tried, and it is determined in S29 whether or not all positions are prohibited.

【0028】S29で位置変更、または位置決定に対し
て全ての位置が禁止されていると判定された時には、S
31で新しい制約違反条件(NJ)の生成が行われる。
この新しいNJの生成についてはその具体例を基に詳し
く後述する。S31で新しいNJが生成されると、S3
2で生成されたNJの左辺に変数があるか否かが判定さ
れる。変数がない時にはその制約違反条件は恒真となる
ことになり、その長方形の配置は不可能であるので、配
置失敗として処理を終了する。S32で左辺に変数があ
ると判定された時には、生成されたNJがS33で図2
の制約違反条件部15に格納され、異なる長方形を対象
としてS28の位置変更以降の処理が繰り返される。
If it is determined in S29 that all positions are prohibited for position change or position determination, S29
At 31, a new constraint violation condition (NJ) is generated.
The generation of this new NJ will be described later in detail based on its specific example. When a new NJ is generated in S31, S3
It is determined whether or not there is a variable on the left side of the NJ generated in 2. When there is no variable, the constraint violation condition becomes true, and the rectangle cannot be arranged. Therefore, the arrangement ends in failure and the processing ends. When it is determined in S32 that there is a variable on the left side, the generated NJ is S33 in FIG.
Are stored in the constraint violation condition unit 15 and the process after the position change of S28 is repeated for different rectangles.

【0029】図5は第1の発明の配置方式を説明するた
めの配置領域と配置対象長方形の例である。同図(a)
は配置領域を示し、その左下の頂点の座標が(0,0)
で与えられる。右下の頂点の座標は(10,8)であ
る。
FIG. 5 shows an example of an arrangement area and an arrangement target rectangle for explaining the arrangement method of the first invention. The same figure (a)
Indicates the placement area, and the coordinates of the lower left vertex are (0,0)
Given in. The coordinates of the lower right vertex are (10,8).

【0030】同図(b)は配置対象となる3つの長方形
を示し、これらの3つの長方形を図(a)に示す配置領
域内に重ね合わせることなしに配置することが求められ
る。各長方形の辺は座標軸に平行に配置されるものと
し、横長に配置しても、縦長に配置してもよいものとす
る。これらの長方形については、長方形 外1 の左下
FIG. 3B shows three rectangles to be arranged, and these three rectangles are required to be arranged without overlapping in the arrangement area shown in FIG. The sides of each rectangle are arranged parallel to the coordinate axes, and may be arranged horizontally or vertically. For these rectangles, the bottom left corner of rectangle 1

【0031】[0031]

【外1】 [Outer 1]

【0032】の頂点のx,y座標、すなわち変数xi
i と、長方形 外2 の水平辺、お
X, y coordinates of the vertices of, that is, variables x i ,
y i and the horizontal side of the outer rectangle 2,

【0033】[0033]

【外2】 [Outside 2]

【0034】よび垂直辺の長さを示す変数wi ,hi
用いて制約違反条件が表現される。まず図2において制
約違反条件格納部15に格納される初期制約違反条件と
しては、各長方形が配置領域からはみ出さないことに関
する制約違反条件として次の4つの式 xi <0 ・・・(1) yi <0 ・・・(2) xi +wi >10・・・(3) yi +hi >8 ・・・(4) (1≦i≦3) が格納され、また2つの長方形が互いに重ならないこと
についての初期制約違反条件として xi +wi >xj ∧yi +hi >yj ∧xj +wj >xi ∧yj +hj >yi (1≦i<j≦3) ・・・(5) が格納される。
Constraint violation conditions are expressed using variables w i and h i which indicate the lengths of vertical sides. First, as the initial constraint violation condition stored in the constraint violation condition storage unit 15 in FIG. 2, the following four expressions x i <0 (1 ) Y i <0 (2) x i + w i > 10 (3) y i + h i > 8 (4) (1 ≦ i ≦ 3) is stored, and two rectangles are stored. X i + w i > x j ∧y i + h i > y j ∧x j + w j > x i ∧y j + h j > y i (1 ≦ i <j ≦ 3) ... (5) is stored.

【0035】制約違反条件(5)として、例えば長方形
とに対しては x1 +8>x2 ∧y1 +6>y2 ∧x2 +5>x1 ∧y
2 +2>y1 となるが、これは4つの不等式の論理積となっている。
長方形と長方形とが重なるためには、これらの4つ
の制約違反条件の全てが成立することが必要である。例
えば不等式x1 +8>x2 だけが成立しても長方形と
長方形とをy方向にずらして配置することができれ
ば、長方形と長方形は重ならないことになる。
As the constraint violation condition (5), for example, for a rectangle, x 1 +8> x 2 ∧y 1 +6> y 2 ∧x 2 +5> x 1 ∧y
2 +2> y 1 , which is the logical product of four inequalities.
In order for the rectangles to overlap each other, it is necessary that all of these four constraint violation conditions are satisfied. For example, even if only the inequality x 1 +8> x 2 is satisfied, if the rectangle and the rectangle can be arranged so as to be displaced in the y direction, the rectangle and the rectangle do not overlap.

【0036】続いて図5の具体例を用いて、図4のフロ
ーチャートに従って行われる配置処理の手順を説明す
る。図6は初期配置の例である。この初期配置において
は長方形と長方形のみが配置されている。長方形
に対してはx1 =y1 =0,w 1 =8,h1 =6であ
り、また長方形に対してはx2 =0,y2 =6,w2
=5,h2 =2であり、初期制約違反条件(1)〜
(5)はいずれも成立しない。
Next, using the specific example of FIG. 5, the flow of FIG.
-Explain the procedure of the placement process performed according to the chart
It FIG. 6 shows an example of the initial arrangement. In this initial placement
Is a rectangle and only rectangles are arranged. Rectangle
For x1= Y1= 0, w 1= 8, h1= 6
And for rectangles x2= 0, y2= 6, w2
= 5, h2= 2, and the initial constraint violation condition (1)-
None of (5) holds.

【0037】そこで図4のS26で置く位置が未定の長
方形があるか否かが判定されることになるが、ここでは
長方形の位置が未定であるので、S30で位置決定が
試みられる。なおここで長方形を置ける位置としては、
左下頂点の座標がいずれも整数となる位置に限定される
ものとする。
Then, in S26 of FIG. 4, it is judged whether or not there is a rectangle whose position is undecided. Here, since the position of the rectangle is undecided, the position determination is tried in S30. In addition, here as the position where the rectangle can be placed,
It is assumed that the coordinates of the lower left apex are all limited to integers.

【0038】長方形を横長に配置する、すなわちw3
=9,h3 =2とする場合にはx座標が2以上で条件
(3)が恒真となり、またyが7以上では条件(4)が
恒真となるため、X座標が0、または1の点、yが0以
上6以下の点を考えればよいことになるが、y座標が0
以上5以下の点で長方形との重なりが問題となり、i
=1,j=3とした制約違反条件(5)が成立すること
になる。
The rectangles are arranged horizontally, that is, w 3
= 9, h 3 = 2, the condition (3) is true when the x coordinate is 2 or more, and the condition (4) is true when y is 7 or more. Therefore, the X coordinate is 0, or It is only necessary to consider the point 1 and the point where y is 0 or more and 6 or less, but the y coordinate is 0.
The overlap with the rectangle becomes a problem in the above 5 or less points, and i
The constraint violation condition (5) with = 1 and j = 3 is satisfied.

【0039】そこでx座標が0、または1で、y座標が
0以上5以下の12個の点の座標を、それぞれ条件
(5)に代入したものの論理積をとることになるが、実
際にはこれらの座標によって定まる長方形範囲の4個の
頂点、すなわちx座標が0、または1で、y座標が0ま
たは5の4個の点だけを考えればよい(全部で12個の
点に対応する論理積とこれらの4個の点に対応する論理
積は等しい)ことになる。これによって次の論理積が制
約違反条件の一部として部分NJとして生成される。
Therefore, the logical product of the coordinates of twelve points whose x-coordinate is 0 or 1 and whose y-coordinate is 0 or more and 5 or less is substituted into the condition (5), is actually Only the four vertices of the rectangular range defined by these coordinates, that is, the four points with the x coordinate of 0 or 1, and the y coordinate of 0 or 5, should be considered (the logic corresponding to 12 points in total). The product and the logical product corresponding to these four points are equal). As a result, the following logical product is generated as a part NJ as a part of the constraint violation condition.

【0040】 x1 +w1 >1∧y1 +h1 >5∧9>x1 ∧2>y1 なおここで、例えば(5)式の最初の不等式にx座標と
して0と1と代入すると、x1 +w1 >0とx1 +w1
>1とが得られるがこれらの不等式の共通部分x1 +w
1 >1が部分NJの一部として用いられる。
X 1 + w 1 > 1∧y 1 + h 1 >5∧9> x 1 ∧2> y 1 Here, for example, if 0 and 1 are substituted for the x coordinate in the first inequality of the equation (5), x 1 + w 1 > 0 and x 1 + w 1
> 1 but the intersection of these inequalities x 1 + w
1 > 1 is used as part of the part NJ.

【0041】y座標が6の点では長方形との重なりが
問題となる。すなわちi=2,j=3とした時の制約違
反条件(5)が成立する。x座標が0、または1で、y
座標が6となる2個の点の座標を、それぞれこの条件に
代入したものの論理積をとることによって、次の論理積
が生成される。
At the point where the y coordinate is 6, the overlap with the rectangle becomes a problem. That is, the constraint violation condition (5) is satisfied when i = 2 and j = 3. x coordinate is 0 or 1, y
The following logical product is generated by taking the logical product of the coordinates of the two points having the coordinates of 6 and substituting for this condition.

【0042】 x2 +w2 >1∧y2 +h2 >6∧9>x2 ∧8>y2 従ってw3 =9,h3 =2という長方形の横長配置に
対する部分NJはこれらの論理積の更に論理積をとるこ
とによって次式で与えられる。
X 2 + w 2 > 1∧y 2 + h 2 >6∧9> x 2 ∧8> y 2 Therefore, the part NJ for the rectangular horizontal arrangement w 3 = 9, h 3 = 2 is the logical product of these products. Further, by taking the logical product, it is given by the following equation.

【0043】 x1 +w1 >1∧y1 +h1 >5∧9>x1 ∧2>y1 ∧x2 +w2 >1∧y 2 +h2 >6∧9>x2 ∧8>y2 ・・・(6) 次に長方形を縦長に配置する場合、すなわちw3
2,h3 =9とする場合には長方形をどの位置に置い
ても制約違反条件(4)が恒真となり、制約違反条件を
成立させずに長方形を配置することはできず、最終的
な結果として部分NJは(6)式となる。
X1+ W1> 1 ∧y1+ H1> 5∧9> x1∧2> y1∧x2+ W2> 1 ∧y 2 + H2> 6∧9> x2∧8> y2 ... (6) Next, when arranging rectangles in a portrait orientation, that is, w3=
2, h3= 9, where should the rectangle be placed?
Even if the constraint violation condition (4) becomes true,
The rectangle cannot be placed without being established, and the final
As a result, the partial NJ becomes equation (6).

【0044】図4ではS33でNJとして(6)式が格
納され、S28で位置変更が試みられる。ここでは長方
形の位置を変更するものとするが、横長配置、すなわ
ちw 2 =5,h2 =2とする場合にはNJの一部が成立
するため、縦長配置、すなわちw2 =2,h2 =5とし
て長方形の位置をx2 =8,y2 =0,w2 =2,h
2 =5の位置に変更する。
In FIG. 4, the expression (6) is calculated as NJ in S33.
After that, the position change is tried in S28. Here is the long side
The position of the shape shall be changed, but the horizontal arrangement,
Chi w 2= 5, h2= 2, a part of NJ is established
So that the portrait orientation, ie w2= 2, h2= 5
Position the rectangle x2= 8, y2= 0, w2= 2, h
2Change to the position of = 5.

【0045】この変更後の長方形との位置が図7
(a)に示される。この位置変更処理において、前述の
置く位置が未定の長方形の左下頂点の座標に対応する変
数を含む制約違反条件は不成立とみなすということは、
具体的には長方形に対して適用され、x3 ,y3 が値
が未定の変数であり、例えばi=2,j=3とした時の
制約違反条件(5)は不成立とみなされる。
The position of the rectangle after this change is shown in FIG.
It is shown in (a). In this position change process, it is considered that the constraint violation condition including the variable corresponding to the coordinate of the lower left vertex of the rectangle whose position is not determined is not satisfied.
Specifically, it is applied to a rectangle, and x 3 and y 3 are variables whose values are undecided. For example, the constraint violation condition (5) when i = 2 and j = 3 is regarded as not satisfied.

【0046】図5の具体例に対する配置処理の最終ステ
ップとして、図4のS30で長方形に対する位置決定
が試みられる。x3 =0,y3 =6,w3 =9,h3
2とすることによって実質的な配置処理は終了する。図
7(b)は最終結果である。
As the final step of the placement process for the example of FIG. 5, position determination for the rectangle is attempted in S30 of FIG. x 3 = 0, y 3 = 6, w 3 = 9, h 3 =
By setting the value to 2, the substantial placement process is completed. FIG. 7B shows the final result.

【0047】図8は最適配置方式の処理フローチャート
である。ここでいう最適配置方式とは、例えば第1の発
明に対しては図4のフローチャートによってある配置領
域に対して長方形の配置が成功した時に配置領域の面積
を小さくして再度配置を行う処理を繰り返し、できるだ
けコンパクトな配置領域内に配置すべき複数の長方形を
配置することである。
FIG. 8 is a processing flowchart of the optimum arrangement method. The optimum placement method here means, for example, in the first invention, a process of reducing the area of the placement region and performing the placement again when the rectangular placement is successful for a placement region according to the flowchart of FIG. Repeatedly, placing multiple rectangles to be placed in the placement area as compact as possible.

【0048】すなわち配置領域に対する配置が成功する
たびに、配置領域の右辺のx座標を示す変数、または上
辺のy座標を示す変数の値をより厳しい値、すなわちよ
り小さい値に更新し、最適配置が行われるまでその処理
を繰り返すことになる。
That is, every time the placement in the placement area is successful, the value of the variable indicating the x coordinate of the right side of the placement area or the variable indicating the y coordinate of the top side is updated to a stricter value, that is, a smaller value, and optimum placement is performed. The process will be repeated until.

【0049】この処理では、例えば図4のS31で生成
されたNJが、例えば配置領域の右辺のx座標を示す変
数、または上辺のy座標を示す変数以外に変数を含まな
い時に最終的に配置不能と判定される。すなわち配置が
可能であるためには、生成されたNJが不成立にならな
ければならないが、NJが配置領域に関する変数しか含
んでいない場合には、その配置領域の大きさが変わらな
い限り生成されたNJは成立してしまうことになり、そ
の配置領域に対する配置は不可能と判定される。
In this process, for example, when the NJ generated in S31 of FIG. 4 does not include a variable other than the variable indicating the x coordinate of the right side of the placement area or the variable indicating the y coordinate of the upper side, the NJ is finally placed. It is determined to be impossible. That is, the generated NJ must be unsatisfied in order to be able to be arranged. However, if the NJ contains only variables related to the arrangement area, it is generated unless the size of the arrangement area changes. NJ will be established, and it is determined that the placement in the placement area is impossible.

【0050】最適配置を得る処理のフローチャート、す
なわち図8において処理が開始されると、S40で制約
値の入力が行われる。ここで制約値とは、配置領域の右
辺のx座標を示す変数、または上辺のy座標を示す変数
の値である。処理開始時にはS40で入力された制約値
はS41で変更されることはないが、その制約値を用い
てS42で図2、または図3のシステムによって配置処
理が実行され、S43で配置可能であったか否かが判定
される。配置可能であった場合にはS41に戻り、制約
値がより厳しい(小さい)値に変更されて、S42以降
の処理が繰り返される。S43で最終的に配置不可能と
判定された時点で処理が終了し、その時の配置が最適な
配置となる。
When the processing is started in the flowchart for obtaining the optimum arrangement, that is, in FIG. 8, the constraint value is input in S40. Here, the constraint value is a value of a variable indicating the x coordinate of the right side of the placement area or a variable indicating the y coordinate of the upper side. At the start of the process, the constraint value input in S40 is not changed in S41, but the placement process was executed by the system of FIG. 2 or 3 in S42 using the constraint value, and was it possible to place in S43? It is determined whether or not. If it can be arranged, the process returns to S41, the constraint value is changed to a stricter (smaller) value, and the processes from S42 onward are repeated. When it is finally determined that the placement is impossible in S43, the process ends, and the placement at that time becomes the optimal placement.

【0051】以上、二次元の配置問題として、配置領域
としての長方形領域内に複数個の長方形を配置する配置
方式について詳しく説明したが、本発明を三次元以上の
配置問題に適用することも可能である。例えば三次元空
間内で幅a,奥行b,高さcの配置領域に対して、m個
の直方体(幅wi ,奥行di ,高さhi )を配置する問
題に対する初期制約違反条件として、配置領域からはみ
出さないことに関して次の6個の不等式 xi <0 yi <0 zi <0 xi +wi >a yi +di >b zi +hi >c (1≦i≦m) が任意の2個の直方体が互いにくい込まないための条件
として xi +wi >xj ∧yi +di >yj ∧zi +hi >zj ∧xj +wj >xi ∧yj +dj >yj ∧zj +hj >zj (1≦i≦j≦m) が図2の初期制約違反条件設定部11によって設定さ
れ、二次元の配置問題と同様にして三次元の配置問題に
対する解を求めることができる。
As described above, as the two-dimensional arrangement problem, the arrangement method of arranging a plurality of rectangles in the rectangular area as the arrangement area has been described in detail, but the present invention can also be applied to the three-dimensional or more arrangement problem. Is. For example, as an initial constraint violation condition for the problem of arranging m rectangular parallelepipeds (width w i , depth d i , height h i ) in the arrangement area of width a, depth b, and height c in the three-dimensional space, , The following six inequalities regarding not to extend from the arrangement region: x i <0 y i <0 z i <0 x i + w i > a y i + d i > b z i + h i > c (1 ≦ i ≦ m) is a condition for preventing two arbitrary rectangular parallelepipeds from interfering with each other: x i + w i > x j ∧y i + d i > y j ∧z i + h i > z j ∧x j + w j > x i ∧y j + d j > y j ∧z j + h j > z j (1 ≦ i ≦ j ≦ m) is set by the initial constraint violation condition setting unit 11 in FIG. A solution to the placement problem can be found.

【0052】[0052]

【発明の効果】以上詳細に説明したように、本発明によ
れば例えば長方形の左下頂点に対応する変数が数値化さ
れた制約違反条件を生成することによって、位置を変更
すべき長方形のしぼり込みと、その左下頂点の範囲のし
ぼり込みが可能となる。また複数の不等式の論理積をと
ることによって、複数の長方形のからみによって生じる
制約違反に対する十分条件が表現可能となり、解を求め
るための無駄な探索を省力することができ、効率的に配
置問題に対する解を求めることができる。
As described in detail above, according to the present invention, for example, by generating a constraint violation condition in which a variable corresponding to the lower left vertex of a rectangle is digitized, the narrowing of the rectangle whose position is to be changed. And, it becomes possible to narrow down the range of the lower left apex. In addition, by taking the logical product of multiple inequalities, it is possible to express sufficient conditions for constraint violations caused by the entanglement of multiple rectangles, save unnecessary search for finding solutions, and efficiently solve placement problems. Can find a solution.

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

【図1】本発明の原理ブロック図である。FIG. 1 is a principle block diagram of the present invention.

【図2】第1の発明を用いる配置システムの実施例の構
成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of an embodiment of an arrangement system using the first invention.

【図3】第2の発明を用いる配置システムの実施例の構
成ブロック図である。
FIG. 3 is a configuration block diagram of an embodiment of an arrangement system using the second invention.

【図4】第1の発明における配置処理のフローチャート
である。
FIG. 4 is a flowchart of arrangement processing in the first invention.

【図5】配置領域と長方形の具体例を示す図である。FIG. 5 is a diagram showing a specific example of an arrangement area and a rectangle.

【図6】初期配置の例を示す図である。FIG. 6 is a diagram showing an example of initial placement.

【図7】長方形の位置変更後の配置を示す図である。FIG. 7 is a diagram showing an arrangement after changing the position of a rectangle.

【図8】最適配置処理のフローチャートである。FIG. 8 is a flowchart of an optimal placement process.

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

1,4 位置決定/変更手段 2 制約違反条件設定手段 3 制約違反条件記憶手段 5 制約充足条件設定手段 6 制約充足条件記憶手段 10 制約条件 11 初期制約違反条件設定部 12,17 位置変更部 13,18 位置決定部 14 制約違反条件生成部 15 制約違反条件格納部 16 初期制約充足条件設定部 19 制約充足条件生成部 20 制約充足条件格納部 1, 4 Position determination / change means 2 Constraint violation condition setting means 3 Constraint violation condition storage means 5 Constraint satisfaction condition setting means 6 Constraint satisfaction condition storage means 10 Constraint conditions 11 Initial constraint violation condition setting unit 12, 17 Position change unit 13, 18 Position determination unit 14 Constraint violation condition generation unit 15 Constraint violation condition storage unit 16 Initial constraint satisfaction condition setting unit 19 Constraint satisfaction condition generation unit 20 Constraint satisfaction condition storage unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 滝沢 ユカ 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Yuka Takizawa 1015 Kamiodanaka, Nakahara-ku, Kawasaki-shi, Kanagawa Fujitsu Limited

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 それぞれ形状の異なる複数の長方形を相
互に重ね合わせることなく与えられた配置領域(長方
形)内に詰め込む配置方式において、 該配置領域内で置く位置が未定の長方形についてその位
置を決定し、すでに置く位置が決まっている長方形の位
置を必要に応じて変更する位置決定/変更手段(1)
と、 該各長方形が与えられた配置領域内に収まるための制約
条件と、任意の2つの長方形が互いに重なり合わないた
めの制約条件とから制約違反の十分条件となる初期制約
違反条件を設定し、上記位置決定/変更手段(1)の処
理において位置決定/変更の対象となる長方形を該配置
領域内のどこにおいても少なくとも1つの制約違反条件
が成立する時、恒真となる制約違反条件が成立しない点
の座標を、該成立する制約違反条件内の対象長方形の左
下頂点の座標に対応する変数に代入した条件の論理積と
して新しい制約違反条件を設定する制約違反条件設定手
段(2)と、 該制約違反条件設定手段(2)によって設定された制約
違反条件を記憶する制約違反条件記憶手段(3)とを備
え、 該制約違反条件記憶手段(3)に記憶されている制約違
反条件を全て成立させないように前記位置決定/変更手
段(1)による長方形の位置の決定/変更処理を行うこ
とを特徴とする配置方式。
1. In an arrangement method in which a plurality of rectangles each having a different shape are packed in a given arrangement area (rectangle) without overlapping each other, the position of a rectangle whose position is not determined in the arrangement area is determined. Then, the position determining / changing means (1) for changing the position of the rectangle whose position has already been decided as necessary.
Then, an initial constraint violation condition that is a sufficient condition for constraint violation is set from the constraint condition that each rectangle fits within the given arrangement area and the constraint condition that any two rectangles do not overlap each other. When at least one constraint violation condition is satisfied at any position in the arrangement area of the rectangle whose position is to be determined / changed in the process of the position determination / change means (1), the constraint violation condition that becomes true is A constraint violation condition setting means (2) for setting a new constraint violation condition as a logical product of the conditions obtained by substituting the coordinates of the points that do not hold into the variables corresponding to the coordinates of the lower left vertex of the target rectangle in the constraint violation condition that holds. A constraint violation condition storage means (3) for storing the constraint violation condition set by the constraint violation condition setting means (2), and the constraint violation condition storage means (3) stores the constraint violation condition storage means (3). Placement method which is characterized in that the determination / change processing locations of the rectangle by approximately the position-determining / changing means abuse conditions so as not to hold all (1).
【請求項2】 前記配置方式において、前記配置領域内
への配置すべき複数の長方形のすべての配置が決定され
るたびに、該配置領域の右辺のx座標を示す変数、また
は上辺のy座標を示す変数の値を該配置領域の面積が小
さくなる値に更新し、該配置領域の右辺のx座標を示す
変数、または上辺のy座標を示す変数の他には変数を含
まない制約違反条件が生成された時該配置領域への配置
を不可能として、該複数の長方形の最適配置を求めるこ
とを特徴とする請求項1記載の配置方式。
2. A variable indicating the x-coordinate of the right side of the placement area or the y-coordinate of the top side of the placement area every time all placements of a plurality of rectangles to be placed in the placement area are determined in the placement method. Is updated to a value that reduces the area of the placement area, and the constraint violation condition does not include a variable other than the variable indicating the x coordinate of the right side of the placement area or the variable indicating the y coordinate of the top side. 2. The arrangement method according to claim 1, wherein when the is generated, the arrangement in the arrangement area is made impossible and the optimum arrangement of the plurality of rectangles is obtained.
【請求項3】 それぞれ形状の異なる複数の長方形を相
互に重ね合わせることなく与えられた配置領域(長方
形)内に詰め込む配置方式において、 該配置領域内で置く位置が未定の長方形についてその位
置を決定し、すでに置く位置が決まっている長方形の位
置を必要に応じて変更する位置決定/変更手段(4)
と、 配置すべき各長方形が与えられた配置領域内に収まるた
めの制約条件と、任意の2つの長方形が重なり合わない
ための制約条件とから該制約条件充足の必要条件となる
初期制約充足条件を設定し、前記位置決定/変更手段
(4)による処理において位置決定/変更の対象となる
長方形を前記配置領域内のどこに置いても少なくとも1
つの制約充足条件が成立しない時、恒偽となる制約充足
条件が成立しない点の座標を、該成立しない制約充足条
件内の対象長方形の左下頂点の座標に対応する変数に代
入した条件の論理和として新しい制約充足条件を生成す
る制約充足条件設定手段(5)と、 該制約充足条件設定手段(5)によって設定された制約
充足条件を記憶する制約充足条件記憶手段(6)とを備
え、 該制約充足条件記憶手段(6)に記憶されている全ての
制約条件を満たすように前記位置決定/変更手段(4)
による長方形の位置決定/変更処理を行うことを特徴と
する配置方式。
3. In an arrangement method in which a plurality of rectangles each having a different shape are packed in a given arrangement area (rectangle) without overlapping each other, the position of the rectangle whose position is not determined in the arrangement area is determined. Then, the position determining / changing means (4) for changing the position of the rectangle whose position has already been decided as necessary.
And the constraint condition that each of the rectangles to be placed fits within the given placement area and the constraint condition that any two rectangles do not overlap, the initial constraint satisfaction condition that is a necessary condition for satisfying the constraint condition. Is set, and at least 1 is placed in the arrangement area where the rectangle whose position is to be determined / changed in the processing by the position determination / change means (4) is placed.
When the two constraint satisfaction conditions are not satisfied, the logical sum of the conditions in which the coordinates of the points that do not satisfy the constraint satisfaction condition that is false are substituted into the variables corresponding to the coordinates of the lower left vertex of the target rectangle in the constraint satisfaction condition that is not satisfied. A constraint satisfaction condition setting means (5) for generating a new constraint satisfaction condition, and a constraint satisfaction condition storage means (6) for storing the constraint satisfaction condition set by the constraint satisfaction condition setting means (5), The position determination / change means (4) so that all the constraint conditions stored in the constraint satisfaction condition storage means (6) are satisfied.
An arrangement method characterized in that the position determination / change processing of the rectangle is performed by.
【請求項4】 前記配置方式において、前記配置領域内
への配置すべき複数の長方形のすべての配置が決定され
るたびに、該配置領域の右辺のx座標を示す変数、また
は上辺のy座標を示す変数の値を該配置領域の面積が小
さくなる値に更新し、該配置領域の右辺のx座標を示す
変数、または上辺のy座標を示す変数の他には変数を含
まない制約充足条件が生成された時該配置領域への配置
を不可能として、該複数の長方形の最適配置を求めるこ
とを特徴とする請求項3記載の配置方式。
4. A variable indicating the x-coordinate of the right side of the placement area or the y-coordinate of the top side of the placement area each time all placements of a plurality of rectangles to be placed in the placement area are determined in the placement method. Is updated to a value that reduces the area of the placement area, and the constraint satisfaction condition does not include a variable other than the variable indicating the x coordinate of the right side of the placement area or the variable indicating the y coordinate of the upper side. 4. The arrangement method according to claim 3, wherein when the is generated, the arrangement in the arrangement area is disabled and the optimum arrangement of the plurality of rectangles is obtained.
【請求項5】 それぞれ形状の異なる複数の直方体を与
えられた配置領域(直方体)内に相互にくい込み合うこ
となく詰め込む配置方式において、 該配置領域内で置く位置が未定の直方体についてその位
置を決定し、すでに置く位置が決まっている直方体の位
置を必要に応じて変更する位置決定/変更手段(1)
と、 配置すべき各直方体が与えられた配置領域内に収まるた
めの制約条件と、任意の2つの直方体が相互にくい込み
合わないための制約条件とから、制約違反の十分条件と
なる初期制約違反条件を設定し、前記位置決定/変更手
段(1)による位置決定/変更処理時に対象となる直方
体をどこに置いても少なくとも1つの制約違反条件が成
立する時、恒真となる制約違反条件が成立しない点の座
標を、該成立する制約違反条件内の対象直方体の左下手
前頂点の座標に対応する変数に代入した条件の論理積と
して新しい制約違反条件を設定する制約違反条件設定手
段(2)と、 該制約違反条件設定手段(2)によって設定された制約
違反条件を記憶する制約違反条件記憶手段(3)と、 該制約違反条件記憶手段(3)に記憶された全ての制約
違反条件を成立させないように前記位置決定/変更手段
(1)による直方体の位置の決定/変更処理を行うこと
を特徴とする配置方式。
5. In an arrangement method in which a plurality of rectangular parallelepipeds each having a different shape are packed in a given arrangement area (rectangular parallelepiped) without being congested with each other, the position to be set in the arrangement area is determined for a rectangular parallelepiped. , Position determining / changing means (1) for changing the position of a rectangular parallelepiped whose position has already been determined as necessary
And the constraint condition that each rectangular parallelepiped to be placed is within the given placement area, and the constraint condition that any two rectangular parallelepipeds do not easily congest each other, the initial constraint violation that is a sufficient constraint violation condition When a condition is set and at least one constraint violation condition is satisfied no matter where the target rectangular parallelepiped is placed at the time of position determination / change processing by the position determination / change means (1), a true constraint violation condition is satisfied. A constraint violation condition setting means (2) for setting a new constraint violation condition as a logical product of the conditions obtained by substituting the coordinates of the points not to the variables corresponding to the coordinates of the lower left front vertex of the target rectangular parallelepiped in the established constraint violation condition. A constraint violation condition storage means (3) for storing the constraint violation condition set by the constraint violation condition setting means (2), and all the constraints stored in the constraint violation condition storage means (3) Placement method which is characterized in that the determination / change processing locations of the rectangular parallelepiped by the position-determining / changing means so as not to establish a counter-condition (1).
【請求項6】 前記三次元直方体の三次元配置領域(直
方体)への配置方式において、前記配置領域と配置対象
とをnを4以上としたn次元空間に拡張することを特徴
とする請求項5記載の配置方式。
6. The arrangement method for arranging the three-dimensional rectangular parallelepiped in a three-dimensional arrangement area (rectangular parallelepiped), wherein the arrangement area and the arrangement target are expanded into an n-dimensional space in which n is 4 or more. The arrangement method described in 5.
【請求項7】 それぞれの形状の異なる複数の直方体を
与えられた配置領域(直方体)内に相互にくい込み合う
ことなく詰め込む配置方式において、 該配置領域内で置く位置が未定の直方体についてその位
置を決定し、すでに置く位置が決まっている直方体の位
置を必要に応じて変更する位置決定/変更手段(4)
と、 配置すべき各直方体が与えられた配置領域内に収まるた
めの制約条件と、任意の2つの直方体が相互にくい込み
合わないための制約条件とから、制約充足の必要条件と
なる初期制約充足条件を設定し、前記位置決定/変更手
段(4)による位置決定/変更処理時に対象となる直方
体をどこに置いても少なくとも1つの制約充足条件が成
立しない時、恒偽となる制約充足条件が成立しない点の
座標を、該成立しない制約充足条件内の対象直方体の左
下手前頂点の座標に対応する変数に代入した条件の論理
和として新しい制約充足条件を設定する制約充足条件設
定手段(5)と、 該制約充足条件設定手段(5)によって設定された制約
充足条件を記憶する制約充足条件記憶手段(6)と、 該制約充足条件記憶手段(6)に記憶された全ての制約
充足条件を満たすように前記位置決定/変更手段(4)
による直方体の位置の決定/変更処理を行うことを特徴
とする配置方式。
7. In an arrangement method in which a plurality of rectangular parallelepipeds each having a different shape are packed in a given arrangement area (rectangular parallelepiped) without mutually obstructing each other, the position of the rectangular parallelepiped whose position to be set in the arrangement area is not determined Then, the position determining / changing means (4) for changing the position of the rectangular parallelepiped whose position has already been decided as necessary.
And the constraint condition that each rectangular parallelepiped to be arranged is within a given arrangement area and the constraint condition that any two rectangular parallelepipeds do not easily congest each other, the initial constraint satisfaction that is a necessary condition for constraint satisfaction is satisfied. When a condition is set and at least one constraint satisfaction condition is not satisfied no matter where the target rectangular parallelepiped is placed during the position determination / change processing by the position determination / change means (4), a constraint satisfaction condition that is false is satisfied. A constraint satisfaction condition setting means (5) for setting a new constraint satisfaction condition as a logical sum of conditions obtained by substituting the coordinates of points not to be satisfied into the variables corresponding to the coordinates of the lower left front vertex of the target rectangular parallelepiped in the constraint satisfaction condition that does not hold. , Constraint satisfaction condition storage means (6) for storing the constraint satisfaction condition set by the constraint satisfaction condition setting means (5), and all the constraint satisfaction condition storage means (6) The position-determining / changing means so as to satisfy the about satisfying condition (4)
An arrangement method characterized by performing determination / change processing of the position of a rectangular parallelepiped by.
【請求項8】 前記三次元直方体の三次元配置領域(直
方体)への配置方式において、前記配置領域と配置対象
とをnを4以上としたn次元空間に拡張することを特徴
とする請求項7記載の配置方式。
8. A method of arranging the three-dimensional rectangular parallelepiped in a three-dimensional arrangement area (a rectangular parallelepiped), wherein the arrangement area and the arrangement target are expanded to an n-dimensional space in which n is 4 or more. 7. The arrangement method described in 7.
JP31029492A 1992-11-19 1992-11-19 Arranging system Withdrawn JPH06161990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31029492A JPH06161990A (en) 1992-11-19 1992-11-19 Arranging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31029492A JPH06161990A (en) 1992-11-19 1992-11-19 Arranging system

Publications (1)

Publication Number Publication Date
JPH06161990A true JPH06161990A (en) 1994-06-10

Family

ID=18003492

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31029492A Withdrawn JPH06161990A (en) 1992-11-19 1992-11-19 Arranging system

Country Status (1)

Country Link
JP (1) JPH06161990A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9146782B2 (en) 2013-08-22 2015-09-29 Fujitsu Limited Parallel computer system, controlling method for parallel computer system, and storage medium storing controlling program for management apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9146782B2 (en) 2013-08-22 2015-09-29 Fujitsu Limited Parallel computer system, controlling method for parallel computer system, and storage medium storing controlling program for management apparatus

Similar Documents

Publication Publication Date Title
EP0202686B1 (en) Geometric processing system
US20050007368A1 (en) Topology determination, decomposable shape generation, and structured mesh generation
US6049341A (en) Edge cycle collision detection in graphics environment
EP0627694B1 (en) Image processing apparatus and method
US6741243B2 (en) Method and system for reducing overflows in a computer graphics system
EP1852827B1 (en) Image processing device and image processing method
US6757883B1 (en) Estimating free space in IC chips
CN114241105A (en) Interface rendering method, device, equipment and computer readable storage medium
WO2018044247A1 (en) A computer implemented method for segmentation of a ship hull into small plates by a split-and-pack approach
JPH06161990A (en) Arranging system
JP4680345B2 (en) Boxing procedure determination method and apparatus
US5353394A (en) Edge list constructor for digital image processor
EP0447176B1 (en) Method and apparatus for processing characters
Ódor Role of diffusion in branching and annihilation random walk models
JP2644735B2 (en) Drawing information management method
US7120887B2 (en) Cloned and original circuit shape merging
JP2008143663A (en) Loading order determining device, loading order determining method, and loading order determining program
JPH1021415A (en) Graphic processor and graphic processing method
JP2857260B2 (en) Judgment method of rectangular area
JP2590327B2 (en) How to manage drawing information
JP3536362B2 (en) Drawing data generation method
JP3093950B2 (en) Outline information extracting device and method
CN117494997A (en) Regional coverage calculation method based on discrete point access information clustering
CN113468363A (en) Target detection acceleration method for remote sensing image
JPH07271771A (en) Tabulation editing device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000201