Modeling and Optimization of Oil Production Using AnyLogic Fluid Library


Canada is the third largest country to have oil reserves. However, most of the oil is in oil sand – the mixture of sand, oil and water – which has to be heated up with steam to emit the oil. Though operational costs for extraction of the substance are high, capital investments in this sphere reached $26 billion in 2014, which proved its prospects in the future.

To produce the oil from sand, a complex system of wells, pipes, steam generators, and other equipment is needed. It is costly to maintain such a distribution system, and outages may lead to disruptions in steam injection and oil production. To optimize expenditures and capture production lags, Stream Systems company applied AnyLogic simulation modeling. With previously employed spreadsheets, engineers could model the working process of 10-20 of wells. Simulation approach allowed them to model the production facility with hundreds of wells.


The oil production process was presented with three major elements:

  • Central processing facility (CPF)
  • Reservoirs, which act as the source of the oil sand
  • Stand-alone wells and well pads (set of wells), extracting the oil

The simulation model consisted of smaller models of the system’s elements. This approach allowed engineers to monitor how the working process of a particular component might affect other elements.

Operational Planning Simulation

Natural Disaster Simulation Model

Because of the model’s complexity, AnyLogic multimethod approach (a mix of agent-based, system dynamic, and discrete event modeling) was applied. The system acted as a liquid carrier, and the lag in one component might lead to lags in other ones. AnyLogic fluid library was used to capture these lags, including in cases of emergency.

AnyLogic was seamlessly integrated with external data sources, which allowed modelers to use any types of files to input the data into the model. To manage additional calculations and make the model more realistic, external Java libraries were incorporated. The model’s input data included:

  • Operational data - infrastructure, layouts, configurations of system’s components, seasonality, etc.
  • Production profiles
  • Excel spreadsheets and text files

The model consisted of wells that acted as individual agents. Each well had a particular behavior and was connected with pipes and other flowchart components. It was easy to add and adjust components in the model if needed.

Apart from looking at specific parts of the model, one could also observe the production process, at a high level of perspective, to make operational and strategic plans. At both levels, it was possible to set parameters and run various experiments to perform the model’s optimization. Dashboards showed statistical data in order to visualize the changes in the system.

Output data accounted for:

  • Throughput of wells and pads
  • Steam-oil ratio
  • Steam, water, and oil production rate
  • Number of pads and wells per pad
  • Product quality

Decision Making Simulation Model


AnyLogic simulation modeling helped connect parts of the system, located above and below the ground. With the multimethod simulation modeling approach, it became possible to run multiple scenarios, including Monte Carlo and what-if experiments, and analyze variabilities in terms of scheduling and maintenance, providing the system’s optimization.

Fluid library helped represent each part of the model with high granularity, and display the ripple effect and breakages in the system. Moreover, it helped consider dynamic changes and their impact on the system. With this approach, it became possible to make real time decisions and capture the quality of the oil.

The model also contributed to decision making on future capital investments and reducing them, finding out when to replace or provide maintenance to the components of production process.

AnyLogic software was successfully implemented in the company’s other projects.


More Case Studies

  • GE Manufacturing Plant Uses AnyLogic for Real Time Decision Support
    In 2012, GE opened a new battery manufacturing plant in conjunction with the launch of an innovative energy storage business. GE’s exciting opportunity brought on many new challenges, such as increasing production throughput and yield under evolving processes and uncertainties, and reducing manufacturing costs in order to gain market share. The GE Global Research Center sought out a powerful and flexible tool to analyze, not just the specific process, but the manufacturing system as a whole.
  • Shipyard Capacity Analysis
    With AnyLogic simulation software as the centerpiece, NASSCO utilizes a custom-built analysis system called the Large Scale Computer Simulation Modeling System for Shipbuilding (LSMSe) to provide highly detailed and accurate capacity analyses for both current production and potential new work.
  • Production Planning in Marine Industry
    The managers of one of the most important Italian yacht manufacturers needed a new, intelligent approach that would make the planning process simpler. The objective was to give the real production planner exceptionally rich planning information, which would allow the person to test and refine a plan before its implementation.
  • Simulating Ice Cream Production: Recognizing Constraints and Optimizing Production Plan
    Conaprole, the biggest dairy production company in Uruguay, produces more than 150 SKUs in their ice cream plant, using five production lines, and up to five different packaging configurations for each line. The management’s challenge was to be able to reformulate their plans in order to balance supply and demand and make sure they would avoid stock-outs in key products. They also sought ways to optimize the use of their production capacities.
  • Simple Simulation Model Helps Intel Avoid Production Plant Downtime
    Intel factories used a particular type of equipment that often broke down, which caused capacity constraints. These expensive parts were used in critical factory operations, and the repairs took significant time, so it was necessary to have extra spare parts on hand to avoid downtimes. Broken parts caused constraints at some of the factories while other factories over purchased spares.
  • Improving Mining Outbound Logistics with Agent-Based Simulation Modeling
    One of the largest resource companies in the world, with over $80 billion in sales, decided to enter a new market. It was planning to build a new potash mine with 90% of the resources exported. They wanted to design a reliable supply chain, with a high speed of supply replenishing, and the ability to recover from natural disasters and man-made crises benefiting from such volatility. Amalgama and Goldratt companies contracted this project to design the potash mining operations and a full supply chain of outbound logistics.
  • Highly Automated Production Line Planning and Optimization
    Centrotherm Photovoltaics AG is a global supplier of technology and equipment for the photovoltaics, semiconductor, and microelectronics industries. The company needed to identify the best automated production line and factory configuration to minimize costs and maximize throughput and reliability.
  • Simulation of the Construction of a Tunnel with a Tunnel Boring Machine
    The cost of one hour of down time of a tunnel boring machine is usually high and project managers have to do their best to avoid unnecessary delays in construction. The aim of the simulation project, which was carried out at Ruhr University Bochum in Germany, was to create a simulation model that would be capable of determining the bottlenecks in tunnel building processes in order to minimize the possible monetary losses.
  • Shipyard Proves Order Fulfillment Capability and Gains Visibility into Production Facility and Distribution
    Faced with a large order for diesel powered submarines, Admiralty Shipyards JSC must evaluate whether the current production facilities can fulfill the order, and if not, what amount can be produced by the year 2016. Admiralty Shipyards JSC is also seeking confirmation that an additional production facility will not be needed to complete the order.
  • Analysis of Management Strategies for the Aircraft Production Ramp-up
    The Airbus Group joined the European Union ARUM (Adaptive Production Management) project, which is focused on creating an IT solution for risk reduction, decision-making, and planning during new product ramp-ups. The project is aimed mainly at aircraft and shipbuilding industries. Simulation was chosen as a part of the ARUM solution, because it would allow the participants to reproduce the real production facility experience.