A method of commissioning a lighting system comprising a plurality of lighting fixtures installed according to a floor plan and positioned at a plurality of physical locations designated in the floor plan, each lighting fixture having at least one signal generating device for generating a Radio Frequency, RF, output signal comprising a unique identifier identifying said lighting fixture, the method performed by a processing device and characterized by comprising the steps of: - constructing first datasets, each first dataset comprising distances to said plurality of physical locations from one of each respective detection location, of a plurality of detection locations, selected for receiving RF output signals produced by said plurality of lighting fixtures, the first datasets constructed from the floor plan, - constructing second datasets comprising Received Signal Strength Indicator, RSSI, levels of RF output signals produced by said plurality of lighting fixtures, identified by their unique identifiers, and each second dataset obtained by a mobile detecting device located at one of each of the plurality of detection locations, - for each detection location of the plurality of detection locations, obtaining a probability of a respective lighting fixture being located at a respective physical location by applying a probability-based algorithm to said respective first and second datasets, wherein said probability-based algorithm comprises the steps of - sorting said first datasets in one of ascending and descending order and sorting said second datasets in the other of ascending and descending order, and - computing said probability by mapping said sorted first datasets and said sorted second datasets, and - commissioning said lighting system by accumulating all probabilities as obtained for each detection location of the plurality of detection locations, and wherein a number of the plurality of detection locations is smaller than a number of the plurality of physical locations. - constructing first datasets, each first dataset comprising distances to said plurality of physical locations from one of each respective detection location, of a plurality of detection locations, selected for receiving RF output signals produced by said plurality of lighting fixtures, the first datasets constructed from the floor plan, - constructing second datasets comprising Received Signal Strength Indicator, RSSI, levels of RF output signals produced by said plurality of lighting fixtures, identified by their unique identifiers, and each second dataset obtained by a mobile detecting device located at one of each of the plurality of detection locations, - for each detection location of the plurality of detection locations, obtaining a probability of a respective lighting fixture being located at a respective physical location by applying a probability-based algorithm to said respective first and second datasets, wherein said probability-based algorithm comprises the steps of - sorting said first datasets in one of ascending and descending order and sorting said second datasets in the other of ascending and descending order, and - computing said probability by mapping said sorted first datasets and said sorted second datasets, and - commissioning said lighting system by accumulating all probabilities as obtained for each detection location of the plurality of detection locations, and