Entropy maximisation problem for quantum relativistic particles