Quality control of cooking oil is a crucial aspect of maintaining product characteristics and ensuring consumer health. A common challenge is variation in quality parameter values such as acid value and color which cannot be easily classified into simple "good" or "bad" categories. This study aims to apply Mamdani fuzzy logic to design a quality assessment system for cooking oil based on a combination of its acid value and color. Data for these parameters were obtained through a literature review and processed using the Fuzzy Logic Toolbox in MATLAB software. The system was developed with two input variables acid value (ranging from 0 to 0.6) and color (ranging from 210 to 330) and one output variable: the oil quality level (ranging from 0 to 1). The inference process utilizes nine IF-THEN fuzzy rules with an OR operator, employing the centroid method for defuzzification. Testing on a sample with an acid value of 0.5 and a color value of 300 yielded crisp output of 0.67 (via manual calculation) and 0.672 (via MATLAB simulation), both indicating a "medium" quality category. This research demonstrates that the Mamdani fuzzy method has the potential to facilitate a systematic and objective assessment of cooking oil quality.
Copyrights © 2026