Computation and Complexity of Preference Inference Based on Hierarchical Models