Combining two targets variable together to find out the optimal range between two




I have a situation in my machine learning where i have two output or target variable.Increasing the value of one target variable causes the value of other target variable to go down and vice versa…

Through my model,I need to identify an optimal range for both the values to remains in sync and within range.

Need help to identify is there any Algo,tool or some other means available,Which is applicable for this sort of problem