A controller comprising: a state receiving unit configured to receive state data detected by at least one sensor configured to measure a state of a facility ; a state transmission unit configured to transmit the state data, which is a learning target, to a control apparatus ; a model receiving unit configured to receive a learned control model from the control apparatus ; a calculation unit configured to calculate the control data corresponding to the state data, which is a processing target, by using the received control model; and a control unit configured to control the facility by using the calculated control data, characterized in that the controller further comprises: a control data receiving unit configured to receive, from the control apparatus , a first one of the control data calculated using the control model by the control apparatus , and a control data selection unit configured to select the control data that is used for control on the facility , from the first one of the control data and a second one of the control data calculated by the calculation unit , wherein the control data selection unit is configured to select, in a first time period, the second one of the control data, in response to the control data selection unit being unable to receive the first one of the control data from the control apparatus , and select, in a second time period, the first one of the control data from the control apparatus , in response to the control data selection unit being unable to use the second one of the control data. a state receiving unit configured to receive state data detected by at least one sensor configured to measure a state of a facility ; a state transmission unit configured to transmit the state data, which is a learning target, to a control apparatus ; a model receiving unit configured to receive a learned control model from the control apparatus ; a calculation unit configured to calculate the control data corresponding to the state data, which is a processing target, by using the received control model; and a control unit configured to control the facility by using the calculated control data, characterized in that the controller further comprises: a control data receiving unit configured to receive, from the control apparatus , a first one of the control data calculated using the control model by the control apparatus , and a control data selection unit configured to select the control data that is used for control on the facility , from the first one of the control data and a second one of the control data calculated by the calculation unit , wherein the control data selection unit is configured to select, in a first time period, the second one of the control data, in response to the control data selection unit being unable to receive the first one of the control data from the control apparatus , and select, in a second time period, the first one of the control data from the control apparatus , in response to the control data selection unit being unable to use the second one of the control data. a control data receiving unit configured to receive, from the control apparatus , a first one of the control data calculated using the control model by the control apparatus , and a control data selection unit configured to select the control data that is used for control on the facility , from the first one of the control data and a second one of the control data calculated by the calculation unit , wherein the control data selection unit is configured to select, in a first time period, the second one of the control data, in response to the control data selection unit being unable to receive the first one of the control data from the control apparatus , and select, in a second time period, the first one of the control data from the control apparatus , in response to the control data selection unit being unable to use the second one of the control data. <EOS>