An optical device including a laser with a laser cavity having a gain curve with a maximum at a wavelength \u03bbmax; and an optical carrier coupled to the cavity. The method comprises the steps of: a) extracting values from the mathematical models that indicate instantaneous states of production; b) supplying the sensor signals and the values to an associative memory agent; and c) using the associative memory agent to associate the sensor signals and the values to generate the general production state. The rotor core has a part located between the magnets adjacent to each other and having different coercive forces.