灵敏性分析源代码

Posted yk 坤帝

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了灵敏性分析源代码相关的知识,希望对你有一定的参考价值。

线性规划求解的单纯形法的灵敏度分析的编程实现

function [x,z,flg,sgma]=simplexfun(A,A1,b,c,m,n,n1,cb,xx)
% A,b are the matric in Ax=b
% c is the matrix in max z=c
x
% A1 is the matric in simplex table
% m is the numbers of row in A and n is the con number in A
% n1 is the nubers of
artificial
variables,and
artificial
variables
are default
as the last
%
n1
variables in x.
% cb is the worth coefficient matrix for basic variables
% xx is the index matrix for basic variables
% B1 is the invers matrix for the basic matrix in simplex table.The initial
% matrix is default as the last m con in the matrix A.
x=zeros(n,1);
z=0;
B1=A1(:,n-m+1:n);
sgma1=c-(cb*B1)*A;
[masg,kk]=max(sgma1);
k=kk(1);
fl
g=0;
l
l
=0;
while (masg>0)&&(ll<20)
l
l
=ll+1
;
thita=1000+zeros(m,1);
for i=1
:
m
i
f A1
(i
,
k)>0
thita(i)=A1(i,k)\\b(i);
end
end
[r8,c8]=find(thita>999);
i
f sum(c8)<m




公众号 yk 坤帝
免费 获取源代码

以上是关于灵敏性分析源代码的主要内容,如果未能解决你的问题,请参考以下文章

具有指定噪声的随机微分方程灵敏度分析

运筹学笔记 对偶理论与灵敏度分析

MOOC运筹学不挂科笔记 灵敏度分析

灵敏度分析方法_以monod方程为例

SAlib(灵敏度分析)包是否仅支持一个列(向量)输入?

在 R 中编程灵敏度分析:改变 1 个参数(列),保持其他参数不变。更好的方法?