Refinery modeling requires specialized process simulation software, as well as a deep understanding of the refinery that is being modeled. If the model is to be used for refinery optimization, the software will also need commodity price information so that the cost of inputs can be taken into account during optimization.