How is relevant costing used in decision making? What would the relevant costs be in deciding whether to discontinue a segment of business? What

How is relevant costing used in decision making? What would the relevant costs be in deciding whether to discontinue a segment of business? What would the relevant costs be in deciding how to optimize use of a constrained resource?