Linear algebra and optimization models