How can I encourage my children to be optimist?

Optimism. Be a role model for them & provide encouragement & support & positive feedback when they are following your steps.