Computer-implemented method for controlling a technical system, comprising the method steps: - reading in hardware configuration parameters and a value of a real-time requirement of a control unit, - reading in hardware configuration parameters of an artificial intelligence computing unit, - reading in a control application for controlling the technical system, wherein the control application is configured to generate an input value for the control unit on the basis of an artificial intelligence, - determining a processing time of the control application for execution of the control application on the artificial intelligence computing unit taking into consideration the hardware configuration parameters of the control unit and the hardware configuration parameters of the artificial intelligence computing unit, wherein the processing time comprises an execution time of the execution of the application on the artificial intelligence computing unit, - checking the determined processing time on the basis of the value of the real-time requirement of the control unit and outputting a check result, and - outputting the control application for controlling the technical system on the basis of the check result, wherein the execution time of the control application is adapted to the value of the real-time requirement by modifying the control application, wherein the control application is iteratively modified until the determined execution time of the control application meets the value of the real-time requirement of the control unit, wherein the control application comprises an artificial neural network and nodes of the neural network are iteratively reduced until the determined execution time of the control application meets the value of the real-time requirement. - reading in hardware configuration parameters and a value of a real-time requirement of a control unit, - reading in hardware configuration parameters of an artificial intelligence computing unit, - reading in a control application for controlling the technical system, wherein the control application is configured to generate an input value for the control unit on the basis of an artificial intelligence, - determining a processing time of the control application for execution of the control application on the artificial intelligence computing unit taking into consideration the hardware configuration parameters of the control unit and the hardware configuration parameters of the artificial intelligence computing unit, wherein the processing time comprises an execution time of the execution of the application on the artificial intelligence computing unit, - checking the determined processing time on the basis of the value of the real-time requirement of the control unit and outputting a check result, and - outputting the control application for controlling the technical system on the basis of the check result, wherein the execution time of the control application is adapted to the value of the real-time requirement by modifying the control application, wherein the control application is iteratively modified until the determined execution time of the control application meets the value of the real-time requirement of the control unit, wherein the control application comprises an artificial neural network and nodes of the neural network are iteratively reduced until the determined execution time of the control application meets the value of the real-time requirement.