Abstract
Coordinating renewable investment with chronological storage operation requires balancing economic performance, network constraints, and computational effort. This paper presents a mixed-integer second-order cone programming (MISOCP) framework to jointly size photovoltaic (PV), wind (WD), and battery (Bt) assets using an SOCP relaxation of the network equations over 8760 consecutive hourly periods. The objective maximizes the net present value (NPV) of a supply portfolio under deterministic demand, renewable-resource, and price inputs with perfect information. Candidate-specific physical power limits enforce mutually exclusive Bt charging and discharging, while the stored-energy balance includes conversion losses, self-discharge, and a cyclic annual boundary. A five-bus benchmark evaluates ten demand-scaling factors from 5.0% to 5.9%. All runs reach optimal MISOCP status within solver tolerances, with solution times of 1.41–2.99 h. The illustrative 5.7% case selects 700 MW of PV, 565 MW of WD, and 2125 MWh of Bt storage, yielding a relaxed-model portfolio NPV of 227.620 million USD. Net hybrid system (HS) injection equals 45.327% of annual demand. Portfolio NPV becomes negative at the tested 5.8% and 5.9% factors. These results quantify investment and operating trade-offs for the specified benchmark and economic assumptions.
1. Introduction
Planning a hybrid system (HS) with photovoltaic (PV), wind (WD) and battery (Bt) technologies requires investment decisions to be coordinated with network operation. Renewable availability, demand and electricity prices vary over time, while stored energy links dispatch decisions across successive periods. Representing these interactions together with alternating current (AC) power flow leads to a planning problem with discrete decisions and nonlinear network constraints.
Existing studies address these computational challenges through different network representations and solution methods. The PJM five-bus benchmark includes an example based on linearized DC optimal power flow (OPF) [1]. Metaheuristic optimization has been used to tune a battery-assisted PV smoothing filter [2], while reviews of battery sizing, siting, and operation cover mathematical programming and artificial intelligence methods [3]. Voltage sensitivity analysis has been combined with second-order cone programming (SOCP) to size and locate batteries in a distribution network with PV generation and demand response [4]. SOCP is among the convex relaxations surveyed for AC OPF [5]. Other approaches include distributed gradient dynamics for nonconvex multi-objective OPF in AC–DC networks [6], a conic branch-flow approximation for bipolar DC networks [7], and a combination of SOCP and linear programming for interval power flow in radial networks [8]. Branch-flow SOCP formulations have also been proposed for radial distribution networks [9], and dual conic proxies can provide valid lower bounds for AC OPF [10]. Combining an SOCP network relaxation with discrete investment and storage-operation decisions yields a mixed-integer second-order cone programming (MISOCP) model.
The temporal representation is also relevant to storage planning. Synchronized demand, renewable-resource and price observations retain the chronology of the selected data, including the sequence of charging and discharging opportunities for grid-scale energy arbitrage under dynamic efficiency and degradation [11] and the optimal siting and allocation of storage and renewable generation in distribution systems [12]. This use of historical records should be distinguished from explicitly modeling uncertainty through stochastic or robust optimization [13]. Here, the 8760 hourly observations define a deterministic operating year with perfect information. Retaining every hour avoids temporal aggregation across tariff structures [14] and operational scheduling horizons [15] but increases the number of operating variables and constraints.
A mixed-integer linear model selects among PV, offshore wind, and battery candidates using a full year of hourly data from Mexico and representing exchanges with the grid at two market nodes [16]. A multistage conic planning model locates and sizes PV, wind, gas turbines, and storage in a radial 69-bus network, using clustered scenarios to represent demand and renewable uncertainty [12]. In the present formulation, capacity selection takes place at a fixed point of interconnection. The model retains all 8760 consecutive hours and enforces nodal power balances, voltage limits, and branch limits through a five-bus AC network relaxation.
This paper integrates joint discrete sizing of PV, WD, and Bt systems, 8760 h chronological battery operation, and a standard SOCP network relaxation into a single MISOCP planning framework. The objective maximizes the net present value (NPV) of a modeled load-serving portfolio, accounting for demand payments, conventional generation costs, and HS investment and operating costs. The contribution lies in this integrated application with synchronized regional data on a five-bus benchmark. The formulation enforces mutually exclusive battery switching through candidate-specific physical power limits rather than generic Big-M constants and provides a common basis for examining investment choices, hourly dispatch, and computational requirements [15]. Its network representation follows the established AC relaxation in [17], while the numerical evaluation examines both how demand scaling shifts discrete capacity selection and portfolio NPV across the profitability threshold and how the conic relaxation compares against a branchwise equality-constrained nonlinear solution under fixed binary decisions.
The remainder of the paper is organized as follows. Section 2 presents the planning model and economic assumptions. Section 3 describes the network and input data. Section 4 pre sents the scenario analysis and computational reporting, and Section 5 discusses the scope and directions for further work.
2. Mathematical Model
The formulation links candidate selection (Section 2.1) to renewable generation and storage dispatch (Section 2.2). The resulting power injections enter the network constraints in Section 2.3, and the investment and operating cash flows enter the portfolio objective in Section 2.4. Figure 1 shows the power paths among the hybrid-system components and the grid.
Figure 1.
Illustration of grid-connected HS.
The binary variables indicate whether each PV, BT and WD candidate are installed. The number of proposed installations bounds the number of selected candidates. In the case study, they are equal to I, J, and K for the PV, BT, and WD candidates, respectively.
2.1. Renewable Generation Constraints
The output of the selected renewable candidates is allocated between the grid and storage. The following equalities use the available generation profiles:
In (1), to calculate the nominal output power of a PV system, it is determined from its area defined as , where is the candidate nominal DC power and is the nominal module efficiency [14,15]. With expressed in W, the module area is calculated using a reference irradiance of . The irradiance is expressed in [18,19,20]. The dimensionless temperature correction is –, with ambient temperature in °C [21], and the constant loss factor is . Therefore, the operating efficiency is . The factor converts PV output from W to MW, and division by the system power base expresses the power in per unit. The variables and denote the total PV power supplied to the grid and to battery j, respectively,
Similarly, in (2), is the output of one turbine of type k, obtained by spline interpolation of its power curve at the observed wind speed [22,23]. Each selected WD candidate contains turbines. Since is expressed in MW, division by gives the wind output in per unit. The variables and denote the total wind power supplied to the grid and to battery j.
The following HS routing-power variables are non-negative:
Here, and denote power supplied from the grid to battery j and from battery j to the grid, respectively, both expressed in per unit.
2.2. Charge, Discharge and State-of-Charge Constraints in Bt System
Battery storage transfers energy between hours, subject to conversion losses, capacity limits, and charging restrictions. Figure 1 shows the power paths connecting the renewable technologies, batteries, and grid.
For each battery and period , is the net power entering the stored-energy balance. It includes charging from PV, WD, and the grid, and discharging to the grid, with the efficiencies of the corresponding conversion paths [14]. The internal charging and discharging powers, and , and their net balance are defined for each battery , and period is
The inverter and charge-controller efficiencies are , and the battery charging and discharging efficiencies are . The variables and denote grid-to-battery and battery-to-grid power, respectively [16]. The stored energy evolves according to the net power balance and self-discharge. Its bounds are linked to the installation variable, so an unselected battery has zero stored energy [3,24]:
The boundary conditions and prevent net depletion of the initial stored energy when the operating year is repeated [3]. The terminal energy bounds are already implied by these conditions, so (9) is imposed only at the intermediate periods. The time step is h, and is the assumed hourly self-discharge fraction applied to the previous stored energy [4]. Under the cyclic condition, net charging over the year compensates for self-discharge, while conversion losses are included in and .
The binary variable separates charging and discharging: for an installed battery, charging is enabled when , and discharging is enabled when . The following constraints use the internal power limits to enforce this separation:
The switching formulation uses candidate-specific physical power limits and instead of generic Big M constants [25]. These parameters bound the internal charging and discharging powers, respectively. We implement them using a specified rate of times the candidate energy capacity, converted to per unit. Since and , (12) also implies . Thus, both charging and discharging powers are zero when the battery is not selected.
The power variables, including , and the limits and are expressed in per unit. The state and its limits represent stored energy normalized by , expressed in p.u. h. Multiplying these power and energy quantities by gives MW and MWh, respectively.
Available capacity and conversion efficiencies are assumed to remain constant throughout the planning horizon. The financial evaluation excludes battery cycling degradation, replacement costs, and long-term PV degradation; therefore, the results are conditional on these assumptions.
2.3. Power Flows and Second-Order Conic Constraints
The network model couples HS operation to nodal power balances, generator limits, voltage bounds and branch ratings. A standard SOCP relaxation is used for the nonlinear AC voltage products [17]. The HS is connected at bus 1. Its gross active power delivery to the grid is given by (13); grid-to-battery withdrawals are accounted for separately in the nodal balance.
Here, is the PV inverter efficiency. All powers and branch ratings in this subsection are expressed in per unit. The network is represented by the graph , where is the bus set and reverses the reference orientations in . Each physical branch is assigned one reference orientation in . The sets , and contain the generators, loads and shunt elements connected to bus n, respectively. Their unions over define the network-wide sets , and . The branch-flow expressions contain bilinear voltage products. With the period index omitted for clarity, write . Introduce and , with [8,17,26,27]. At every period, these products must satisfy:
Relaxing the quadratic equality in (14) gives
The SOCP relaxation replaces the quadratic equality in (14) with the inequality in (15), thereby enlarging the feasible set. For non-negative squared voltage magnitudes, this inequality admits the equivalent second-order cone representation in (16):
Remark: A second-order cone is a set of the form .
The relaxation does not guarantee AC feasibility. Recovering an AC solution in a meshed network additionally requires voltage-angle consistency around cycles.
The series admittance of branch is defined by . The parameters and denote the line-charging susceptances at its sending and receiving terminals, respectively. The implemented branch model has unit transformer ratios, zero phase shifts, and no branch shunt conductance. For the case considered here, the active and reactive power injections at both branch terminals are [27]
The quantities and are measured from bus n into branch , whereas and are measured from bus m into the same branch. Using one reference orientation per branch accounts for and . Therefore, the net nodal injections and are obtained by summing the branch-terminal flows and the bus-shunt terms:
The relaxed network model imposes the following nodal balances and operating limits. In the test system, no conventional generator is connected at bus 1:
The active balance at bus 1 in (23) subtracts grid-to-battery withdrawals from the HS delivery. Equation (24) applies the active balance at the remaining buses, while (25) applies the reactive balance at every bus. According to (21) and (22), these balances include all branches incident to each bus. The HS converters are modeled at unity power factor, without reactive-power control or converter P–Q capability constraints. Conventional generators provide reactive-power control within the limits in (27). The generator limits are imposed by (26) and (27). Branch ratings are enforced at both terminals for the set :
Branches without a positive finite rating are excluded from these thermal constraints.
The voltage-magnitude bounds are imposed by (28). Voltage magnitudes are expressed in per unit, and the magnitude at bus 1 may vary within these bounds. The resulting planning constraints and variable domains define the feasible region of the relaxed model:
2.4. Objective Function
The objective represents a load-serving entity that supplies the modeled demands and controls conventional generation and the selected HS assets. Its revenues come from demand-settlement payments and a signed network-settlement term; its costs include conventional variable generation, HS investment, HS fixed operation and maintenance, and HS variable operation. The existing infrastructure is exogenous, with historical capital expenditure treated as sunk. Incumbent fixed costs and taxes are excluded. Thus, measures the listed supply-portfolio cash flows after the new HS investment.
Demand-related accounting also appears in [14,15], although its interpretation depends on the economic boundary; the consumer models value avoided purchases relative to a reference bill and include revenue from electricity exports. Here, demand payments constitute revenue for the supplying entity, which deducts the costs of serving demand from these payments. Internal HS injections and battery charging are transfers within that entity and do not generate additional energy-sale or purchase payments. Common ownership is a modeling assumption for this case study.
The 8760 h dispatch represents one operating year repeated over years with fixed demand, prices and performance. Annual cash flows are discounted once through . For a constant annual cash flow, the discount factor is the closed-form equivalent of summing discounted payments over H years at rate r:
The HS investment and annual fixed operation and maintenance are defined as follows:
Capital expenditure is incurred at the beginning of the planning horizon. Fixed operation and maintenance expenditure is treated as an annual payment. The factor accounts for the number of turbines included in each selected WD candidate. Demand receipts are calculated from the demand profiles and their corresponding settlement-price series:
The apparent-power base is MVA. Multiplying active powers in per unit by gives MW, and multiplying by gives MWh. Settlement prices and variable cost coefficients are expressed in MXN/MWh; the resulting annual revenues and costs are expressed in MXN. The NE price series is used as the demand-settlement proxy at buses 2 and 3, and the EA series at bus 4.
The annual signed network-settlement term is calculated over the designated branches connected to bus 1:
The quantities , , and represent the sending-end active powers from the network formulation, with their signs indicating the direction of power transfer. With entering the objective with a positive sign, the settlement convention credits exports from bus 1 and debits imports. This term is retained as an additional cash-flow assumption of the case study, rather than an asserted regulated network-access tariff.
The conventional-generation term associates each hourly output with the coefficient used in the objective. The additional coefficient MXN/MWh assigns a small linear operating charge to the gross HS delivery . This term is separate from fixed operation and maintenance and applies to the combined PV, WD and battery power delivered by the HS to the grid. The annual variable costs and discounted demand receipts are defined as
Demand and settlement prices are fixed within each scenario, so is constant with respect to the decisions. Its discounted value is therefore omitted from the solver objective. Subject to the planning constraints, the solver maximizes the remaining decision-dependent cash flow, expressed in million MXN:
Maximizing Z is equivalent to maximizing , since the omitted term is constant within each scenario. The reported , expressed in MXN, is recovered by adding the discounted demand receipts:
3. Case Study
The case study combines a five-bus benchmark with regional demand, renewable-resource and price series from Mexico. The network has six branches, two conventional generators and three demand buses. The HS is connected at bus 1 as shown in Figure 2. The regional assignments identify the input profiles; the network is not a validated electrical equivalent of the Mexican interconnected system.
Figure 2.
Study network test. The HS is connected at bus 1, conventional generators at buses 3 and 5, and regional demands at buses 2, 3 and 4.
The five-bus network is used as a controlled demonstration while retaining the full 8760 h chronology and binary storage modes. This choice limits the spatial dimension without aggregating the intertemporal storage balances. Even at this network size, each scenario contains 464,311 variables, including 43,826 binaries, and 805,946 constraints under the counting convention reported in Section 4; recorded solver times range from 5070.50 to 10,762.91 s. These measurements motivate the present computational scope but do not establish scalability to larger networks or show that larger cases are intractable.
The electrical parameters are adapted from the PJM five-bus case [1] distributed with MATPOWER [28]. Table 1 reports the branch data. The total line-charging susceptance is divided equally between the two branch terminals. All transformer taps are unity and phase shifts are zero. The generators at buses 3 and 5 have active-power limits of 0–520 MW and 0–600 MW, reactive-power limits of MVAr and MVAr, and linear generation costs of 525 and 175 MXN/MWh, respectively. Voltage magnitudes are bounded by 0.9–1.1 p.u. at every bus. Bus 1 is not held at 1 p.u.; bus 5 is used only as the angular reference in the separate AC verification formulation, without fixing its magnitude.
Table 1.
Branch parameters of the study network on a 100 MVA base.
The study retains 8760 consecutive hourly records indexed from 1 January to 31 December 2025. Demand for buses 2, 3, and 4 uses the northeastern, central, and eastern regional series, respectively [29,30]. We multiply each demand profile by the same scenario factor . We obtain reactive demand using a power factor of 0.95. Figure 3 displays hourly data profile.
Figure 3.
Regional demand profiles used in the test network [29,30].
We evaluate five PV, and five Bt system candidates, from 100 to 500 MW and 50 to 2500 MWh respectively, as listed in [31]. Their investment decisions are independent: a shared table row does not impose paired selection. The wind set includes the 16 turbine models in Table 2, with turbines per selected candidate and corresponding hourly generation profiles from the turbine power curves [23].
Table 2.
Wind turbine candidates and rated capacities [23].
The adopted PV and Bt capital costs are USD 1,378,903 per MW and USD 583,687 per MWh, respectively [32]. Their annual fixed operation and maintenance costs are 0.5% and 1.5% of the corresponding capital costs [14,33]. The implementation converts USD-denominated costs to MXN using the fixed study rate of 17.5 MXN/USD. The WD capital and maintenance costs follow the procedure in [22]. The meteorological inputs are summarized in Figure 4. Wind-speed observations correspond to 25° N, 97°30′ W in the NE region. Solar irradiance observations (GHI, DNI and DHI) correspond to a location near San Fernando, Tamaulipas (24.84° N, 98.15° W). The horizontal irradiance data are converted to plane-of-array irradiance for the Pv generation calculation [18,19,20].
Figure 4.
Plane-of-array irradiance and wind speed for the selected locations in Northeastern Mexico [34].
Figure 5 shows the locational marginal price (LMP) series from the NE and EA regions used as settlement proxies. These historical wholesale prices provide the hourly economic inputs; they are not interpreted as observed retail tariffs.
Figure 5.
Locational marginal prices of nodes 06PAE-400 and 02JUD-115 from NE and EA zones respectively [29,35].
4. Results
This section first compares the ten demand-scaling scenarios. It then examines the individual run at and its agreement with the corresponding batch solution. The final analysis separates mixed-integer optimality from the quality of the network relaxation. All operating points reported in this section are MISOCP results; the solver status alone does not imply AC feasibility.
4.1. Computational Setup and Scenario Results
The model was implemented in Julia with JuMP in their latest versions and solved using Gurobi 12.0.3 [36,37,38]. The recorded environment used Windows 11 and an Intel Core i7-9700 processor at 3.00 GHz, with eight physical cores and eight threads; with 16 GB of RAM. Each scenario result uses the load factor to scale the regional demand profiles, and the common assumptions are collected in Table 3:
Table 3.
Common assumptions and demand-scaling scenarios.
Each JuMP model has 464,311 variables, comprising 43,826 binary and 420,485 continuous variables, and 805,946 constraints when variable bounds and set constraints are counted. The binary variables comprise 26 investment decisions and 43,800 h battery modes. After the modeling-interface reformulation, the Gurobi logs report 779,671 columns, 639,480 linear rows, and 87,600 quadratic constraints. Table 4 and Table 5 report the selected configurations, incumbent values, upper bounds, termination states, and computation times. All ten runs reached optimal status within solver tolerances. Solver times range from 5070.50 to 10,762.91 s, and the final relative gaps of the net objective range from 0.000449% to 0.004587%.
Table 4.
Selected capacities and portfolio NPV for the ten demand-scaling scenarios. Monetary values are in million USD. The incumbent and upper bound refer to the SOCP model.
Table 5.
Computational results for the ten-scenario batch. All runs have termination status OPTIMAL and primal status FEASIBLE_POINT, subject to solver tolerances. Net objective values are in million USD.
The solver maximizes the net objective Z in (39), after omitting the discounted demand receipts , which are constant within each scenario. We add the same to the incumbent and objective bound when reporting NPV. Hence, the absolute gap is unchanged, whereas the relative gap in Table 5 uses the net objective as its denominator. The SOCP incumbent is a lower bound for the relaxed problem being maximized.
Figure 6a shows that portfolio NPV decreases from 1561.307 million USD at to million USD at 5.9%. The largest tested factor with positive NPV is 5.7%, with 227.620 million USD. At 5.8%, both the incumbent and upper bound are negative. Their values are and million USD, respectively, so the negative sign is not due to the remaining MIP gap. The sampled sign change lies between 5.7% and 5.8%; interpolation does not yield an exact break-even factor because the investment decisions are discrete. These values describe the complete supply portfolio, not the incremental profitability of the HS relative to a no-HS alternative. Figure 6b reports the corresponding net-objective gaps and solver times.
Figure 6.
(a) Portfolio NPV incumbent and SOCP upper bound for the ten demand-scaling scenarios. The 5.7% case is highlighted; (b) Final relative MIP gap of the net objective on the left axis and solver time on the right axis for the ten-scenario batch.
The selected capacities in Figure 7 change in discrete steps. PV capacity rises from 100 MW in the first scenario to 1000 MW in the last, although the 5.1% scenario selects no PV. Wind capacity varies nonmonotonically between 200 and 565 MW. Bt system energy capacity ranges from 1500 to 3550 MWh. Higher demand is therefore associated with greater PV and storage capacity over the tested range, but the results do not show a strictly monotonic increase in every technology.
Figure 7.
Selected capacities in a single plot: PV and wind power on the left axis (MW), and Bt system energy capacity on the right axis (MWh).
4.2. Individual Run at a Demand-Scaling Factor of 5.7%
The 5.7% case is retained for the operating analysis because it is the largest tested factor with a positive portfolio NPV and allows direct comparison with the original batch scenario. It is an externally specified demand level, not a decision optimized across scenarios. The individual run uses the same 8760 h inputs, model formulation, three remunerated branches, loss parameters, and voltage setting as batch case 8. The saved input and formulation fingerprints agree. The configuration, investment decisions, financial outputs, and complete hourly series are identical byte for byte. The repetition therefore reproduces the same numerical solution, rather than introducing a revised operating condition.
As shown in Table 6, the individual solver time is 9136.691 s, compared with 9153.333 s in the batch. This small timing difference does not indicate an algorithmic improvement. We retain the batch timings in Table 5 and report the individual repetition separately. Both runs select 700 MW of PV, 565 MW of wind, and 2125 MWh of Bt system capacity. The NPV incumbent is 227.620 million USD, and the SOCP upper bound is 227.880 million USD. Their difference is 0.260 million USD, equal to 0.004587% of the absolute net objective or 0.114294% of the reported NPV.
Table 6.
Comparison of the original 5.7% batch scenario and its individual repetition.
4.3. Chronological Operation and Storage Balance
Annual demand in the 5.7% case is 10.262582 TWh. Conventional generation supplies 5.746680 TWh, while net HS injection supplies 4.651721 TWh. Together, they cover demand and 0.135819 TWh of modeled network losses. Net HS injection represents 45.327% of annual demand. It includes Bt system discharge and subtracts grid-to-Bt system charging; Bt system discharge must therefore not be added to HS injection a second time. The maximum hourly discrepancy in this aggregate balance is below MW in the solution.
Figure 8 presents the 8760 successive hourly records of the individual 5.7% solution. Total net supply is conventional generation plus net HS injection; the difference from demand is the modeled network loss. The net internal Bt power, summed over the installed systems, is shown separately to identify charging and discharging periods.
Figure 8.
Total net supply and demand use the left axis; net internal Bt power uses the right axis, with charging positive and discharging negative.
Figure 9 displays 400 h windows from each season. These views relate storage operation to the timing of generation and demand; the revised dispatch must satisfy the modeled balances throughout the year, including conversion losses and network losses.
Figure 9.
Seasonal demand and generation with battery data: (a) Winter; (b) Spring; (c) Summer; (d) Autumn.
Aggregate stored energy ranges from 212.5 to 2125.0 MWh and starts and ends the operating year at 212.5 MWh. To quantify the effect of self-discharge, we sum the hourly storage balance in (8) over all periods for each battery. The hourly changes in stored energy sum to , which is zero by the cyclic condition in (10). The internal charging and discharging powers already account for the applicable conversion efficiencies, and is the fraction of previously stored energy lost to self-discharge in each hourly step. Summing over all batteries and multiplying by gives the annual energy balance in MWh:
The left side of (41) is the annual internal charging energy minus the annual internal discharging energy. The right side is the cumulative energy lost to self-discharge. Annual internal charging and discharging energies are 338,496.528 and 331,776.053 MWh, respectively. Their difference agrees within rounding with the cumulative self-discharge of 6720.476 MWh, which represents 1.985% of annual internal charging energy. The net internal charging therefore replenishes the self-discharge losses and restores the initial stored energy at the end of the year. In addition, the maximum absolute residual of the storage balance in (8) across all batteries and for each period is MWh. No individual Bt system in the exported schedule charges and discharges simultaneously.
Figure 10a displays the complete 8760 h trajectory of aggregate stored energy in MWh. The assumed self-discharge fraction of 0.001 per hour implies a 2.373% loss after 24 h of inactivity. This is a case-study assumption, not a parameter calibrated to the installed Bt system technology. The annual balance quantifies its effect at the adopted value; this run does not infer sensitivity to other self-discharge rates. Meanwhile, the 24-by-365 array in Figure 10b contains all 8760 h values, expressed as percentages of the installed Bt energy capacity.
Figure 10.
Aggregate hourly stored energy over the full operating year for the 5.7% case. The lower and upper bounds correspond to 10% and 100% of the installed 2125 MWh Bt energy capacity.
In addition, in Figure 11 we calculate the mean internal Bt charging and discharging powers for each hour of the day from the 365-day record. Charging is positive, and discharging is negative. These averages summarize different operating days and do not imply simultaneous charging and discharging within an individual Bt system.
Figure 11.
Mean internal Bt charging and discharging powers for each hour of the day.
Figure 12 combines distributions of the 8760 h voltage magnitudes at each bus with their chronological profiles. The box plots are on the left and the complete hourly histories on the right. The histories represent successive steady-state operating points, not electrical transients. Magnitude-bound compliance remains from consistency of AC voltage angles.
Figure 12.
Bus-voltage magnitudes for the SOCP solution: (a) distributions of all 8760 h observations by bus; (b) complete hourly histories. Boxes show medians and quartiles; whiskers follow the 1.5-interquartile-range rule, with outliers shown separately. The display is restricted to 0.97–1.105 p.u.; the modeled bounds are 0.9–1.1 p.u., and the upper bound is indicated.
4.4. Post-Optimization Comparison with Fixed Binary Decisions
A post-optimization comparison was performed for the 5.7% case using a branchwise equality-constrained nonlinear model to examine the effect of replacing the SOCP inequalities with the corresponding nonlinear equalities. The binary decisions obtained from the MISOCP solution were fixed at their selected values, including both investment decisions and hourly Bt charging/discharging modes. The remaining continuous variables were reoptimized using IPOPT, with the same objective function, input data and operating constraints.
Let denote the complete set of fixed binary decisions. Here, includes the four binary-variable arrays, and all 8760 periods are retained. Starting from the feasible region in (30), the nonlinear comparison problem is defined by
The equalities in (42) restore the branchwise voltage-product identities in (14). Fixing the binary variables removes the discrete decisions from this second optimization problem, while the quadratic equalities retain its nonconvex character. This procedure evaluates the continuous operating solution associated with the selected investment and Bt operating modes. Accordingly, refers to the portfolio value of the branchwise NLP solution.
The tightness of the SOCP inequality is evaluated through the following residual for each branch and hour:
This quantity measures departure from the branchwise equality and is distinct from an objective optimality gap. Its value is zero when the equality is satisfied exactly. In Table 7 the comparison considers the absolute difference between objective values and the maximum absolute differences in branch residuals, squared voltage magnitudes, and active and reactive branch flows over the evaluated periods.
Table 7.
Absolute objective difference and maximum pointwise deviations between the MISOCP solution and the fixed-binary.
5. Conclusions
The proposed framework combines discrete PV, wind and Bt system sizing with chronological storage operation and a standard SOCP network relaxation. The ten demand-scaling cases retain all 8760 h observations and reach optimal MISOCP status within solver tolerances. Portfolio NPV is positive for the tested factors from 5.0% to 5.7% and negative at 5.8% and 5.9%. The illustrative 5.7% case selects 700 MW of PV, 565 MW of wind and 2125 MWh of Bt storage. Net HS injection is equivalent to 45.327% of annual demand. At a 6.5% discount rate over 30 years, its portfolio NPV is 227.620 million USD, with an upper bound of 227.880 million USD. These figures describe the complete supply portfolio; the demand factor is externally specified, and the results do not establish the incremental profitability of the HS.
The storage balance accounts for the self-discharge of previously stored energy, and the cyclic boundary restores the initial stored energy at the end of the year. In the illustrative case, the annual difference between internal charging and discharging agrees with 6720.476 MWh of the self-discharge. Network-relaxation diagnostics also delimit the interpretation of the solution. The maximum cycle-angle residual is 0.229460 rad, or 13.147 degrees, despite the small relative MIP gap. The relaxed voltage products therefore do not directly define consistent AC voltages. So for future works, it is necessary that a phasor-based recovery remains.
Economic outcomes remain conditional on perfect information and constant equipment performance. With the 5.7% design and dispatch fixed, a hypothetical full replacement of the Bt systems in year 15 reduces portfolio NPV from to million USD. This accounting sensitivity does not model a technology-specific lifetime or reoptimize the design.
AC-feasibility verification remains a priority for future work. The nonzero cycle-angle residuals in the relaxed and branchwise NLP solutions prevent treating the reported operating points as verified AC-feasible schedules. Future studies should recover voltage phasors, verify the original AC balances and operating limits over every hour, and quantify the resulting dispatch and economic changes. The small fixed-binary objective difference alone does not establish relaxation exactness or global optimality of the AC investment problem.
The five-bus demonstration preserves temporal detail but does not establish spatial scalability. Future work should evaluate larger standard networks and investigate Benders decomposition to separate investment and operating decisions. Such an extension must address the hourly operating binaries rather than assume continuous convex subproblems. It must preserve intertemporal stored-energy balances, boundary states, and annual closure when dividing the year into subproblems; compare computation times, bounds, memory use, and sizing outcomes with the current monolithic formulation; and incorporate and assess degradation, replacement, and forecast uncertainty through reoptimized planning and operational studies.
Author Contributions
Conceptualization, A.O.C., M.B., D.S.B. and J.P.A.-L.; methodology: A.O.C., M.B., D.S.B. and J.P.A.-L.; software, A.O.C. and J.P.A.-L.; formal analysis: A.O.C., M.B., D.S.B. and J.P.A.-L.; investigation, A.O.C., M.B., D.S.B. and J.P.A.-L.; writing—original draft preparation, A.O.C., M.B., D.S.B. and J.P.A.-L.; writing—review and editing, A.O.C., M.B., D.S.B. and J.P.A.-L.; supervision, M.B. and D.S.B. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The data presented in this research are available on request from the corresponding author.
Acknowledgments
The authors would like to thank the Instituto Politécnico Nacional (IPN), the project SIP:2026-0315 and the Graduate Studies and Research Section (SEPI) for the support provided for the development of this work.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| Abbreviations | |
| AC | Alternating Current |
| B&B | Branch-and-Bound |
| Bt | Battery |
| CAPEX | Capital expenditure |
| FOM | Fixed Operation and Maintenance Costs |
| HS | Hybrid System |
| LMP | Locational Marginal Price |
| MISOCP | Mixed-Integer Second-Order conic programming |
| MVA | Mega Volt Ampere |
| NLP | Nonlinear Programming |
| NPV | Net Present Value |
| OPF | Optimal Power Flows |
| PV | Photovoltaic |
| QCQP | Quadratically Constrained Quadratic Programming |
| SoC | State of Charge |
| SOCP | Second-Order Conic Programming |
| WD | Wind |
| Sets | |
| Set of Planning horizon | |
| Set of buses | |
| I | Set of Pv candidates |
| J | Set of Bt candidates |
| K | Set of Wd candidates |
| P | Set of periods |
| Index | |
| h | Year number |
| i | Pv system number |
| j | Bt system number |
| k | Wd system number |
| Bus number | |
| p | Period number |
| Parameters | |
| Efficiency of the Pv inverter | |
| Apparent power limit through a transmission line | |
| Upper limit of active power generation in n | |
| Upper limit of reactive power generation in n | |
| Upper voltage limit at the bus n | |
| Lower limit of active power generation in n | |
| Lower limit of reactive power generation in n | |
| Lower voltage limit at the bus n | |
| Imaginary part from Y-bus admittance matrix | |
| Generation cost of the generation unit g | |
| Real part from Y-bus admittance matrix | |
| Demand increment in time segment h | |
| r | Interest rate |
| Base power MVA | |
| Temperature during p | |
| Network usage fee in the electrical system | |
| Factor of the geometric series on the interest rate r over the planning horizon | |
| The j-th Bt system | |
| The i-th Pv system | |
| The k-th Wd system | |
| Self-discharge of Bt system | |
| Inverter efficiency connected to Bt system | |
| Charge controller efficiency of Bt system | |
| Charging and discharging efficiency of Bt system | |
| Efficiency of system during period p | |
| Cost of system | |
| Cost of system | |
| Cost of system | |
| Loss factor of each Pv system during p | |
| Fixed operation and maintenance costs of system | |
| Fixed operation and maintenance costs of system | |
| Fixed operation and maintenance costs of system | |
| Estimated generation Wd system | |
| Total number of Bt systems | |
| Total number of Pv systems | |
| Total number of Wd systems | |
| Number of wind turbines in each k Wd system | |
| Upper limit of SoC for Bt systems | |
| Lower limit of SoC for Bt systems | |
| Maximum charge and discharge rate of Bt system | |
| Electricity price at bus n in period p | |
| Variables | |
| Variable associated with the real part from power flow equations in line in period p in the conic model | |
| Variable associated with the imaginary part from power flow equations in line in period p in the conic model | |
| Net internal active power balance of Bt system j in period p | |
| Net present value | |
| Internal charging and discharging active powers of Bt system j in period p | |
| Active power injection during period p from Pv system to the grid | |
| Active power injection during period p from Pv system to Bt system | |
| Active power from Bt system to the grid during period p | |
| Active power sent from the grid to Bt system during period p | |
| Active power injection during period p from Wd system to the grid | |
| Active power injection during p from Wd system to Bt system | |
| Binary variable selection of Bt system | |
| Binary variable selection of Pv system | |
| Binary variable selection of Wd system | |
| Active power load during p | |
| Active power generation unit g during p | |
| Generation from HS during p | |
| Total active power flow at bus n during p | |
| Active power flow in line during p | |
| Reactive power load during p | |
| Reactive power generation unit g during p | |
| Total reactive power flow at bus n during p | |
| Reactive power flow in line during p | |
| State of charge of Bt system in p | |
| Binary variable for charging and discharging from Bt system during period p |
References
- Li, F.; Bo, R. Small test systems for power system economic studies. In Proceedings of the IEEE PES General Meeting; IEEE: New York, NY, USA, 2010; pp. 1–4. [Google Scholar] [CrossRef] [Scilit]
- Atif, A.; Khan, K.A.; Khalid, M. Battery integrated optimal power smoothing of solar PV output using meta-heuristic optimization. In Proceedings of the 2022 IEEE Green Technologies Conference (GreenTech); IEEE: New York, NY, USA, 2022; pp. 13–18. [Google Scholar] [CrossRef] [Scilit]
- Song, H.; Liu, C.; Amani, A.M.; Gu, M.; Jalili, M.; Meegahapola, L.; Yu, X.; Dickeson, G. Smart optimization in battery energy storage systems: An overview. Energy AI 2024, 17, 100378. [Google Scholar] [CrossRef] [Scilit]
- Nguyen-Tuan, A.; Ta-Duy, B.; Nguyen-Duc, T.; Fujita, G. A novel approach to optimize and allocate battery energy storage system in distributed grid considering impact of demand response program. Sustain. Energy Grids Netw. 2025, 43, 101738. [Google Scholar] [CrossRef] [Scilit]
- Zohrizadeh, F.; Josz, C.; Jin, M.; Madani, R.; Lavaei, J.; Sojoudi, S. A survey on conic relaxations of optimal power flow problem. Eur. J. Oper. Res. 2020, 287, 391–409. [Google Scholar] [CrossRef] [Scilit]
- Moghadam, A.S.; Suratgar, A.A.; Hesamzadeh, M.R.; Nikravesh, S.K.Y. A distributed approach for solving AC–DC multi-objective OPF problem. Int. J. Electr. Power Energy Syst. 2023, 153, 109284. [Google Scholar] [CrossRef] [Scilit]
- Sepúlveda-García, S.; Montoya, O.D.; Garcés, A. A second-order conic approximation to solving the optimal power flow problem in bipolar DC networks while considering a high penetration of distributed energy resources. Int. J. Electr. Power Energy Syst. 2024, 155, 109516. [Google Scholar] [CrossRef] [Scilit]
- Zhang, X.; Woo, H.; Choi, S. An interval power flow method for radial distribution systems based on hybrid second-order cone and linear programming. Sustain. Energy Grids Netw. 2023, 36, 101158. [Google Scholar] [CrossRef] [Scilit]
- Chowdhury, M.U.T.; Kamalasadan, S. An Angle Included Optimal Power Flow (OPF) Model for Power Distribution Network Using Second Order Cone Programming (SOCP). In Proceedings of the 2020 IEEE Industry Applications Society Annual Meeting; IEEE: New York, NY, USA, 2020; pp. 1–7. [Google Scholar] [CrossRef] [Scilit]
- Qiu, G.; Tanneau, M.; Van Hentenryck, P. Dual conic proxies for AC optimal power flow. Electr. Power Syst. Res. 2024, 236, 110661. [Google Scholar] [CrossRef] [Scilit]
- Grimaldi, A.; Minuto, F.D.; Brouwer, J.; Lanzini, A. Profitability of energy arbitrage net profit for grid-scale battery energy storage considering dynamic efficiency and degradation using a linear, mixed-integer linear, and mixed-integer non-linear optimization approach. J. Energy Storage 2024, 95, 112380. [Google Scholar] [CrossRef] [Scilit]
- Home-Ortiz, J.M.; Pourakbari-Kasmaei, M.; Lehtonen, M.; Sanches Mantovani, J.R. Optimal location-allocation of storage devices and renewable-based DG in distribution systems. Electr. Power Syst. Res. 2019, 172, 11–21. [Google Scholar] [CrossRef] [Scilit]
- Roald, L.A.; Pozo, D.; Papavasiliou, A.; Molzahn, D.K.; Kazempour, J.; Conejo, A. Power systems optimization under uncertainty: A review of methods and applications. Electr. Power Syst. Res. 2023, 214, 108725. [Google Scholar] [CrossRef] [Scilit]
- Talent, O.; Du, H. Optimal sizing and energy scheduling of photovoltaic-battery systems under different tariff structures. Renew. Energy 2018, 129, 513–526. [Google Scholar] [CrossRef] [Scilit]
- Khalilpour, R.; Vassallo, A. Planning and operation scheduling of PV-battery systems: A novel methodology. Renew. Sustain. Energy Rev. 2016, 53, 194–208. [Google Scholar] [CrossRef] [Scilit]
- Contreras, A.O.; Badaoui, M.; Baltazar, D.S. The Optimal Selection of Renewable Energy Systems Based on MILP for Two Zones in Mexico. Sustainability 2024, 16, 6261. [Google Scholar] [CrossRef] [Scilit]
- Kocuk, B.; Dey, S.S.; Sun, X.A. Strong SOCP Relaxations for the Optimal Power Flow Problem. Oper. Res. 2016, 64, 1177–1196. [Google Scholar] [CrossRef] [Scilit]
- Duffie, J.A.; Beckman, W.A. Available Solar Radiation. In Solar Engineering of Thermal Processes; John Wiley & Sons: Hoboken, NJ, USA, 2013; Chapter 2; pp. 43–137. [Google Scholar] [CrossRef] [Scilit]
- Copper, J.; Sproul, A.; Jarnason, S. Photovoltaic (PV) performance modelling in the absence of onsite measured plane of array irradiance (POA) and module temperature. Renew. Energy 2016, 86, 760–769. [Google Scholar] [CrossRef] [Scilit]
- Kalla, K.R.; Kishore, D.R.; Kumar, D.V. Predicting Plane-of-Array (POA) Solar Irradiance Using Machine Learning: GTI and GHI Comparison. In Proceedings of the 2025 12th National Power Electronics Conference (NPEC); IEEE: New York, NY, USA, 2025; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
- Khalilpour, R.; Vassallo, A. Leaving the grid: An ambition or a real choice? Energy Policy 2015, 82, 207–221. [Google Scholar] [CrossRef] [Scilit]
- Arenas-López, J.P.; Badaoui, M. Analysis of the offshore wind resource and its economic assessment in two zones of Mexico. Sustain. Energy Technol. Assess. 2022, 52, 101997. [Google Scholar] [CrossRef] [Scilit]
- The Wind Power. Available online: https://www.thewindpower.net/index.php (accessed on 20 May 2026).
- Marnell, K.; Obi, M.; Bass, R. Transmission-Scale Battery Energy Storage Systems: A Systematic Literature Review. Energies 2019, 12, 4603. [Google Scholar] [CrossRef] [Scilit]
- Griva, I.; Nash, S.G.; Sofer, A. Linear and Nonlinear Optimization, 2nd ed.; SIAM: Philadelphia, PA, USA, 2008. [Google Scholar] [CrossRef] [Scilit]
- Jabr, R. Radial distribution load flow using conic programming. IEEE Trans. Power Syst. 2006, 21, 1458–1459. [Google Scholar] [CrossRef] [Scilit]
- Sun, X.A.; Conejo, A.J. Robust Optimization in Short-Term Power System Operations. In Robust Optimization in Electric Energy Systems; Springer International Publishing: Berlin/Heidelberg, Germany, 2021; pp. 239–279. [Google Scholar] [CrossRef] [Scilit]
- Zimmerman, R.D.; Murillo-Sánchez, C.E.; Thomas, R.J. MATPOWER: Steady-State Operations, Planning, and Analysis Tools for Power Systems Research and Education. IEEE Trans. Power Syst. 2011, 26, 12–19. [Google Scholar] [CrossRef] [Scilit]
- Observatorio de Transición Energética de México. Available online: https://obtrenmx.org/ (accessed on 10 August 2026).
- Centro Nacional de Control de Energía “CENACE”. Demanda del Sistema Electrico Nacional. 2025. Available online: https://www.cenace.gob.mx/GraficaDemanda.aspx (accessed on 18 November 2026).
- Contreras, A.O.; López, J.P.A.; Badaoui, M.; Baltazar, D.S. Sizing of Hybrid Systems Base on MISOCP Stochastic Optimization Model in Mexico. In Proceedings of the 2026 6th International Conference on Electrical, Computer and Energy Technologies (ICECET); IEEE: New York, NY, USA, 2026; pp. 1–7. [Google Scholar] [CrossRef] [Scilit]
- 2024 Electricity ATB Technologies. Available online: https://atb.nlr.gov/electricity/2024b/technologies (accessed on 20 May 2026).
- Radu, D.; Berger, M.; Dubois, A.; Fonteneau, R.; Pandžić, H.; Dvorkin, Y.; Louveaux, Q.; Ernst, D. Assessing the impact of offshore wind siting strategies on the design of the European power system. Appl. Energy 2022, 305, 117700. [Google Scholar] [CrossRef] [Scilit]
- NSRDB: National Solar Radiation Database. Available online: https://nsrdb.nlr.gov/data-viewer (accessed on 10 June 2026).
- Centro Nacional de Control de Energía (CENACE). Datos históricos de los Precios Marginales Locales (PML) por NodoP. 2025. Available online: https://www.cenace.gob.mx/Paginas/SIM/MercadoCP.aspx (accessed on 18 November 2026).
- Gurobi Optimization, LLC. Gurobi Optimizer Reference Manual; Gurobi Optimization, LLC: Beaverton, OR, USA, 2024. [Google Scholar]
- Bezanson, J.; Edelman, A.; Karpinski, S.; Shah, V.B. Julia: A Fresh Approach to Numerical Computing. SIAM Rev. 2017, 59, 65–98. [Google Scholar] [CrossRef] [Scilit]
- Lubin, M.; Dowson, O.; Dias Garcia, J.; Huchette, J.; Legat, B.; Vielma, J.P. JuMP 1.0: Recent improvements to a modeling language for mathematical optimization. Math. Program. Comput. 2023, 15, 581–589. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.











