This paper presents the implementation of a knowledge base supporting an intelligent system to solve problems of optimization especially problems of discrete production processes optimization called Intelligent Algebraic-Logical Meta-Model (ALMM) Solver. Using a unified description of selected optimization problems, an ontological knowledge base was designed, which allows for selective selection of Intelligent ALMM Solver components necessary to solve and model problems. Using the definitions of the properties of optimization problems, scalable components describing exemplary optimization jobs were selected. Ontology for this area was developed, with particular emphasis on the requirements of the ALMM Solver. Using the possibility of interactive communication with the ALMM ontology in the form of SQL queries in the experimental part of the work, exemplary queries for the designed Knowledge Base (KB) module were presented, and the response generated by the system is a scenario of intelligent selection of a set of components modeling and solving a given problem. Such an innovative approach allows for dynamic construction of algorithms solving problems of discrete optimization. The use of knowledge about the properties of the considered processes and ALMM technology universalizes the proposed KB system making it an intelligent and efficient tool for solving discrete optimization jobs. The key advantage of the proposed ontological approach is the ability to flexibly expand it and extend its use to other classes of problems which have already been described in the ALMM technology.