Analytical and numerical analysis of inverse optimization problems: conditions of uniqueness and computational methods