You are on page 1of 11

REPUBLIQUE DU CAMEROUN REPUBLIC OF CAMEROON

Paix-Travail-Patrie Peace-Work-Fatherland
********* *********
MINISTERE DE L’ENSEIGNEMENT MINISTRY OF HIGHER
SUPERIEUR EDUCATION
********** **********
ECOLE NATIONALE SUPERIEUR DES POSTES NATIONAL ADVANCED SCHOOL OF POSTS
DES TELECOMMUNICATIONS ET DES TIC TELECOMMUNICATIONS AND ICT
**********

RAPPORT TRAVAUX PRATIQUE


D’OPTIMISATION ET PLANIFICATION DES
RESEAUX

Rédigé par :

-Nom : KOULTCHOUMI INNA HOUSSEINI


 Classe : ITT3 RC

Examinateur: MR. FELIX MBUNGE SUMBELE

Année Académique : 2021/2022

I- Considérons le réseau de télévision par câble


1. Création du graphe

Pour le faire, nous allons taper le code suivant :

 Interprétation :
S= [1 1 1 2 2 3 3 4 4 4 5 5 6 6 7 7 8 9]: define the source nodes of
each edge in the graph

T= [2 4 3 5 4 6 4 5 7 6 8 7 9 7 8 10 10 10]: define the source nodes of


each edge in the graph

weights= [4 5 2 7 3 5 8 4 3 4 3 2 6 6 6 6 9 6]: define the weight of


each edge in the graph

permet d’attribuer un
names={'A' 'B' 'C' 'D' 'E' 'F' 'G' 'H' 'I' 'J'} :
nom a chaque nœud d’où A=1 B=2 C=3 D=4 E=5 F=6 G=7 H=8 I=9 J=10
G=graph (S,T,weights, names):specifies node names using the cell array,
of character vectors or string array, nodenames. S and T cannot
contain node names that are not in nodenames

p=plot(G,'EdgeLabel',G.Edges.Weight): plot the graph and labeling the


graph edges with their weights

Ainsi on obtient le graphe suivant :


2. Connection de tous les nœuds du réseau afin que le total des
longueurs de branche soit minimisé
 Interprétation :

[T,pred] = minspantree(G): find the minimum spanning tree for the


graph

highlight the
highlight(p,T, 'EdgeColor','black','LineWidth',3):
minimum spanning tree subgraph in the plot by increasing the line
width and changing the color of the edges in the tree

3. Graphique résultant
create a
rootedTree = graph(pred(pred~=0),find(pred~=0),[],G.Nodes.Name):
directed version of minimum spanning tree. All of the edges in this
tree are directed away from the root nodes in each component

p=plot(rootedTree): plot the rootedTree

highlight by
highlight(p,rootedTree,'EdgeColor','m','LineWidth',3):
increasing the line width and changing the color of the edges in the
tree

On obtient donc le graphe suivant :


4. longueur totale de l'arbre couvrant minimal
 Interprétation :

d=distances(G): returns a matrix,d,where d(i,j) is the length of the


shortest path between node I and node j. If the Graph is weighted
(that is, G.Edges contains a variable Weight), then those weights are
used as the distances along the edges in the graph Otherwise, all
edge distances are taken to be 1.
D=(d(1,2)+d(1,3)+d(2,4)+d(4,6)+d(4,7)+d(5,8)+d(5,7)+d(6,9)+d(7,10)):

On obtient ainsi le résultat suivant :


Ainsi on obtient une longueur égale a 33. Ceci dit en théorie pour
trouver cette valeur on somme tous les arcs du graphe

II- Consider a basic flow network. Using Ford –Fulkerson


Algorithm Find the maximal flow and minimum cut from
source (s) to sink (t) indicate the arcs constituting the
minimum cuts.

1. Création du graphe

On obtient le graphe suivant :


 Interprétation :

[mf,~,cs,ct] = maxflow(G,1,8)= additionally returns the source and


 
target node IDs, cs and ct, representing the minimum cut associated
with the maximum flow.
Ainsi pour afficher le graphe résultant on tape le code suivant :

On obtient donc:
Ainsi Le Minimum Cut trouvé est : (S-B); (S-C); (C-F); (B-E); (G-T); (S-
C); (E-T).

You might also like