Answer explained
Maximize Z=x+y subject to x-y≤-1, -x+y≤0, x≥0, y≥0.
Given
Constraints x-y≤-1 (i.e. y≥x+1) and -x+y≤0 (i.e. y≤x), together with x≥0, y≥0.
Method
Check whether any point can satisfy both constraints at once.
Step 1
y≥x+1 and y≤x can never hold together, since x+1 is always greater than x.
Answer
So there is no feasible region satisfying these constraints; the problem has no solution, so Z has no maximum value.