Control Program Generation Using Matrix Annotation for Speed and Memory
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for generating control programs from graphical control models struggle to optimize resource utilization in control units, particularly in terms of computing speed and memory efficiency, due to increasing complexity and resource constraints in automotive applications.
Innovation Solution
A computer-implemented method that generates a control program for a target platform from a graphical control model, utilizing a definition database that stores annotation information about matrix structures. This annotation information is used to optimize the source code, reducing calculation steps and memory requirements by leveraging known matrix structures such as triangular, diagonal, and sparse matrices.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If control programs are generated from graphical control models using conventional methods, then the control programs can be implemented on target platforms, but the computing speed is reduced and memory requirements increase due to lack of optimization
Solution Approach 1:
The invention applies preliminary action by storing annotation information about matrix structures in advance in a database before code generation. This pre-stored information includes details about triangular, diagonal, sparse, and other special matrix structures, which are then automatically utilized during the control program generation process to optimize computing speed and reduce memory requirements without increasing program complexity.
Solution Approach 2:
The invention changes parameters by transforming the representation of matrix operations from generic forms to optimized forms based on stored annotation information. When the code generator encounters a matrix operation, it queries the database for specific structural parameters (e.g., whether a matrix is triangular, diagonal, or sparse) and generates optimized code accordingly, thereby improving computing speed while managing complexity.
2Quantity of substance
If control programs are generated from graphical control models using conventional methods, then the control programs can be implemented on target platforms, but the memory requirements increase due to lack of optimization
Solution Approach 1:
The invention applies preliminary action by pre-storing annotation information about matrix structures in a database before code generation. This information includes characteristics of special matrix structures (triangular, diagonal, sparse, etc.), which are automatically retrieved and applied during code generation to minimize memory requirements while avoiding increased program complexity.
Solution Approach 2:
The invention changes parameters by using stored annotation information to transform generic matrix operation representations into optimized representations. By querying the database for specific structural parameters and generating code that exploits these structures (e.g., storing only non-zero elements of sparse matrices), the invention reduces memory requirements while maintaining manageable program complexity.
3Productivity
If annotation information about matrix structures is stored and utilized during code generation, then computing speed increases and memory requirements decrease, but the system complexity increases due to the definition database
Solution Approach 1:
The invention uses an intermediary approach by introducing a database as a mediator between the graphical control model and the code generation process. The database stores annotation information about matrix structures and provides this information to the code generator, which then produces optimized code. This intermediary layer improves resource efficiency while keeping the added system complexity manageable and isolated.
Solution Approach 2:
The invention applies self-service by enabling the code generator to automatically query and utilize annotation information from the database without requiring manual intervention. The system self-optimizes by automatically identifying special matrix structures and generating appropriate optimized code, thereby improving productivity while minimizing the complexity burden through automation.
Data Source
AI summary
A computer-implemented method for generating a control program for a target platform from a graphical control model of a development platform, wherein the development platform comprises a definition database for storing information on the graphical control model and is designed to support matrix operations. Annotation information for the structure of matrices used in the graphical control model can be stored in the definition database and that when the control program for the target platform is generated, the stored annotation information is taken into account in such a way that a) on the target platform, when implementing a processing order that involves at least one matrix, the computing speed is increased and/or b) on the target platform, when saving the matrices, the memory requirement is reduced.

