# Evaluation de la faisabilité d'un projet GTB
criteres = {
"Infrastructures_existantes": {"note": 4, "poids": 20},
"Compatibilite_equipements": {"note": 2, "poids": 20},
"Reseau_informatique": {"note": 4, "poids": 15},
"Potentiel_economies": {"note": 4, "poids": 15},
"Ressources_internes": {"note": 2, "poids": 10},
"Budget_disponible": {"note": 2, "poids": 20}
}
score_total = 0
for critere, valeur in criteres.items():
score = (valeur["note"] / 5) * valeur["poids"]
score_total += score
print(f"Score de faisabilité : {score_total:.1f}/100")
if score_total >= 80:
print("Projet fortement recommandable")
elif score_total >= 60:
print("Projet faisable avec quelques adaptations")
elif score_total >= 40:
print("Projet faisable mais plusieurs points bloquants à lever")
else:
print("Projet non prioritaire ou nécessitant une étude approfondie")
criteres = {
"Vetuste_installations": {"note": 4, "poids": 10},
"Compatibilite_CVC": {"note": 4, "poids": 15},
"Compatibilite_Eclairage": {"note": 4, "poids": 10},
"Sous_comptage_existant": {"note": 2, "poids": 10},
"Reseau_IP_disponible": {"note": 4, "poids": 10},
"Objectif_OPERAT": {"note": 3, "poids": 15},
"Potentiel_economie_energie": {"note": 4, "poids": 15},
"Capacite_financiere": {"note": 2, "poids": 10},
"Ressources_maintenance": {"note": 3, "poids": 5}
}
investissement = 200000
economie_annuelle = 15000
roi = investissement / economie_annuelle
print(f"Retour sur investissement : {roi:.1f} ans")
import matplotlib.pyplot as plt
import numpy as np
labels = [
"Infrastructure",
"Equipements",
"Réseau",
"Economies",
"Ressources",
"Budget"
]
scores = [4,3,5,4,2,3]
angles = np.linspace(0, 2*np.pi, len(labels), endpoint=False)
scores += scores[:1]
angles = np.concatenate((angles,[angles[0]]))
fig, ax = plt.subplots(figsize=(8,8), subplot_kw=dict(polar=True))
ax.plot(angles, scores, 'o-', linewidth=2)
ax.fill(angles, scores, alpha=0.25)
ax.set_thetagrids(angles[:-1]*180/np.pi, labels)
plt.title("Faisabilité Projet GTB")
plt.show()
To embed this project on your website, copy the following code and paste it into your website's HTML: