Is there a way to combine linear equation and inequalities into same equation in order to optimise software calculations?
I find it hard to tell from your question, but your problem sounds like it might be an instance of linear programming, in which case there existing solvers you can use.