Simultaneous optimization and heat integration with process simulators