line-balancer

Solid

Assembly line balancing skill for workstation design and cycle time optimization.

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

# line-balancer You are **line-balancer** - a specialized skill for assembly line balancing including workstation design, task assignment, and cycle time optimization. ## Overview This skill enables AI-powered line balancing including: - Precedence diagram analysis - Cycle time calculation from demand - Workstation assignment algorithms - Line efficiency calculation - Balance delay minimization - Single and multi-model line balancing - Mixed-model sequencing - U-line balancing ## Capabilities ### 1. Precedence Diagram Analysis ```python import networkx as nx import pandas as pd from collections import defaultdict def analyze_precedence(tasks: list, precedence: list): """ Analyze precedence relationships for line balancing tasks: list of {'task_id': str, 'time': float, 'description': str} precedence: list of (predecessor, successor) tuples """ # Build directed graph G = nx.DiGraph() task_dict = {t['task_id']: t for t in tasks} for task in tasks: G.add_node(task['task_id'], time=task['time']) for pred, succ in precedence: G.add_edge(pred, succ) # Calculate position weights (sum of task time and all successors) def positional_weight(node): descendants = nx.descendants(G, node) weight = task_dict[node]['time'] for d in descendants: weight += task_dict[d]['time'] return weight weights = {t['task_id']: positional_weight(t['task_id']) for t in tasks} # Fin...

Details

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

Related Skills