Nzelu Collins - 2020374063 - Colony Algorithm
Nzelu Collins - 2020374063 - Colony Algorithm
1. Introduction
This assignment applies the Ant Colony Algorithm (ACO) to forecast and optimize five months
of production quantity at Brixwell Industries, in accordance with the requirements for registration
numbers 61–70 in IPE 512. The colony algorithm is a bio-inspired optimization approach that
simulates the foraging behavior of ants to solve complex problems, especially in production
scheduling and resource allocation.
2. Context of Production
Brixwell Industries is a manufacturer of PVC pipes, gutters, and water collectors, with a primary
focus on pipes and gutters. Efficient production forecasting and optimization enable the
company to plan ahead, meet customer demands, and minimize operational costs.
2 520 370
3 540 360
4 560 380
5 580 390
Constraints:
● Total production per month is limited by factory capacity (e.g., 1000 units/month for
pipes and gutters combined).
● The objective is to maximize production (meet demand) while minimizing costs (e.g.,
material, labor, downtime).
# Parameters
months = 5
products = ['PVC Pipes', 'Gutters']
demand = np.array([
[500, 350],
[520, 370],
[540, 360],
[560, 380],
[580, 390],
])
capacity = 1000 # total production units/month
ants = 10
iterations = 50
best_solution = None
best_score = -np.inf
for it in range(iterations):
for ant in range(ants):
solution = []
for m in range(months):
pipe = np.random.randint(demand[m][0], min(capacity, demand[m][0]+100))
gutter = min(capacity - pipe, demand[m][1] + np.random.randint(0, 50))
solution.append([pipe, gutter])
score = np.sum(solution)
if score > best_score:
best_score = score
best_solution = solution
# Pheromone update (reinforcement)
for m in range(months):
pheromone[m] += 0.1 * np.array(solution[m])
Result :
6. Results
● Optimal monthly production quantities for PVC pipes and gutters (see Python
output).
● The colony algorithm provides a near-optimal schedule meeting demand and factory
capacity.
1. Introduction
This assignment uses queueing theory to analyze the customer order and service process at
Brixwell Industries, which manufactures PVC pipes and gutters. The queueing analysis is
conducted for both a single line/single channel (M/M/1) and a single line/multiple channel
(M/M/3) model over 5 days (hourly basis), with the aim to assess efficiency, identify bottlenecks,
and optimize service delivery.
● Service Point: Customer order/dispatch unit for PVC pipes and gutters
●
Customers arrive at an average of 6 per hour.
● L (avg. # in system) = ρ / (1 - ρ)
● Lq (avg. # in queue) = ρ² / (1 - ρ)
Calculations
● λ = 6, μ = 4 → ρ = 6 / 4 = 1.5 (150% utilization)
● Since ρ > 1, the system is unstable—demand exceeds what one server can handle.
Queue grows without bound.
Conclusion: One staff cannot serve 6 customers/hour at a 4-customer/hour rate. Queue grows
uncontrollably, causing significant delays.
● c = 3 servers
● a = λ / μ = 6 / 4 = 1.5
● P₀ = 1 / 4.75 ≈ 0.211
Conclusion: With three servers, the system is stable and wait times are minimal, significantly
improving service.
# INPUT PARAMETERS
arrival_rate = 6 # λ = customers per hour
service_rate = 4 # μ = customers per hour per server
servers = 3 # c
Python Result :
8. Conclusion
Queueing theory provides Brixwell Industries with the analytical tools needed to optimize
customer service operations, minimize wait times, and enhance resource utilization for long-
term growth.