Machine Learning, Data Science, Optimization, Python, Tutorial.
given by, This is the objective function, which we want to maximize. Now both the medicines are dependent on the herbs which we have in finite quantity. Let’s understand the constraints. If we create x and y units of medicine 1 and 2, We use 3 * x + 4 * y units of herb A. But we only have 25 units