sobol灵敏度分析matlab_灵敏度分析_使用MATLAB编写.doc

该文主要介绍了如何使用MATLAB进行线性规划的灵敏度分析,包括单纯形法编程实现和通过敏感性报告进行解的分析。文中以课本例1为例,详细展示了调用单纯形程序进行求解和分析的过程。
摘要由CSDN通过智能技术生成

实验二、线性规划的灵敏度分析

实验目的

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

2.掌握使用matlab、Lingo、Excel的规划求解功能求解,并利用“敏感性报告”进行分析。

(二)实验内容

课本例1 解的灵敏度分析

(1):调用单纯形程序:

function [x,z,flg,sgma]=simplexfun(A,A1,b,c,m,n,n1,cb,xx)

% A,b are the matric in A*x=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);

s

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值