Code covered by the BSD License
-
Incentives(varargin)
INCENTIVES M-file for Incentives.fig
-
LoadOk(varargin)
LOADOK M-file for LoadOk.fig
-
NodeView(varargin)
NODEVIEW M-file for NodeView.fig
-
Nodo(varargin)
NODO M-file for Nodo.fig
-
Parameters(varargin)
PARAMETERS M-file for Parameters.fig
-
ResultsExplorer(varargin)
RESULTSEXPLORER M-file for ResultsExplorer.fig
-
SCRS(varargin)
Supply Chain Risk Simulator (SCRS)
-
SCRSTuple(varargin)
SCRSTUPLE M-file for SCRSTuple.fig
-
SCRSTuple_Incentive(varargin)
SCRSTUPLE_INCENTIVE M-file for SCRSTuple_Incentive.fig
-
SCRStart(varargin)
SCRSTART M-file for SCRStart.fig
-
SupplyChain(varargin)
SUPPLYCHAIN M-file for SupplyChain.fig
-
SupplyChainMonitor(varargin)
SUPPLYCHAINMONITOR M-file for SupplyChainMonitor.fig
-
A1=coalition(n);
-
DefineSubPieces(elem,indice,f...
testare
-
Payoff_SCRS(SuppliersNew,fiel...
ind incice del parametro di SuppierNew da far variare
-
Payoff_SCRS_conjunct(Supplier...
mi salvo anche i vari scenari che si generano tenendo le allocazioni x e
-
Payoff_SCRS_conjunct2(Supplie...
disp('Payoff computation');
-
RDFtoMAT(RDF)
trasforma l'RDF nella struttura matlab da usare SCRS
-
S=shap1(n,v);
This program determines the shapley value .Shapley value is one of
-
Simplex_SCRS(SuppliersNew,Tim...
matrice di connessioni per il simplesso per il tempo
-
[probability,contextstr]=Prob...
-
[t,K]=curvature(b,N)
-
[t,x,y]=get_points(b,N)
-
[xp,yp,t,d]=calculate_distanc...
Calculate distance between bezier curve and a point
-
c=recalculate_coeffs(b)
function c=recalculate_coeffs(b)
-
c=recalculate_points(b)
function c=recalculate_points(b)
-
display(b)
function display(b)
-
easy_draw(b)
function easy_draw(b)
-
edit_bezier(varargin)
-
fixdec(x, n)
FIXDEC Round towards zero with a specified number of decimals.
-
l=length(b,N)
-
parseRDF(filename)
PARSEXML Convert XML file to a MATLAB structure.
-
parseXML(filename)
PARSEXML Convert XML file to a MATLAB structure.
-
show_curve(b)
function show_curve(b)
-
subsasgn(b,index,val)
-
v=subsref(c,index)
-
varargout=edit_curve(varargin...
WYSIWYG editor for bezier curve
-
varargout=edit_curve_Payoff(v...
WYSIWYG editor for bezier curve
-
bezier(varargin)
construction of a Bezier curve
-
AttacksPayoff_Computation.m
-
Conditional_ProbabilityTable.m
-
Conditional_Probability_Compu...
-
Incentive_Computation.m
-
Replaceability_Computation.m
-
ShapleyDelta_Computation.m
-
View all files
from
Supply Chain Risk Simulator (SCRS)
by Marco Anisetti
Supply Chain simulator for risk assessment and incentive schemes.
|
| S=shap1(n,v);
|
function S=shap1(n,v);
% This program determines the shapley value .Shapley value is one of
% important solution concept for Transferable utility cooperative game cooperative game.
m=2^n-1;
% The 2^2-1 coalition contrains of the transferable utility game.
A=coalition(n);
ss=ones(1,n);
A=[A' ss']';
for k=1:n
k1=zeros(1,m);
k2=k1;
A2=0*A;
for i=1:m
if A(i,k)>0
k1(i)=v(i);
A2(i,:)=A(i,:);
else
end
end
A3=A2;
A3(:,k)=0;
for i=1:m
for j=1:m
if A3(i,1:n)==A(j,1:n);
k2(i)=v(j);
else
end
end
end
k3=k1-k2;
k4=sum(A2.');
r=zeros(1,m);
mm=factorial(n-1);
for i=1:m
if k4(i)>0
r(i)=mm./nchoosek(n-1,k4(i)-1);
else
end
end
S(k)=sum(k3.*r)/sum(r);
end
|
|
Contact us at files@mathworks.com