This paper presents a new model for a stochastic multiperiod optimal power-flow (SMP-OPF) problem which includes an offshore wind farm connected to the grid by a line-commutated converter high-voltage dc link. The offshore wind farm is composed of doubly fed induction generators (DFIGs), and the DFIG's capability curve is considered in order to obtain a more realistic dispatch for wind farms. The uncertainties of wind power generation are also taken into account using a scenario-based approach which can be adopted by the system operator to obtain the optimal active and reactive power schedules for thermal and wind power generation units. To illustrate the effectiveness of the proposed approach, it is applied on the IEEE 118-bus test system. The obtained results demonstrate the capability of the proposed SMP-OPF model for the determination of the optimal operation of power systems.