The invention discloses a linear optimal power flow (LOPF) model containing a unified power flow controller (UPFC). DC optimal power flow (DCOPF) is the most popular OPF linear method so far, and is fast in solution speed but relatively low in calculation accuracy, and two electrical quantities of a node voltage amplitude value and a circuit reactive power cannot be solved; the UPFC can be used for improving the power supply capability of a regional power grid, the UPFC is introduced into a DCOPF model, thus, the problem complexity is improved, and the linear DCOPF is also converted to a non-linear model; on the basis, the invention proposes a novel LOPF model which is higher in accuracy and is more perfect; by the model, the voltage and the reactive power can be solved, a current source type steady-state model of the UPFC is processed and is equivalently embedded into a circuit, and thus, the novel LOPF model is applicable to the LOPF model proposed by the invention; and an example simulation result shows that the high efficiency of the linear model is maintained, the calculation result has relatively high accuracy, and moreover, power flow information which is more perfect than the DCOPF model can be figured out.