A number of scientific fields rely on placing permanent magnets in order to produce a desired magnetic field. We have shown in recent work that the placement process can be formulated as sparse regression. However, binary, grid-aligned solutions are desired for realistic engineering designs. We now show that the binary permanent magnet problem can be formulated as a quadratic program with quadratic equality constraints, the binary, grid-aligned problem is equivalent to the quadratic knapsack problem with multiple knapsack constraints, and the single-orientation-only problem is equivalent to the unconstrained quadratic binary problem. We then provide a set of simple greedy algorithms for solving variants of permanent magnet optimization, and demonstrate their capabilities by designing magnets for stellarator plasmas. The algorithms can a-priori produce sparse, grid-aligned, binary solutions. Despite its simple design and greedy nature, we provide an algorithm that compares with or even outperforms the state-of-the-art algorithms while being substantially faster, more flexible, and easier to use.
多くの科学分野は、所望の磁場を生成するために永久磁石の配置に依存している。我々は最近の研究で、配置プロセスがスパース回帰として定式化できることを示してきた。しかしながら、現実的な工学的設計には、バイナリでグリッドに整列した解が望まれる。我々はここで、バイナリ永久磁石問題が二次等式制約付き二次計画問題として定式化できること、バイナリ・グリッド整列問題が複数のナップサック制約を持つ二次ナップサック問題と等価であること、そして単一方向のみの問題が無制約二次バイナリ問題と等価であることを示す。次に、我々は、永久磁石最適化の諸変種を解くための一連の単純な負欲アルゴリズムを提供し、ステラレータプラズマ用の磁石を設計することによってそれらの能力を実証する。これらのアルゴリズムは、アプリオリにスパースでグリッド整列されたバイナリ解を生成することができる。その単純な設計と負欲な性質にもかかわらず、我々は、最先端のアルゴリズムと同等かまたはそれ以上に優れ、かつ大幅に高速で、より柔軟で、より使いやすいアルゴリズムを提供する。