The present invention relates to a method for optimizing the placement of a plurality of workstations (20a-d) in a
workcell including an
industrial robot (1) programmed to execute a sequence of tasks on the workstations, wherein each task contains a series of
robot targets linked as one or several paths to be visited by the
robot when executing the task at the
workstation. The method comprises the following steps: a) defining a preferred region (36) within the reachable range of the
robot, placing the tasks inside or as close as possible to the preferred region using an evaluation criterion and an optimization
algorithm, and based thereon assigning to each
workstation a position inside or close to the preferred region, b) determining by means of an optimization
algorithm a best order of the workstations to be placed relative to the robot with regard to the robot performance and a defined order in which the tasks has to be executed, and based thereon adjusting the positions of the workstations, and c) adjusting the positions (x, y, z, α) of the workstations by means of an optimization
algorithm configured to run the robot program iteratively in order to optimize the placement of the workstations with regard to the robot performance.