Currently, the gradual depletion of fossil energy sources has limited their ability to generate electricity. In the meantime, there is a growing global demand for electrical energy. This requires the power system to integrate more renewable energy sources into the power network. This article introduces the Whale Optimization Algorithm (WOA), a new calculation method for determining optimal power flow in power networks with integrated wind power plants. WOA is used to tackle nonlinear problems in both cases, with and without wind energy. The calculation is conducted on an IEEE 30 bus test system, and the findings are compared with those obtained from previous methods. The analysis results indicate that , this method has outperformed some existing methods in terms of calculation accuracyHiện nay, các nguồn năng lượng hóa thạch đang cạn kiệt dần, dẫn đến khả năng phát điện từ các nguồn này cũng bị hạn chế. Trong khi nhu cầu sử dụng năng lượng điện trên khắp thế giới ngày một gia tăng lên. Đòi hỏi trong hệ thống điện phải tích hợp thêm các nguồn năng lượng tái tạo vào mạng điện. Bài báo này giới thiệu công cụ tính toán mới là thuật toán tối ưu cá voi (WOA) để đáp ứng việc tính toán điều độ công suất tối ưu trong mạng điện có tích hợp nhà máy phát năng lượng điện gió. WOA được sử dụng để giải quyết các bài toán phi tuyến trong cả hai trường hợp có và không có năng lượng gió. Việc tính toán được thực hiện trên hệ thống mạng điện IEEE 30 nút và kết quả thu được được so sánh với một số phương pháp trước đây. Từ kết quả phân tích có thể suy ra rằng, phương pháp này đã cải thiện kết quả tính toán tốt hơn một số phương pháp hiện có.