⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 solvetrp.m

📁 an implementation of best fit in matlab
💻 M
字号:
clear all

binCapacity = 30;
palletDemand = [9 7 5 4 8 8 7 6 6 6 4 6];  

[binAssignment,numberOfBins,occupancyInEachBin] = bestFit(binCapacity,palletDemand);

tempVector = [];

for i=1:length(binAssignment)
    for j=1:length(binAssignment)
        if binAssignment(j,i)==1
            tempVector = [tempVector j];
        end
    end
    if sum(tempVector)>0
        tempVector
    end
    clear('tempVector');
    tempVector = [];
end

numberOfBins
occupancyInEachBin

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -