listing, but can be provided on demand to the author. The proposed codes are not optimized either for Matlab, or in general and can still have bugs. All suggestions in order to improve them are welcome.

## 5 Matlab Codes

We give and explain here some Matlab codes of the general belief function framework2. Note that the proposed codes are not optimized either for Matlab, or in general.

First the human operator have to describe the problem (see function 1)
giving the cardinality of Θ, the list of the focal elements and the corresponding bba for each experts, the eventual constraints (' ' if there is no constraint), the list of elements on which he want to obtain a decision and the parameters corresponding to the choice of combination rule, the choice of decision criterium the mode of fusion (static or dynamic) and the display. When the description of the problem is made, he just has to call the fuse function 2.

## Function 1 - Command Configuration

% description of the problem CardTheta=4; % cardinality of Theta
% list of experts with focal elements and associated bba expert(1).focal={'1' '1u3' '3' '1u2u3'}; expert(1).bba=[0.5421 0.2953 0.0924 0.0702]; expert(2).focal={'1' '2' '1u3' '1u2u3'}; expert(2).bba=[0.2022 0.6891 0.0084 0.1003]; expert(3).focal={'1' '3n4' '1u2u3'}; expert(3).bba=[0.2022 0.6891 0.1087];
constraint={'1n2' '1n3' '2n3'}; % set of empty elements elemDec={'F'}; % set of decision elements
%------------------------------------------------------------- % parameters criteriumComb=1; % combination citerium criteriumDec=0; % decision criterium mode='static'; % mode of fusion display=3; % kind of display %------------------------------------------------------------- % fusion fuse(expert,constraint,CardTheta,criteriumComb,criteriumDec,...

mode,elemDec,display)