SOL=tug_GameMonotoneQ(v)TUG_GAMEMONOTONEQ verifies if the game is monotone. It calls the Mathematica Package TuGames.
SOL=tug_Gap(v)TUG verifies game solution/property with the Mathematica Package TuGames.
SOL=tug_GrandCoalitionLargest...TUG_GRANDCOALITIONLARGESTVALUEQ verifies if the grand coalition has the largest value. It calls the Mathematica Package TuGames.
SOL=tug_LargestAmount(v)TUG verifies game solution/property with the Mathematica Package TuGames.
SOL=tug_LeastCore(v)TUG_LEASTCORE computes the least core of game v. Function implemented by M. Carter. It calls the Mathematica Package TuGames.
SOL=tug_LexiCenter(v)TUG verifies game solution/property with the Mathematica Package TuGames.
SOL=tug_LowerSetIncImputation...TUG_LowerSetIncImputationQ verifies if the lower set is included in the imputation set. It calls the Mathematica Package TuGames.
SOL=tug_LowerSetQ(v)TUG_LOWERSETQ verifies if the lower set exists. It calls the Mathematica Package TuGames.
SOL=tug_MKernel(v)TUG_MKernel computes a kernel element with the Mathematica Package TuGames.
SOL=tug_MargValue(v)TUG verifies game solution/property with the Mathematica Package TuGames.
SOL=tug_UpperSetIncImputation...TUG_UPPERSETINCIMPUTATIONQ verifies if the upper set is included in the imputation set. It calls the Mathematica Package TuGames.
SOL=tug_UpperSetQ(v)TUG_UPPERSETQ verifies if the upper set is non-empty. It calls the Mathematica Package TuGames.
SOL=tug_UtopiaVector(v)TUG verifies game solution/property with the Mathematica Package TuGames.
SOL=tug_ValueExcess(v,y)TUG verifies game solution/property with the Mathematica Package TuGames.
from
MatTuGames
by Holger I. Meinhardt A game theoretical Matlab toolbox to compute solution schemes
and properties from TU-games.
COAL=tug_Coal2Dec(n)
function COAL=tug_Coal2Dec(n)
% TUG verifies game solution/property with the Mathematica Package TuGames.
%
% Usage: COAL=tug_Coal2Dec(n)
% Define variables:
% output:
% COAL -- The list of proper coalitions in Mathematica order.
% Field variable gives result in Matlab and Mathematica format.
%
% input:
% n -- The number of persons involved.
%
% Author: Holger I. Meinhardt (hme)
% E-Mail: Holger.Meinhardt@wiwi.uni-karlsruhe.de
% Institution: University of Karlsruhe (KIT)
%
% Record of revisions:
% Date Version Programmer
% ====================================================
% 03/06/2011 0.1 beta hme
%
% Here we assume that the user has represented the game correctly.
if nargin <1
n=3;
elseif length(n)>1
error('Input must be an integer equal to or larger than 2!')
else
end
math('quit')
pause(1)
math('$Version')
math('{Needs["coop`CooperativeGames`"],Needs["VertexEnum`"],Needs["TuGames`"],Needs["TuGamesAux`"] }');
disp('Passing Input to Mathematica ...')
math('matlab2math','n1',n);
math('n1=Flatten[n1,1][[1]]');
math('n2=Rationalize[n1]');
disp('Determing proper coalitions in decimal representation ...')
math('T=Range[n2]');
mcl=math('Subsets[T]');
mps=math('ps=Coal2Dec[n2]');
S=math('math2matlab','ps');
COAL=struct('Coalitions',S,'MProperCoalitions',mps,'MCoalitions',mcl);
math('quit')