A control device, comprising: a first acquisition unit which acquires a desired basic value of a control variable; a second acquisition unit which acquires a measured value of a control variable obtained by a first sensor measuring a control variable of a device being controlled; a prediction unit which calculates a prediction value of the control variable from the acquired measured value using a prediction model of the control variable; a desired correction unit which determines a desired command value of the control variable by correcting the desired basic value in response to the calculated prediction value and determines a degree of correction on the basis of a weight; an operation control unit which controls an operation of the device being controlled in accordance with the determined desired command value; a third acquisition unit which acquires monitoring data obtained by a second sensor monitoring an operation result of the device being controlled, wherein the monitoring data obtained by the second sensor is different from the measured value obtained by the first sensor; a result determination unit which assesses whether the device being controlled is appropriately operated by the control on the basis of the acquired monitoring data, wherein the device being controlled is appropriately operated when the acquired monitoring data indicates that a quality of a product produced by the device being controlled satisfies a predetermined quality condition; and a weight optimization unit which optimizes the weight of correction so that the device being controlled is appropriately operated on the basis of the assessment result, wherein the weight comprises a proportional constant r and a constant term s. a first acquisition unit which acquires a desired basic value of a control variable; a second acquisition unit which acquires a measured value of a control variable obtained by a first sensor measuring a control variable of a device being controlled; a prediction unit which calculates a prediction value of the control variable from the acquired measured value using a prediction model of the control variable; a desired correction unit which determines a desired command value of the control variable by correcting the desired basic value in response to the calculated prediction value and determines a degree of correction on the basis of a weight; an operation control unit which controls an operation of the device being controlled in accordance with the determined desired command value; a third acquisition unit which acquires monitoring data obtained by a second sensor monitoring an operation result of the device being controlled, wherein the monitoring data obtained by the second sensor is different from the measured value obtained by the first sensor; a result determination unit which assesses whether the device being controlled is appropriately operated by the control on the basis of the acquired monitoring data, wherein the device being controlled is appropriately operated when the acquired monitoring data indicates that a quality of a product produced by the device being controlled satisfies a predetermined quality condition; and a weight optimization unit which optimizes the weight of correction so that the device being controlled is appropriately operated on the basis of the assessment result, wherein the weight comprises a proportional constant r and a constant term s.