The science of optimising space