Pseudolinearity in scalar and vector optimization