Free upgrade to guests criteria

What are the factors or criteria which you look for when giving a free upgrade to the guests. Like when booked rooms are sold out and you need to provide an upgrade to a higher category.