The wastewater from a pharmaceutical plant consists of a tetrahydrofuran/isopropanol/water azeotrope. This investigation utilizes dimethyl sulfoxide as an extractant and employs an extractive dividing wall column to separate the aforementioned azeotrope. The extractive dividing wall columns are constructed with single, double, and triple partition walls, and a multi-objective genetic algorithm is used to optimize the operational parameters of the separation process. Of these columns, the extractive dividing wall columns with triple partition walls show the most favorable economic, environmental, and energy utilization performance, and it has a lower risk of combustion and explosion. Compared to the conventional design, the use of triple-partition extractive dividing wall columns results in a 22.13% and 10.54% reduction in total annual cost and CO2 emissions, respectively, and an increase in thermodynamic efficiency of 2.66%. Studying the dynamic characteristics of this process reveals its excellent dynamic controllability.