- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
产销平衡运输问题(Balance of production and marketing)
产销平衡运输问题(Balance of production and marketing)
class 产销平衡运输问题
{
public static datatable 沃格尔法生成初始基可行解 (datatable 运费表)
{
datatable 运费表.copy 初始解 = ().
for (int i = 1; i 初始解. columns.count - 1; i + +).
{
for (int i = 1; j 初始解. rows.count - 1; j + +)
{
初始解.rows [j] [i] = 0.
}
}
运费表.copy datatable temp = ().
in 最小运价, 次小运价, 罚数, 最大行罚数所在行号, 最大列罚数所在列号, 最大行罚数, 最大列罚数.
in 最大列罚数所在列的最小运价行号 最大行罚数所在行的最小运价列号 = 1 = 1;
while (temp.rows.count 2)
{
最大行罚数 = 0; 最大行罚数所在行号 = 1;
for (int row = 1; row (temp.rows.count - 1. the + +)
{
最小运价 = 次小运价 = convert.toint32 (temp.rows [row] [1]). 最大行罚数所在行的最小运价列号 = 1;
in 行最小运价列号 = 1;
for (int col = 2; 1 (temp.columns.count collar; collar + +)
{
if (最小运价 = convert.toint32 (temp.rows [row] [col])
{
次小运价 = 最小运价.
最小运价 = convert.toint32 (temp.rows [row] [col]).
行最小运价列号 = loc.
}
}
罚数 = 次小运价 - 最小运价.
if (最大行罚数 罚数)
{
最大行罚数 = 罚数.
最大行罚数所在行号 = row.
最大行罚数所在行的最小运价列号 = 行最小运价列号.
}
}
最大列罚数 = 0; 最大列罚数所在列号 = 1;
in 列最小运价行号 = 1;
for (int col = 1, col (temp.columns.count - 1; col + +)
{
最小运价 = 次小运价 = convert.toint32 (temp.rows [1] [col]); 最大列罚数所在列的最小运价行号 = 1;
for (int row = 2; row (temp.rows.count - 1. the + +)
{
if (最小运价 = convert.toint32 (temp.rows [row] [col])
{
次小运价 = 最小运价.
最小运价 = convert.toint32 (temp.rows [row] [col]).
列最小运价行号 = row.
}
}
Penalty = small freight rate - Minimum fare;
If (maximum column penalty penalty number)
{
Maximum column penalty = penalty;
Maximum column penalty, column number = col;
Maximum column penalty, minimum line number = column, minimum line number;
}
}
Int line number, column number;
If (maximum row penalty maximum column penalty number)
{
Line number = maximum line penalty number;
Line number = maximum line penalty, the minimum number of lines in the line;
}
Else
{
Column number = maximum column penalty, column number;
Line number = maximum column penalty, the minimum line number in the column;
}
Int production = Convert.ToInt32 (line][temp.Columns.Count - 1] - temp.Rows[);
Int sales = Convert.ToInt32 (temp.Rows[temp.Rows.Count - 1][c
您可能关注的文档
- 丹药材料(Dan material).doc
- 丹药材料大全(Traitional material Daquan).doc
- 丹阳参的介绍及其用法(Introduction and usage of Danyang ginseng).doc
- 丹阳地税创建重点+个体团队 扁平化推进税源专业化管理(Danyang local tax to create focus + individual team flattening, promoting tax professional management).doc
- 主体梁、板、柱砼浇捣施工方案(Concrete beam, slab and column concrete pouring construction plan).doc
- 主力经典挂单手法(The main techniques of classical Guadan).doc
- 主基二元法,让绩效考核更有效(图)(The main base two element method makes the performance appraisal more effective (Figure)).doc
- 丹麦 凯隆堡生态工业园(Kalundborg eco industrial park, Denmark).doc
- 主导鞋企品牌定位的几个忽视点(Several neglected points of brand positioning of leading shoe enterprises).doc
- 主动出击制订全球供应链战略(Initiative to develop global supply chain strategy).doc
- 京东店铺全屏代码(Jingdong store full screen code).doc
- 京东网上商城的内部变法(Internal reform of Jingdong online shopping mall).doc
- 京剧重要唱法(Beijing Opera important singing).doc
- 亲亲袋鼠妈妈网上转卡多疑不好(Kiss kangaroo mother to the Internet more cards suspect not good).doc
- 京郊旅游休闲地推荐(Recommendation of tourism and leisure sites in Beijing suburbs).doc
- 京沪高铁定远站至定城连接线道路工程及沿线综合开发项目(二次)(Beijing-Shanghai high-speed railway Dingyuan station to the city and along the road connecting line project comprehensive development project (two)).doc
- 亲戚朋友借钱如何巧妙拒绝(Relatives and friends how to skillfully refuse to borrow money).doc
- 亲友3翻译(Relatives and friends 3 translation).doc
- 亲子鉴定(Paternity testing).doc
- 亲生经历告诉我们过电流、过电压保护的重要性(Our biological experience tells us the importance of over current and over voltage protection).doc
文档评论(0)