It is cleared using operations research techniques and mathematical optimization, such as linear programming, operated by a market manager. A smart market can assist market operation when trades would otherwise have significant transaction costs or externalities. Resources need to be allocated to their best uses or activities in terms of people’s needs or wellbeing over time. The most productive use of allocated resources is required over time.