clc
clear all
close all
jobs= [ 1 2 3 4 5 ]; % jobs
M = [5 4; 3 3; 1 9; 8 4; 3 6]; % time process in M1 and M2
[val ind] = sort(min(M')); % find the minimum of each rom (the minimum time...
%a job can be done using machine 1 and 2) then sort the result in order to
%find the janson's order ....
%display the result ...
disp('The order Jobs are executed based on Janson theory :')
jobs_order = ind' %Job's order
% Showing the ending time of each process in machine 1
disp('Starting time of each proccess in Machine1');
%
cumsum(M(jobs_order,1))-(M(jobs_order,1))
disp('Ending time of each process in Machine1');
end1 = cumsum(M(jobs_order,1))
start_time_M2(1)=end1(1);
for i=1:size(jobs,2)
end_time_M2(i)= start_time_M2(i)+(M(jobs_order(i),2));
if i<size(jobs,2)
start_time_M2(i+1) = end_time_M2(i);
end
end
disp('Starting time of each proccess in Machine2');
start_time_M2
disp('Ending time of each process in Machine2');
end_time_M2
没有合适的资源?快使用搜索试试~ 我知道了~
main--(1).zip_Write On
共1个文件
m:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 76 浏览量
2022-09-20
22:47:34
上传
评论
收藏 575B ZIP 举报
温馨提示
Johnson write code on the Operations Engineering course sequence theory is used in workshops
资源推荐
资源详情
资源评论
收起资源包目录
main--(1).zip (1个子文件)
main (1).m 962B
共 1 条
- 1
资源评论
刘良运
- 粉丝: 70
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于AVR单片机的伺服电机系统研究
- Lab-Electronic Craft Practicum-2-Simulation of a Single Tube Com
- 贪吃蛇基于TypeScript
- CS-CP1-2C3WF固件
- 软件测试测试用例设计方法大全
- 计算机与网络基础知识要点学习
- 移动通信(RC-YDTX-III)实验指导书
- [Vadass (Oltlo)]Cheating Wife Honoka ~Caught Red-Handed Edition~ [Chinese] [Colorized].jpg
- 1_9如果没有李白.zip
- 知识蒸馏-基于Tensorflow实现的无数据知识蒸馏-附项目源码+流程教程-优质项目分享.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功