April 2, 2025

Solving DCOPF Optimization Problem on AWS EC2 Instances

This series of articles explore solutions to the DCOPF (Direct Current Optimal Power Flow) optimization problem using various hardware configurations. We will focus on solving the approximate Linear version of the problem using solvers the open-source GLPK and the commercial FICO.

The first article will focus on CPU configurations. We will utilize AWS EC2 instances with different configurations, primarily varying the number of cores and the amount of RAM allocated to the instances.

Amazon Web Services (AWS) offers a variety of Elastic Compute Cloud (EC2) instances to suit different workload requirements. Some of the common instance types include:

  • General Purpose Instances: These instances offer a balance of compute, memory, and networking resources, making them suitable for a wide range of applications, such as web servers and code repositories. Examples include T2 and M5 instances.
  • Compute Optimized Instances: These instances are designed for compute-intensive tasks that require high performance processors. They are well-suited for applications such as batch processing and media transcoding. Examples include C4 and C5 instances.
  • Memory Optimized Instances: These instances are built for workloads that require large amounts of memory, such as in-memory databases and real-time big data analytics. Examples include R4 and R5 instances.

Experiment Setup and Results

Our research began using T2 instances, and we solved the configurations below for both GLPK and FICO. We observed that while doubling the number of cores or RAM initially decreased processing time, this improvement ceased beyond 4 cores and 16GB RAM. Therefore, we found that 4 cores and 16GB RAM was the optimal configuration for these problems.

Configuration FICO GLPK
t2.large (2 vCPUs, 8GB RAM) 7363 12261
t2.xlarge (4 vCPUs, 16GB RAM) 5945 9719
t2.2xlarge (8 vCPUs, 32GB RAM) 5817 10503

To determine if the problem is compute or resource intensive, we will test two different EC2 instances from group C (compute-intensive) and group R (resource-intensive) and note the observations.

Configuration FICO GLPK
c5.xlarge (4 vCPUs, 16 GB RAM) 5161 9013
r5.xlarge (4 vCPUs, 16 GB RAM) 6146 9514

The results indicate that C instances solved the problem faster than T and R instances with the same configuration, which suggests that the problem is compute intensive. 

To further verify this, we ran the process on a T2 instance with 4 cores, but limited the RAM to 8GB to confirm that memory was not a factor. The results are below.

Configuration FICO GLPK
t2.xlarge (4 vCPUs, 8 GB RAM) 5894 10094
t2.xlarge (4 vCPUs, 16GB RAM) 5945 9719

The data above indicates that the issue does not get resolved more quickly simply by increasing RAM. This suggests that the problem is not memory intensive.

Conclusion

The problem is computationally intensive, not memory intensive. We found that the problem scales up to a limit with the addition of computing resources.

Note for Second Post

In the second post of this series, we will explore whether solving the DCOPF optimization problem runs faster on GPU-enabled EC2 instances. We will compare the performance of GPU instances with CPU-only instances and discuss the factors that affect the performance gains if any.

READ MORE

June 19, 2026

On-Device AI Training: Why Deployed AI Models Need to Keep Learning

Anuj Jadhav
AI models deployed on edge hardware degrade over time as field conditions change. The traditional solution, cloud retraining, is costly, consumes significant power, and relies on connectivity that remote systems lack. This article examines the compounding constraints of power, memory, and connectivity that have historically prevented on-device AI training. Discover how Vellex Computing leverages analog circuit dynamics to enable continuous, real-time parameter updates directly on edge hardware, removing cloud dependency for autonomous robotics, satellite platforms, and industrial IoT.
May 28, 2026

Analog vs. Digital: The Ultimate Guide to Choosing the Right Tech

Vedant Wakchaware
Analog vs. Digital technology is a decades-old debate, but which one is actually better for the future of tech? In this comprehensive guide, we break down the core differences between continuous analog waves and discrete digital steps. Discover the unique pros and cons of each system, learn which architecture is best suited for your specific industry—from professional audio to cutting-edge AI—and explore how modern hardware engineers are blending both into powerful, ultra-efficient Hybrid (A/D/A) systems to overcome the massive energy limitations of today's devices.
May 8, 2026

The Hidden Economics of AI: Why Tokens Are Costing Millions in Training and Usage

Vedant Wakchaware
Tokens are the invisible currency of artificial intelligence, and processing them carries a staggering hidden cost. Why does training a frontier model require gigawatt-hours of electricity, while developers face unexpected API bills? Step inside this foundational metric to decode these massive economics. This deep dive breaks down the physical infrastructure required to process trillions of data fragments—from specialized GPU clusters to liquid cooling taxes. Discover the invisible multipliers inflating your usage, and learn comprehensive optimization strategies like smart routing and prompt caching to drastically reduce your AI costs.