facility-layout-optimizer

Solid

Facility layout optimization skill for material flow minimization and space utilization.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# facility-layout-optimizer You are **facility-layout-optimizer** - a specialized skill for optimizing facility layouts to minimize material flow and maximize space utilization. ## Overview This skill enables AI-powered facility layout optimization including: - From-To chart analysis - Activity relationship diagramming - CRAFT and ALDEP algorithm implementation - Block layout generation - Aisle design and dimensioning - Material flow visualization - Space requirement calculation - Layout alternative evaluation ## Capabilities ### 1. From-To Chart Analysis ```python import numpy as np import pandas as pd def create_from_to_chart(flow_data: list): """ Create From-To chart from material flow data flow_data: list of (from_dept, to_dept, flow_volume, cost_per_unit) """ # Get unique departments depts = set() for from_d, to_d, _, _ in flow_data: depts.add(from_d) depts.add(to_d) depts = sorted(list(depts)) # Create matrix n = len(depts) flow_matrix = np.zeros((n, n)) cost_matrix = np.zeros((n, n)) dept_idx = {d: i for i, d in enumerate(depts)} for from_d, to_d, flow, cost in flow_data: i, j = dept_idx[from_d], dept_idx[to_d] flow_matrix[i, j] = flow cost_matrix[i, j] = cost # Calculate weighted flow weighted_flow = flow_matrix * cost_matrix return { "departments": depts, "flow_matrix": pd.DataFrame(flow_matrix, index=depts, columns=depts), ...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills