This study proposes solving the constraint optimal power flow problem (OPF) by using vortex search algorithm (VSA). VSA is inspired by natural vortexes. Piecewise quadratic fuel cost and quadratic cost curve with valve point loadings test cases are solved on IEEE-30 bus test system by taking into consideration the system constraints such as generation limits, voltages at nodes, tap settings. The obtained test results show that VSA gives better results than any other algorithms which are used to solve the OPF problem. (C) 2017, IFAC (International Federation of Automatic Control) Hosting by Elsevier Ltd. All rights reserved.