增加reconfig方法

This commit is contained in:
2023-09-13 20:29:09 +08:00
parent afde7a853e
commit 800057e000
5 changed files with 368 additions and 12 deletions

View File

@ -4,10 +4,9 @@ import numpy as np
from base_optimizer.optimizer_common import *
# TODO: nozzle tool available restriction
# TODO: consider with the PCB placement topology
def assembly_time_estimator(component_points, component_feeders, component_nozzle, assignment_points):
# todo: how to deal with nozzle change
n_cycle, n_nz_change, n_gang_pick = 0, 0, 0
def assembly_time_estimator(assignment_points, component_feeders, component_nozzle):
nozzle_heads, nozzle_points = defaultdict(int), defaultdict(int)
for idx, points in enumerate(assignment_points):
@ -138,8 +137,6 @@ def assemblyline_optimizer_heuristic(pcb_data, component_data):
assignment_result[machine_index][part_index] += 1
total_points -= 1
# todo: implementation
# second step: estimate the assembly time for each machine
# third step: adjust the assignment results to reduce maximal assembly time among all machines