Operational Reliability Reports
Capacity Reserve Reliability Report
Compare current demand with fixed capacity and report remaining reserve.
Capacity Reserve Reliability Report
capacity_reserve_reliability_report.c
#include <stdio.h>
int main(void) {
int demand = ;
int capacity = 100;
int reserve = capacity - demand;
const char *status = "stable";
if (reserve < 20) {
status = "watch";
}
if (reserve < 10) {
status = "tight";
}
printf("demand=%d\n", demand);
printf("reserve=%d\n", reserve);
printf("status=%s\n", status);
return 0;
}
#include <stdio.h>
int main(void) {
int demand = ;
int capacity = 100;
int reserve = capacity - demand;
const char *status = "stable";
if (reserve < 20) {
status = "watch";
}
if (reserve < 10) {
status = "tight";
}
printf("demand=%d\n", demand);
printf("reserve=%d\n", reserve);
printf("status=%s\n", status);
return 0;
}
#include <stdio.h>
int main(void) {
int demand = ;
int capacity = 100;
int reserve = capacity - demand;
const char *status = "stable";
if (reserve < 20) {
status = "watch";
}
if (reserve < 10) {
status = "tight";
}
printf("demand=%d\n", demand);
printf("reserve=%d\n", reserve);
printf("status=%s\n", status);
return 0;
}
reserve
Reserve is the capacity left after current demand has been accounted for.
capacity status
A small status branch separates comfortable, watch, and tight capacity states.