博客
关于我
夜光精讲 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 中随机抽样:order by rand limit 的替代方案
查看>>
MySQL 为什么需要两阶段提交?
查看>>
mysql 为某个字段的值加前缀、去掉前缀
查看>>
mysql 主从
查看>>
mysql 主从 lock_mysql 主从同步权限mysql 行锁的实现
查看>>
mysql 主从互备份_mysql互为主从实战设置详解及自动化备份(Centos7.2)
查看>>
mysql 主从关系切换
查看>>
MYSQL 主从同步文档的大坑
查看>>
mysql 主键重复则覆盖_数据库主键不能重复
查看>>
Mysql 事务知识点与优化建议
查看>>
Mysql 优化 or
查看>>
mysql 优化器 key_mysql – 选择*和查询优化器
查看>>
MySQL 优化:Explain 执行计划详解
查看>>
Mysql 会导致锁表的语法
查看>>
mysql 使用sql文件恢复数据库
查看>>
mysql 修改默认字符集为utf8
查看>>
Mysql 共享锁
查看>>
MySQL 内核深度优化
查看>>