Life is an optimization problem, and the constraints change over time. What constraints you can keep constant throughout? Well I think it can be peace of mind. Some wise people also call it happiness. So no matter what happens in one's life, one should always be happy. One fun way of saying this is: Dot product of any outcome and your happiness should be 0.