Skip to content

JustCallMeSidd/Gas-Pipeline-Construction-Optimization-UNDERDOGS-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gas Pipeline Construction Optimization

This repository hosts an algorithmic solution for optimizing the construction of gas pipelines for efficiency and fairness. The project aims to address the following objectives:

  1. Efficient Line Construction: Construct a gas pipeline in a straight line that serves all houses efficiently. Efficiency here is defined as minimizing a specific cost function.

  2. Fair Line Construction: Construct a gas pipeline in a way that minimizes the maximum distance to any house, ensuring fairness among served houses.

  3. Multiple Efficient Lines: Optimize the construction of multiple gas pipelines to serve a set of houses efficiently, introducing a novelty using silhouette score.

Problem Statement

Consider a set of houses represented by coordinates (latitude, longitude). The objective is to design algorithms that find optimal or near-optimal solutions for constructing gas pipelines based on the following criteria:

Distance Definition

The distance from a point p to a line l is defined as:

dist(p,l) := || (I - aa^t)(p-b)||^2

Where:

  • l = {a, b} represents a straight line with a direction vector a of unit norm and a point b on the line.
  • || . || denotes the Euclidean norm.
  • I is the identity matrix.

Objectives

  1. Efficient Line Construction Objective:

    • Minimize the cost function:
      ∑(i in [n]) || (I - aa^T).p ||^2
      
  2. Fair Line Construction Objective:

    • Minimize the maximum distance to any house:
      min(l) max(i in [n]) || dist(p_i, l) ||
      
  3. Multiple Efficient Lines Objective:

    • Minimize the sum of distances from each house to its nearest line:
      ∑(i in [n]) min(e in L) || dist(p_i, e) ||
      

Algorithm Design

This repository implements algorithms to address each objective mentioned above. The algorithms are designed to find optimal or near-optimal solutions while considering efficiency, fairness, and multiple lines.

Efficient Line Construction Algorithm

The algorithm for constructing an efficient line or achieving a local minimum cost is implemented in Algorithm_Efficient_Line. It employs techniques to minimize the defined cost function efficiently.

Fair Line Construction Algorithm

The algorithm for constructing a fair line or achieving a local minimum maximum distance to any house is implemented in Algorithm_Fair_Line. It ensures fairness in serving houses while constructing the gas pipeline.

Multiple Efficient Lines Algorithm

The algorithm for optimizing the construction of multiple efficient lines is implemented in Algorithm_Multiple_Efficient_Lines. It introduces a novelty using silhouette score to achieve efficiency in serving houses with multiple pipelines.

Usage

To utilize these algorithms, follow the instructions provided in each algorithm's respective directory.

Clustering Extension

In this project, we introduce a novel approach to optimizing gas pipeline construction by considering various factors such as efficiency, fairness, and multiple lines simultaneously. Our algorithms incorporate innovative techniques to address these objectives, offering solutions that aim to improve upon existing methodologies.

Silhouette Score

One of the key novelties in our approach is the utilization of silhouette score in the context of multiple efficient lines construction. Silhouette score is an extension of the k-means clustering algorithm, where the values range from -1 to 1. A value closer to 1 indicates better clustering performance, signifying that the data points are well-clustered and distant from neighboring clusters.

By adapting silhouette score to our problem domain, we assess the quality of line placement relative to the distribution of houses. This metric allows us to evaluate the effectiveness of our algorithms in achieving efficient clustering of houses around gas pipelines, leading to improved optimization results.

Contributions

Contributions to improving the algorithms, optimizing efficiency, or enhancing fairness are welcome. Feel free to submit pull requests or raise issues for discussion.

Acknowledgments

Special thanks to the contributors and researchers in the field of optimization for their valuable insights and contributions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •