Professional Documents
Culture Documents
Abstract
Large numbers of flow simulations are typically required for the determination of optimal well settings. These
arXiv:1903.05065v2 [math.OC] 27 Jan 2020
simulations are often computationally demanding, which poses challenges for the optimizations. In this paper we
present a new two-step surrogate treatment (ST) that reduces the computational expense associated with well con-
trol optimization. The method is applicable for oil production via waterflood, with well rates optimized at a single
control period. The two-step ST entails two separate optimizations, which can both be performed very efficiently.
In the first optimization, optimal well-rate ratios (i.e., the fraction of total injection or production associated with
each well) are determined such that a measure of velocity variability over the field is minimized, leading to more
uniform sweep. In the second step, overall injection and production rates are determined. The flow physics in the
first step is highly simplified, while the actual physical system is simulated in the second step. Near-globally-optimal
results can be determined in both cases, as the first optimization is posed as a QP problem, and the second step entails
just a single optimization variable. Under full parallelization, the overall elapsed time for the ST corresponds to the
runtime for 1–2 full-order simulations. Results are presented for multiple well configurations, for 2D and 3D chan-
nelized models, and comparisons with formal optimization procedures (mesh adaptive direct search or MADS, and
an adjoint-gradient method) are conducted. Three different fluid mobility ratios (M = 1, 3 and 5) are considered. Op-
timization results demonstrate that the two-step ST provides results in reasonable agreement with those from MADS
and adjoint-gradient methods, with speedups of 5× or more. We also show that the ST is applicable in the inner-loop
in field development optimization, where it will be especially useful since many different well configurations must be
evaluated.
Keywords: Well control optimization, surrogate model, proxy model, field development optimization, reservoir
simulation
2. Problem statement
2.2. General optimization problem
In this section, we present the equations governing The general field development optimization problem
reservoir flow, and we provide a formal statement of the involves determination of the well types, locations and
general optimization problem. controls, with the goal of minimizing a cost function J.
Following [37], the optimization problem can be stated
2.1. Oil-water flow equations as follows:
(
For two-phase oil-water flow, the governing equa- g(p, x, u, z) = 0,
tions, which derive from Darcy’s law for each phase and min J(x, u, z), subject to
x∈X,u∈U,z∈Z c(p, x, u, z) ≤ 0
mass conservation statements, can be expressed in terms
(3)
of the so-called pressure and saturation equations. In the
absence of capillary pressure and gravity effects, these
The vectors x and u indicate integer (grid-block based)
equations are as follows:
well location variables and continuous well control vari-
∂p ables, respectively, while z are categorical variables,
∇ · (λt (Sw ) k∇p) = −q̃tw + φ ct , (1) which indicate whether the well is an injector (zk =
∂t
−1), a producer (zk = 1), or not drilled at all (zk =
0). The well location variables can also be treated as
∂ Sw real-valued, and this may be preferable in cases where
φ + ∇ · ( f (Sw ) ut ) = q̃ww . (2)
∂t wells are not centered in grid blocks (e.g., with devi-
Here subscripts o and w refer to oil and water phases, ated wells). Here g = 0 denotes the flow simulation
equations, p represents the solution unknowns, which
λt is the total mobility, with λt = λo + λw , where λo =
in our system are the pressure and saturation in ev-
kro /µo and λw = krw /µw , kro and krw are relative per-
ery grid block, and c defines any nonlinear constraints.
meability to the oil and water phases respectively, and
The spaces X and U are defined to include bound con-
µo and µw are phase viscosities. Additional variables
straints, which can be expressed as xl ≤ x ≤ xu and
are water saturation Sw , absolute permeability tensor
ul ≤ u ≤ uu , where subscripts l and u denote lower and
k, pressure p, total source/sink q̃tw (the superscript w
upper bounds.
here refers to wells), porosity φ , total compressibility ct
In this work the objective is to maximize net present
(which is a weighted combination of the fluid and rock
value (NPV); i.e., we set J = −NPV, with NPV given
compressibilities), and time t. The fractional flow of
by:
water f (Sw ) is defined as f (Sw ) = λw /λt , the total ve-
locity as ut = uo + uw (uo and uw are the Darcy veloc-
pw
ities for oil and water), and q̃ww is the water source/sink
n p ns ∆ts po qok,s (x, u) − c pw qk,s (x, u)
NPV(x,u,z) = ∑∑ ts −
term. We additionally have the saturation constraint k=1 s=1 (1 + d) 365
So + Sw = 1, which completes the problem statement. ni ns ∆ts ciw qiw
k,s (x, u)
nw
|zk | cw
In the discretized system, the source terms (q̃ww and ∑∑ ts −∑ tk . (4)
w
q̃t ) are represented using the Peaceman well model. (1 + d)
k=1 s=1 365 k=1 (1 + d) 365
3
Here ni is the number of injection wells, n p is the num- are optimized together. This can be accomplished either
ber of production wells, nw = ni + n p is the total num- in a single loop [38], in which all variables are consid-
ber of wells, ns is the number of simulation time steps, ts ered simultaneously, or in a nested fashion [39]. In the
and ∆ts are the time and time step size at time step s, and nested approach, well types and locations are defined in
d is the annual discount rate. The price of oil, the cost the outer loop, and well controls are optimized in the
for handling produced water, and the cost of injected inner-loop. The ST developed in this study can be used
water are, respectively, po , c pw and ciw . The oil and wa- directly in the inner-loop in nested (joint) field devel-
ter production rates and the water injection rate, for well opment optimization procedures. In this more challeng-
pw
k at time step s, are denoted qok,s , qk,s and qiw
k,s . The vari- ing application, our two-step ST may provide significant
able tk represents the time at which well k is drilled, and computational speedup.
the per-well drilling cost is denoted by cw . For a par- It is very useful for the surrogate model to be con-
ticular well control optimization problem, the last term structed such that the global optimum of the resulting
in Eq. 4 does not vary since the well configuration, and optimization problem can be readily found. This will be
thus the values of |zk |, are fixed. We nonetheless include the case, for example, if the surrogate treatment leads
the well costs in the computation in order to render the to a linear programming (LP) or a quadratic program-
resulting NPVs more indicative of those for an actual ming (QP) problem. For general LP or QP problems, a
project. variety of global optimization algorithms are available.
In the optimizations performed in this study, the well These include the Simplex algorithm and its extensions,
types and locations are fixed (though in one set of exam- and interior-point and conjugate-gradient methods [40].
ples we extract the well configurations from a field de- As we will see, the two-step ST developed in this work
velopment optimization run). Then, with J = −NPV(u), can indeed be formulated as two supbroblems that are
Eq. 3 can be expressed as: amenable to global optimization. We reiterate that this
( does not mean we find the global optimum for the origi-
g(p, u) = 0, nal full-physics problem, but rather that we can find the
max NPV(u), subject to (5)
u∈U c(p, u) ≤ 0 global optima for the subproblems considered in the ST.
7
super
(a) ûx (b) ûsimul
x (c)
super
(d) ûy (e) ûsimul
y (f)
Figure 3: Velocity components (for model shown in Fig. 2) obtained through superposition and direct simulation. (a,b,c) depict x-direction
components and cross-plot, and (d,e,f) depict y-direction components and cross-plot.
At this stage we do not require VRR = 1 or the as- vides the best NPV to be Q∗ .
sumption of slight compressibility, though it is expected We could of course iterate this procedure further, by
that the overall ST will perform better when these con- running additional cases in the most promising PVI
ditions are approximated. Since the well-rate ratios f∗ regions, to provide the global optimum (red point in
are specified, VRR = 1 will still be naturally enforced Fig. 4). Given the level of approximation inherent in
unless other constraints, such as well BHP limits (dis- the overall surrogate treatment, however, this additional
cussed below), become active. We treat the problem iteration may not be necessary, assuming a sufficient
defined in Eq. 16 very simply. Specifically, we de- number of processors (and simulator licenses) are avail-
fine a range for Q such that, over the simulation time able.
frame, between 0.5 pore volumes injected (PVI) and
2.5 PVI are introduced into the model from all of the We note finally that in the special case where the sys-
wells. We compute even increments in PVI based on tem actually corresponds to M = 1 (or is very close to
nproc , where nproc is the number of available proces- M = 1), it is possible to use highly efficient approaches
sors (or the number of available simulator licenses if such as the time-of-flight computations implemented in
we have fewer licenses than processors), and then sim- the Matlab Reservoir Simulation Toolbox, MRST [43]
ulate each Q value on a different processor. For ex- in place of full-physics simulations. In such cases it will
ample, for nproc = 41, we simulate cases correspond- be very inexpensive to perform an additional iteration in
ing to 0.5, 0.55, 0.60, . . . , 2.45, 2.5 PVI. This provides the second stage of the ST.
the green points shown in Fig. 4 in an elapsed (wall- At this point it is useful to review the treatments and
clock) time corresponding to the time required for one approximations introduced into our two-stage ST. In the
full-physics simulation. We then take the Q that pro- first stage, we minimize a measure of velocity variabil-
ity under the assumption of M = 1 and VRR = 1. The
8
constraint is expected to be a BHP constraint. We now
describe two heuristic approaches for handling this con-
straint. The first approach (which is the one actually
implemented in this study) is applicable when the con-
straint violations involve a relatively small fraction of
wells. The second approach, which is more complicated
and involves iteration between the two ST steps, might
be required if a large fraction of the wells are under BHP
control.
We are concerned mainly with cases for which µo &
µw , and thus M & 1. In such cases, less viscous (more
mobile) fluid is injected into the reservoir, so the differ-
Figure 4: Relationship between NPV and PVI, which is used to deter- ences in pressure between injectors and producers tend
mine the optimal field rate Q∗ in the second subproblem. The green
points indicate results for different simulation runs, and the red point to decrease with time. Therefore, if BHP constraint vi-
indicates the true optimum. olations do occur, this will often be at the start of the
simulation (we check for BHP constraint violations just
after the initial transient period, which lasts for a few
objective function used in this minimization is not the time steps). These constraint violations will be detected
actual objective function, though it does correspond to in the second stage of the ST, where full-physics sim-
a quantity that is expected to impact displacement effi- ulations are performed to determine Q∗ . In such cases,
ciency. Then, given the optimized well-rate ratios from we specify the BHP for the affected well(s), at the max-
this first step, in the second step we maximize the actual imum or minimum, and then reapportion the remaining
objective function (NPV) using the full-physics model. injection and production. Specifically, well-rate ratios
Global optima can be determined for both problems – in this case are assigned as:
the first-stage optimization is a QP problem, and the
second-stage optimization involves only a single vari- fkp
able. Since the second-stage problem can be solved in ( f 0 )kp = n pr , (17)
p
an elapsed time corresponding to a single full-physics ∑ fk
k=1
run, and given that the first-stage problem can be solved
even faster, the elapsed time for an optimization using where ( f 0 )kp is the updated well-rate ratio for production
our ST is the time required for 1–2 full-physics runs. well k, and n pr is the number of production wells that
Another aspect of our two-step ST is that there is not operate under rate control. An analogous procedure is
any iteration between the first and second steps; i.e., applied to the injection wells when a BHP constraint
each problem is solved only once. In many two-step violation occurs at the start of the simulation.
optimization procedures, there is iteration between the The well-rate distributions now correspond to
two steps. In such cases, convergence to a local mini- rescaled f∗ for those wells that remain under rate con-
mum is often assured. The lack of iteration renders our trol. BHP constraints are satisfied for the other wells.
approach very efficient, but we cannot claim that it con- We again vary rate Q and compute NPV in the second
vergences to a local minimum of the actual problem. In ST stage. The resulting curve, which differs from that of
Sect. 3.2, we will describe a treatment for BHP con- the unconstrained case, is shown in Fig. 5. Note that the
straint handling that does entail iteration between the optimal rate Q∗ calculated in this step is not the actual
two steps, but this procedure would only be used if a total rate of the field. Rather, it is the total rate of the
BHP constraint violation is detected. We note finally wells operating under rate control. The total rate of the
that the settings provided by the two-step ST can be field is the sum of Q∗ and the rate injected or produced
used as an initial guess for a traditional optimizer (e.g., by the wells operating under BHP control. On the other
MADS), and in this optimization we do expect to con- hand, this treatment does not impact the efficiency of
verge to a local minimum of the actual problem. the second-stage optimization – it can still be achieved,
in an elapsed time of 1–2 full-order simulations, as de-
3.2. BHP constraint handling techniques scribed above.
The two-step ST described above did not include the When Eq. 17 is applied, the total rate of the field
treatment of any constraints. In the case of well-rate will not, in general, be strictly constant as a function of
specifications, as are applied here, the most important time. Field injection and production rates do, however,
9
quickly ‘equilibrate,’ meaning VRR=1 is again achieved For cases where a large fraction of wells reach their
(and sustained throughout the simulation). This typi- BHP limits, or are specified to be under BHP control
cally occurs because another well also reaches a BHP for operational reasons, we believe the following itera-
constraint, and the specification of BHP for two wells, tive procedure will be effective. In the first iteration, the
and rates for the other wells, results in balanced injec- two-step ST is performed exactly as described earlier.
tion and production in a nearly incompressible system. In the second ST step, however, after the early transient,
Nonetheless, the f∗ values determined in the first ST step we compute the maximum values of fki or fkp corre-
for the wells under BHP control are no longer honored. sponding to wells that reach their BHP limits. Then, the
This acts to reduce the benefit afforded by minimizing first ST step is repeated, with the BHP-constrained fki
the squared velocity in the first ST step. However, in or fkp specified as upper bounds, for the corresponding
cases where the fraction of BHP-controlled wells is rel- wells, in the QP optimization. This will ensure that the
atively small, the overall impact on the two-step ST re- rate allocation is indeed optimized (under the reduced-
sult is not expected to be large. We reiterate that the op- physics assumptions in the first ST step) for the BHP-
timal rate determined in the second step fully accounts constrained case. The second ST step is then repeated to
for wells operating under BHP control. determine Q∗ given the new f∗ values. This entire pro-
cedure can be repeated (iterated) as necessary to assure
no wells violate BHP constraints for the final f∗ and Q∗ .
We note that this iterative treatment directly links the
two ST steps, since the results from second step impact
the first step.
A closely related issue is the treatment of wells that,
for practical reasons, do not operate under rate con-
trol for extended periods, as discussed by Ushmaev et
al. [14] . The strategy for handling such wells would be
(essentially) that described above for wells that reach
their BHP limit. In the case of wells specified to operate
under BHP control, we would again iterate through the
two-step ST, with upper-bound constraints for fki or fkp
Figure 5: Relationship between NPV and PVI, used to determine the
determined from the second ST step. In this way the re-
optimal field rate Q∗ in the second subproblem, for unconstrained (up- sulting f∗ and Q∗ would account for the fact that one or
per curve) and BHP-constrained (lower curve) cases. The points de- more wells are specified to operate under BHP control.
note the optima. Practical problems may also involve nonlinear out-
put constraints. Examples of these include the speci-
BHP violations may also occur later in the simulation fication of maximum well water-oil ratio, or minimum
run (i.e., after the early transient period, which lasts for a well oil production rate. In general, such constraints can
few time steps), though this is less of an issue for M & 1, be handled both within the optimizer (using, e.g., a filter
as noted earlier. If this happens, the well is switched to method as described in [38]), or directly in the simulator
BHP control, and it remains on BHP control for the rest using well-control rules. We do not consider these types
of the run. No additional corrective measures are taken, of constraints in this work. However, since the second
and the other wells are kept on rate control, unless they ST step involves full-physics simulations, it would be
reach their BHP limit. straightforward to include these nonlinear constraints
Wells may also be specified to inject or produce under in the simulator. It might even be possible to account
BHP control for operational reasons. In addition, under for them (approximately) in the iterative procedure de-
cases with high discount rate, early production will be scribed above.
preferred so rates may be higher. This could potentially
lead to a larger fraction of wells reaching their BHP lim- 3.3. General workflow
its. Thus a more formal approach for handling BHP The two-step ST formulation entails the assembly of
constraints may be required. We now describe such a the velocity response matrices followed by the two op-
treatment. Note that we have not implemented this ap- timization procedures. The Stanford Smart Fields Uni-
proach since BHP constraints are not often reached in fied Optimization Framework (UOF) [44, 45] is used to
our runs, and the heuristic treatment described above test and compare the different optimization methods and
suffices for present purposes. treatments.
10
As explained earlier, for the construction of the veloc-
ity response matrices, a single-phase flow simulation is
performed for each well, with the well specified to oper-
ate at constant flow rate. These simulations are run until
the reservoir reaches pseudo-steady state. Once this is
achieved, the pressure field is recorded, Darcy veloci-
ties are computed, and the velocity response matrices
are assembled.
Algorithm 1 below describes the determination of
f∗ and Q∗ using the two-stage ST. We first solve the
squared-velocity-minimization problem (Eq. 15) under
the assumption of M = 1 and VRR = 1. Then, NPV for
the full-physics problem is maximized (Eq. 16). The Figure 6: Relative permeability curves used for M = 3 and M = 5
QP problem in the first step is solved in Matlab [46] simulations. Straight-line relative permeabilities are used for M = 1
using CVX, a package for solving convex optimization cases.
problems [47]. The second optimization step requires
running nproc full-physics simulations, where nproc is the
number of computing nodes or simulator licenses avail- found local optima that corresponded to very different
able. If the full-physics model corresponds to M = 1, objective function values. In this study we consider
MRST can be used to accelerate the second-stage com- oil-water problems subject to only bound constraints,
putations. though we do observe variation in the objective func-
tion values, in some cases, using conventional methods.
4. Example cases For this reason, five runs with different initial guesses
are performed for the adjoint-gradient and MADS opti-
In this section, we apply the two-step ST described in mizations whenever these methods are applied.
Sect. 3 to optimize well controls for 2D and 3D reser- In this study, adjoint-gradient optimizations are ter-
voir models. Performance is assessed for cases involv- minated when the gradient satisfies a threshold of 0.001,
ing both single and multiple control periods. In the lat- and the optimization converges to a local optimum, or
ter case, the single control period solution is used as the after a maximum of 15 major iterations have been per-
initial guess. The examples consider M = 1, 3 and 5, formed. MADS is terminated if the stencil size de-
where M = µo /µw . For M = 3 and 5, we use the rel- creases beyond 0.01 (where this value corresponds to
ative permeability curves shown in Fig. 6. For M = 1, the scaled controls), or after a maximum of 15 MADS
we specify krw = Sw , kro = So and µw = µo = 1. Thus iterations (for 2D models) or 20 MADS iterations (for
the pressure and velocity fields for M = 1 cases cor- 3D models) have been performed. Each MADS iter-
respond exactly to those for single-phase flow. BHP ation requires 2nopt function evaluations (full-physics
constraints are imposed in these examples, but they simulations in our case), where nopt is the number of
are not violated at the start of the simulation in the optimization variables [10]. Alternative stopping crite-
cases presented. As noted earlier, Stanford’s Automatic ria for MADS, such as those introduced by Boch [49],
Differentiation-based General Purpose Research Simu- could also be considered.
lator (AD-GPRS) [36] is used for all simulations. Be-
cause the two-step ST is noninvasive with respect to the
flow simulator, it can be used with any simulator.
4.1. 2D reservoir model
Conventional optimization, using adjoint-gradients
with SNOPT [48] and pattern search with MADS [10],
is also performed in this study to enable comparison Our first example involves the 2D reservoir model
with ST results. These procedures are only guaranteed shown in Fig. 2 (this model was generated by [37]). This
to find local optima, with the result depending on the model, of dimensions 100 × 100, represents a complex
initial guess, though in many cases the different local channel-levee shale fluvial system. Relevant simulation
optima that are found correspond to very similar ob- and optimization parameters are provided in Table 1. In
jective function values. This is not always the case, our first set of examples, only a single control period
however. For example, in a recent study involving com- (with well rates as the control variables) is used, so we
positional models with nonlinear constraints, Kim [44] have nopt = nw − 1.
11
Algorithm 1. Well-rate ratios and field rate optimization
1 Solve first-step optimization problem to provide f∗ (Matlab/CVX) (Eq. 15)
2 Solve second-step optimization problem to provide Q∗ (Eq. 16):
3 for number of computing nodes (or licences) available do
4 Run full-physics simulation with different field rates (AD-GPRS)
5 Treat BHP constraints as described in Sect. 3.2
6 end for
7 Choose field rate associated with largest NPV
Table 1: Simulation and optimization parameters for 100 × 100 chan- tion coefficient R2 = 0.94), with most points falling near
nelized model
the 45-degree line. These results demonstrate that the
Grid dimensions 100 × 100 × 1 two-step ST is able to generate reasonable optimization
Grid cell dimensions 50 ft × 50 ft × 100 ft results, over a range of NPVs, for the particular speci-
Initial pressure pi , at datum 6000 psi at 6000 ft fications in Table 1. In other words, the two-step ST is
µo 1.0, 3.0 or 5.0 cp able to perform satisfactorily for either poor, average or
µw 1.0 cp favorable sets of well types and locations. This is an
Bo and Bw at pi 1.075 RB/STB important capability if the method is to be used for field
Oil compressibility at pi 10−5 psi−1 development optimization, in which case a large frac-
Water compressibility at pi 10−5 psi−1 tion of the proposed well locations are far from optimal,
Rock compressibility at pi 10−9 psi−1 and it is important that they be assessed accurately.
Porosity 0.25
Simulation period 7300 days
po , c pw and ciw $60, $5 and $5/STB
cw $20 MM
Discount rate 0%
(d) NPV profile for well scenario 1 (e) NPV profile for well scenario 2 (f) NPV profile for well scenario 3
Figure 8: Well configurations and permeability field, and NPV evolution in time, for the three cases indicated by the red points in Fig. 7. In (a, b,
c), production wells are shown in red and injection wells in blue. Curves in (d, e, f) correspond to ST results (blue curves) and base-case results for
0.25 PVI, 0.75 PVI and 1.25 PVI. M = 3 in all cases.
case. This is also generally observed for the adjoint- Table 3: Optimal NPVs using different methods (2D reservoir model)
gradient procedure, though the well scenario 3, M =
5 case is an exception. For the minimum NPV
Well Mobility NPV (BN $)
(1.11 BN $) run, we applied a tighter stopping crite-
scenario ratio Adjoint-
rion and performed additional SNOPT iterations, but the
ST MADS1 gradient1
NPV did not improve. Thus, this result may correspond
to convergence to a relatively poor local optimum. 1 1.23 1.24 1.24
1 3 0.62 0.62 0.62
Elapsed (wall-clock) times for the optimizations are 5 0.47 0.47 0.47
shown in Table 5. These values are median timings 1 2.03 2.02 2.07
for the five MADS and adjoint-gradient runs (recall ST 2 3 1.03 1.09 1.02
need only be run once). Individual full-physics simula- 5 0.84 0.89 0.89
tion runs for these cases require ∼40–50 seconds. We 1 2.55 2.64 2.55
see that ST, as noted earlier, entails an elapsed time cor- 3 3 1.47 1.47 1.47
responding to 1–2 full-physics runs. MADS requires 5 1.28 1.29 1.29
1 Median values
five or more iterations for these cases (we verified that
additional iteration with tighter termination criteria did
not improve the MADS results), so the speedup using
ST is fairly significant (speedup factor of 6× or more). The results in this section demonstrate that our two-
Speedup relative to adjoint-gradient-based optimization step surrogate treatment provides reasonable accuracy
is larger because this procedure does not readily paral- relative to formal optimization methods, and that it can
lelize, in contrast to MADS. lead to significant speedup. As such, it may be useful for
14
Table 5: Elapsed time (fully parallelized for ST and MADS) for dif-
ferent methods for 2D reservoir model
of the production wells reach the point where water pro- The base-case NPVs are shown in Table 7, and the
duction cost exceeds oil revenue. As noted earlier, this optimized NPVs using ST and MADS are presented in
indicates that the use of standard reactive controls would Table 8. The median, minimum and maximum NPVs
not impact the best base-case NPVs. using MADS are provided. Adjoint-gradient-based op-
16
Table 6: Simulation and optimization parameters for 40×30×9 chan- Table 8: Optimal NPVs for ST and MADS for 3D reservoir model
nelized model with a single control period
Grid dimensions 40 × 30 × 9
Grid cell dimensions 100 ft × 100 ft × 15 ft Well Mobility NPV (BN $)
Initial pressure pi , at datum 6000 psi at 6000 ft scenario ratio MADS
µo 1.0, 3.0 or 5.0 cp ST med min max
µw (constant) 1.0 cp 1 17.64 17.44 17.35 17.53
ρo and ρw 53.10 and 64.79 lbm/ft3 1 3 5.45 5.52 5.48 5.60
Bo and Bw at pi 1.075 RB/STB 5 3.85 4.04 4.04 4.04
Oil compressibility at pi 10−5 psi−1 1 22.70 22.88 22.88 22.88
Water compressibility at pi 10−5 psi−1 2 3 7.32 7.56 7.56 7.57
Rock compressibility at pi 10−9 psi−1 5 4.65 4.80 4.80 4.80
Field porosity 0.25
Simulation period 14,600 days
po , c pw and ciw $60, $5 and $5/STB underperforms MADS by 4.7%. For well scenario 1,
cw $20 MM M = 1, ST actually achieves a larger NPV than any of
Discount rate 0% or 5% the MADS runs. We also see that there is very little vari-
ation between the MADS results in most cases. For well
scenario 1 with M = 1 and 3, the MADS results do vary
timizations were not performed for this case, though we by 1–2% between the minimum and maximum NPV
would expect these results to closely coincide with the runs. For the minimum-NPV runs, we tightened the
MADS results, as in the 2D example. termination criterion and performed additional MADS
As in the 2D cases, we again see that the NPVs pro- iterations, but this did not provide improvement in the
vided by ST clearly exceed those for the three base cases NPVs. This observation supports the idea that the dif-
for both scenarios. Base-case and ST results for cumu- ferent local optima may correspond to slightly different
lative field oil and water production and cumulative wa- NPVs.
ter injection, for well scenario 2 with M = 3, are shown
Table 9 presents elapsed time, under full paralleliza-
in Fig. 12. Results are also presented for total injection
tion, for ST and MADS optimizations. Individual sim-
(and production) of Q∗ , as determined by ST, but with
ulation runs require ∼105–115 seconds for these cases.
equal injection and production between wells. The ST
We thus see that ST elapsed times continue to be less
results display the most oil production, along with the
than the time required for two full-physics runs. MADS
least water production, of the cases considered. These
requires six iterations for these cases, and speedup us-
results highlight the importance of optimizing both f and
ing ST of about 5× relative to MADS is observed. It
Q.
is again apparent that ST is able to achieve reasonable
Table 7: NPVs for base cases (M = 3) for 3D reservoir model with a results along with substantial speedup.
single control period
Table 9: Elapsed time (fully parallelized) for ST and MADS for a
single control period for 3D reservoir model
Well NPV (BN $)
scenario
PVI = 1.0 1.5 2.0 Well Mobility Elapsed time (s)
11 3.71 4.72 5.22 scenario ratio
22 3.69 5.14 6.61 ST MADS1
1 Q∗ = 1.44 PVI 1 151 741
1,M=3
2 Q∗ 1 3 146 736
2,M=3 = 1.84 PVI
5 147 738
1 132 741
Comparison of ST and MADS results in Table 8
2 3 136 735
demonstrates that ST again provides results quite close
5 137 734
to those achieved using a formal optimization method. 1 Median values
The largest relative difference between ST and (median)
MADS results is for well scenario 1, M = 5, where ST
17
(a) Cumulative field oil production (b) Cumulative field water production (c) Cumulative field water injection
Figure 12: Cumulative field oil production (a), water production (b), and water injection (c) for base cases (Q∗ , 1 PVI, 1.5 PVI and 2 PVI) and ST
(single control period, well scenario 2, M = 3, 3D example).
4.2.2. Multiple control periods control period to control period, though these shifts are
relatively slight.
Our examples up to this point have involved a sin-
For the second case (M = 5, d = 0.05), the ST re-
gle control period and zero discount rate (except for the
sult is 2.8% below the median MADS result, but it is
M = 1 results in Fig. 9b, where we considered d = 0.1).
above the minimum MADS result. The ST & MADS
We now relax these assumptions and consider multiple
approach provides the same objective function value as
control period strategies, with and without discounting.
the median MADS case. These results, along with those
Both cases involve well scenario 1 (three producers and
in Fig. 9b, suggest that our two-step ST is indeed appli-
three injectors). In the first case we consider M = 3
cable for cases with nonzero discount rate. As noted ear-
and d = 0, and in the second case M = 5 and d = 0.05.
lier, the first ST step may become less reliable in cases
The well rates are now determined four times during the
with large d, where very early production is highly ben-
simulation time frame, which increases nopt to 20 (16
eficial. The effect of large d would, however, be cap-
well-rate ratios plus 4 field rates). Two approaches can
tured in the second ST step.
be used to assess ST performance relative to MADS for
this case. First, we can simply apply the ST well rates Table 10: Optimal NPVs for 3D reservoir model with multiple control
over the entire time frame. Second, the single-period ST periods (well scenario 1).
solution can be used as an initial guess for MADS (we
designate this case ST & MADS). NPV (BN $)
Mobility d ST ST & MADS
The NPV results and corresponding elapsed times ratio (%) MADS med min max
obtained with ST (standard single control period solu-
tion), ST & MADS, and MADS (we give the median, 3 0 5.45 5.63 5.46 5.36 5.55
minimum and maximum NPVs for the five standalone 5 5 1.71 1.76 1.76 1.46 1.76
MADS runs) are presented in Tables 10 and 11. We
see that both methods provide generally similar NPV
results. For the first case, there does not appear to be Table 11: Elapsed time (fully parallelized) for 3D reservoir model
substantial benefit from using multiple control periods with multiple control periods (well scenario 1).
(compare results in Tables 8 and 10). We do, however,
observe that the NPV resulting from the ST & MADS Elapsed time (s)
approach provides an objective function value that is 3% Mobility ST ST & MADS
higher than the median solution from standalone MADS ratio MADS med min max
for the first case. Even though this difference is rel-
atively small, this result suggests that the ST solution 3 136 971 1355 1228 1377
is indeed a reasonable initial guess for the subsequent 5 137 1211 1515 1493 1655
MADS run. The corresponding optimized injection and
production rates for the four control intervals, obtained From the timings in Table 11, we see that ST &
by ST & MADS for the M = 3, d = 0 case, are pre- MADS is slightly faster than MADS (ST & MADS re-
sented in Figs. 13 and 14. We do see some shifts from quires 70–80% of the median time for MADS). The
18
Figure 13: Optimized injection rates obtained by ST & MADS (3D
model, multiple control periods, well scenario 1, M = 3, d = 0).
Figure 15: Evolution of NPV for ST, ST & MADS, and standalone
MADS (3D model, multiple control periods, well scenario 1, M = 3,
d = 0).
5. Concluding remarks
20
[14] O. S. Ushmaev, V. M. Babin, N. Glavnov, R. Yaubatyrov, Journal of Petroleum Science and Engineering 157 (2017) 328
D. Echeverrı́a Ciaurri, M. V. Golitsyna, A. V. Pozdneev, A. Se- – 339.
menikhin, Efficient brownfield optimization of a reservoir in [34] R. Rodrı́guez Torrado, D. Echeverrı́a Ciaurri, U. Mello, S. Em-
West Siberia, Petroleum Geoscience 25 (2018) 207–218. bid Droz, Opening new opportunities with fast reservoir-
[15] G. W. Rosenwald, D. W. Green, A method for determining the performance evaluation under uncertainty: Brugge field case
optimum location of wells in a reservoir using mixed-integer study, SPE Economics & Management 7 (2015) 84–99.
programming, SPE Journal 14 (1) (1974) 44–54. [35] S. Embid Droz, R. Rodrı́guez Torrado, H. Mohamed Ahmed,
[16] B. Guyaguler, R. Horne, L. Rodgers, J. J. Rosenzweig, Opti- D. Echeverrı́a Ciaurri, U. Mello, Selecting and optimizing oil
mization of well placement in a Gulf of Mexico water flooding field controls for production plateau (U.S. Patent 9,921,338,
project, SPE Reservoir Evaluation & Engineering 5 (2002) 229– Mar. 2018).
236. [36] Y. Zhou, Parallel general-purpose reservoir simulation with cou-
[17] B. Yeten, L. J. Durlofsky, K. Aziz, Optimization of nonconven- pled reservoir models and multisegment wells, Ph.D. thesis, De-
tional well type, location and trajectory, SPE Journal 8 (2003) partment of Energy Resources Engineering, Stanford University
200–210. (2012).
[18] C. L. Farmer, J. Fowkes, N. Gould, Optimal well placement, in: [37] O. J. Isebor, D. Echeverrı́a Ciaurri, L. J. Durlofsky, Generalized
ECMOR XII, Oxford, UK, 2010. field development optimization with derivative-free procedures,
[19] K. Wilson, L. J. Durlofsky, Optimization of shale gas field de- SPE Journal 19 (2014) 891–908.
velopment using direct search techniques and reduced-physics [38] O. J. Isebor, L. J. Durlofsky, D. Echeverrı́a Ciaurri, A derivative-
models, Journal of Petroleum Science and Engineering 108 free methodology with local and global search for the con-
(2013) 304–315. strained joint optimization of well locations and controls, Com-
[20] E. Aliyev, L. J. Durlofsky, Multilevel field development opti- putational Geosciences 18 (3) (2014) 463–482.
mization under uncertainty using a sequence of upscaled mod- [39] M. C. Bellout, D. Echeverrı́a Ciaurri, L. J. Durlofsky, B. Foss,
els, Mathematical Geosciences 49 (3) (2017) 307–339. J. Kleppe, Joint optimization of oil well placement and controls,
[21] A. Y. Bukhamsin, Optimization of well design and location in Computational Geosciences 16 (4) (2012) 1061–1079.
a real field, Master’s thesis, Stanford University, Department of [40] G. B. Dantzig, M. N. Thapa, Linear programming 1: Introduc-
Energy Resources Engineering (2009). tion, Springer-Verlag, 1997.
[22] J. F. M. van Doren, R. Markovinovic, J. D. Jansen, Reduced- [41] D. P. Ahlfeld, C. S. Sawyer, Well location in capture zone de-
order optimal control of water flooding using POD, Computa- sign using simulation and optimization techniques, Ground Wa-
tional Geosciences 10 (2006) 137–158. ter 28 (4) (1990) 507–512.
[23] M. A. Cardoso, L. J. Durlofsky, Use of reduced-order modeling [42] B. Sudaryanto, Y. C. Yortsos, Optimization of fluid front dynam-
procedures for production optimization, SPE Journal 15 (2010) ics in porous media using rate control. I. equal mobility fluids,
426–435. Physics of Fluids 12 (7) (2000) 1656–1670.
[24] J. He, L. J. Durlofsky, Reduced-order modeling for composi- [43] K.-A. Lie, An Introduction to Reservoir Simulation Using MAT-
tional simulation by use of trajectory piecewise linearization, LAB: User guide for the Matlab Reservoir Simulation Toolbox
SPE Journal 19 (2014) 858–872. (MRST), SINTEF ICT, 2016.
[25] J. D. Jansen, L. J. Durlofsky, Use of reduced-order models in [44] Y. D. Kim, Hybrid PSO - adjoint-gradient procedure for well
well control optimization, Optimization and Engineering 18 (1) control optimization, Master’s thesis, Stanford University, De-
(2017) 105–132. partment of Energy Resources Engineering (2018).
[26] M. R. Thiele, R. P. Batycky, Water injection optimization using [45] S. T. Sambandam, Optimization of CO2 storage systems with
a streamline-based workflow, in: SPE Annual Technical Confer- constrained bottom-hole pressure injection, Master’s thesis,
ence and Exhibition, 2003. Stanford University, Department of Energy Resources Engineer-
[27] H.-Y. Park, A. Datta-Gupta, Reservoir management using ing (2018).
streamline-based flood efficiency maps and application to rate [46] MathWorks, Matlab, The MathWorks Inc., 2017.
optimization, Journal of Petroleum Science and Engineering URL www.mathworks.com
109 (2013) 312–326. [47] M. Grant, S. Boyd, CVX: Matlab software for disciplined con-
[28] T. Wen, M. R. Thiele, D. Echeverrı́a Ciaurri, K. Aziz, Y. Ye, Wa- vex programming, version 2.1, http://cvxr.com/cvx (Mar.
terflood management using two-stage optimization with stream- 2014).
line simulation, Computational Geosciences 18 (2014) 483– [48] P. Gill, W. Murray, M. Saunders, SNOPT: An SQP algorithm
504. for large-scale constrained optimization, SIAM Journal on Op-
[29] M. Shahvali, B. Mallison, K. Wei, H. Gross, An alternative to timization 12 (2002) 979–1006.
streamlines for flow diagnostics on structured and unstructured [49] A. Boch, Detailed assessment of multilevel optimization for
grids, SPE Journal 17 (3) (2012) 768–778. field development, Master’s thesis, Stanford University, Depart-
[30] K.-A. Lie, O. Møyner, S. Krogstad, Application of flow diag- ment of Energy Resources Engineering (2015).
nostics and multiscale methods for reservoir management, in: [50] S. A. Castro, A probabilistic approach to jointly integrate 3D/4D
SPE Reservoir Simulation Symposium, 2015. seismic production data and geological information for building
[31] O. Møyner, S. Krogstad, K.-A. Lie, The application of flow di- reservoir models, Ph.D. thesis, Department of Energy Resources
agnostics for reservoir management, SPE Journal 20 (2) (2015) Engineering, Stanford University (2007).
306–323. [51] M. Shirangi, O. Volkov, L. J Durlofsky, Joint optimization of
[32] J. He, J. Xie, X. Wen, W. Chen, An alternative proxy for his- economic project life and well controls, SPE Journal 23 (2017)
tory matching using proxy-for-data approach and reduced order 482–497.
modeling, Journal of Petroleum Science and Engineering 146 [52] M. G. Shirangi, L. J. Durlofsky, A general method to select rep-
(2016) 392–399. resentative models for decision making and optimization under
[33] B. Chen, J. He, X.-H. Wen, W. Chen, A. Reynolds, Uncertainty uncertainty, Computers & Geosciences 96 (2016) 109 – 123.
quantification and value of information assessment using prox-
ies and Markov chain Monte Carlo method for a pilot project,
21