博客
关于我
夜光精讲 Opentcs 三大算法(十三)调度算法
阅读量:274 次
发布时间:2019-03-01

本文共 1938 字,大约阅读时间需要 6 分钟。

夜光序言:

 

 

达到重要目标有二个途径——势力与毅力,势力只是少数人所有,但坚韧不拔的毅力则多数人均可拥有。它沉默的力量随着时间发展而至无可抵抗。

 

 

 

 

 

 

 

 

 

正文:

 

中心系统控制约束条件

1.整个系统是协同交互的,但机器人各自相互独立,不需要依靠其他机器人去完成自己的任务,但他们可以共同去完成一个客户的大订单order。
2.仓库中AGV的数目限制:一般小于仓库点的个数,此系统要求不能多于允许停靠的站点数目(过道和特殊点不能停靠)。
3.控制中心存储所有资源占用情况,资源的状态有3类:可用,不可用和被预定。


 

调度决策控制实现流程

本文通过优化资源配置,将冲突拥堵发生区域缩减控制到Bund le区中,通过决策机制对该区域进行资源锁的控制调度:

(1)AGV向控制中心申请资源。

(2)控制中心维护一个申请同一资源的车辆的集合表(进行优先级顺序排列)。

(3)当Bundle区未存在车辆时,分配资源给优先级最高的小车,其他车辆排队等待。

(4)小车驶入Bundle区,扫描Bundle区内当前占用点,将该点状态修改为"已被占用’’,给资源上锁。

(5)小车驶离Bundle区,释放资源(释放锁)。

(6)跳转至流程(3),直至所有车辆均通行完毕。

 

/* * Copyright (c) The openTCS Authors. * * This program is free software and subject to the MIT license. (For details, * see the licensing information (LICENSE.txt) you should have received with * this copy of the software.) */package org.opentcs.strategies.basic.routing.jgrapht;import javax.annotation.Nonnull;import javax.inject.Inject;import org.jgrapht.Graph;import org.jgrapht.alg.interfaces.AStarAdmissibleHeuristic;import org.jgrapht.alg.interfaces.ShortestPathAlgorithm;import org.jgrapht.alg.shortestpath.AStarShortestPath;import org.jgrapht.alg.shortestpath.BidirectionalDijkstraShortestPath;import org.jgrapht.alg.shortestpath.DijkstraShortestPath;import org.opentcs.components.kernel.services.TCSObjectService;/** * * @author  Genius夜光 */public class AstarPointRouterFactory extends AbstractPointRouterFactory {    /**     * Creates a new instance.     *     * @param objectService The object service providing model data.     * @param mapper Maps the plant model to a graph.     */    @Inject    public AstarPointRouterFactory(@Nonnull TCSObjectService objectService,                                   @Nonnull ModelGraphMapper mapper) {        super(objectService, mapper);    }    @Override    protected ShortestPathAlgorithm
createShortestPathAlgorithm( Graph
graph) { return new DijkstraShortestPath<>(graph); // return new AStarShortestPath<>(graph); }}

 

转载地址:http://srbo.baihongyu.com/

你可能感兴趣的文章
MYSQL数据库自动本地/异地双备份/MYSQL增量备份
查看>>
mysql数据库表增添字段,删除字段、修改字段的排列等操作,还不快来
查看>>
MySQL数据库被黑了
查看>>
mysql数据库设计
查看>>
MySQL数据库设计与开发规范
查看>>
MYSQL数据库进阶操作
查看>>
MySQL数据库配置文件调优详解
查看>>
MySQL数据库酒店客房管理系统(含MySQL源码) 结课作业 做的不是很好
查看>>
mysql数据库里的一些坑(读高性能mysql有感)
查看>>
MySQL数据库面试题(2021最新版)
查看>>
MySQL数据库高并发优化配置
查看>>
mysql数据恢复
查看>>
MySQL数据的主从复制、半同步复制和主主复制详解
查看>>
mysql数据碎片整理
查看>>
MySQL数据类型
查看>>
MySQL数据类型字节长度
查看>>
mysql数据被误删的恢复方案
查看>>
MySQL数据读写分离(MaxScale)上干货!!!
查看>>
mysql整库导入、导出
查看>>
mysql文本函数和数字函数
查看>>