Linear and combinatorial optimization in ordered