An optimizing method that optimizes, using a computer, a component mounting order in which a mounter mounts a plurality of components on a substrate, the mounter including a mounting head that picks up a maximum of n components, n being no less than 2, from an arrangement of component cassettes for a case where component tapes are held in the component cassettes, a component tape being a group of components of a same type, the mounter being equipped with a first block and a second block that are component supplying units and are each capable of holding a plurality of component cassettes, and the optimizing method optimizing an arrangement of the component tapes in the component cassettes,
- the optimizing method comprising:
- an assigning step for assigning each of the plurality of components to one of the first and second blocks, in units of component groups into which components are classified based on height;
- a detecting step for detecting whether either of the first and second block has an amount of free space, for holding component cassettes, that is insufficient for an optimization process to be performed;
- a reassigning step
- for specifying, out of the component groups that have been assigned to a block detected as having insufficient free space, either (i) a component group that has been assigned so as to straddle the first and second blocks, or (ii) a component group for which a number of components in a most numerous component tape is the lowest,
- for extracting a number of component tapes that is equivalent to the insufficient amount of free space from the specified component group, and
- for reassigning the extracted component tapes to another component group;
- and
- an optimizing step for performing an optimization process on at least one component group that has been assigned to the block that was detected as having insufficient free space.