Explore chapters and articles related to this topic
Functions, Scripts, and Good Programming Practice
Published in E. Mikhailov Eugeniy, Programming with MATLAB for Scientists, 2017
The art of programming is the ability to translate from human notation to one that a computer understands. In the spirit of a gradual increase of complexity, we always start with mathematical notation, which serves as the bridge between human language and computer (programming) language. Essentially, mathematical notation is the universal language from which we can always go to an arbitrary programming language, including MATLAB. This chapter addresses functions, scripts, and basic good programming practices. It begins with some motivational examples and shows how to run test cases to check your solutions, making sure they are realistic. We conclude the chapter by discussing recursive and anonymous functions.
Flexibility of dynamic blending with alternative routings combined with security stocks: a new approach in a mining supply chain
Published in International Journal of Production Research, 2021
Ahlam Azzamouri, Mouna Bamoumen, Hajar Hilali, Vincent Hovelaque, Vincent Giard
We study the flexibility of blending in a dynamic context (§5.1) before illustrating the impact of the risk based on the principles of flexi-security stocks (§5.2). It is important to notice that all the examples in §5.1 and §5.2 have been solved using the software developed for OCP and used by the Centre axis. The software encapsulates the parameterised generic model (described in section 44) formulated with FICO’s Xpress-IVE AML (Algebraic Modeling Language), (FICO) coupled with a data entry interface5 for problem feeding from a relational database, allowing the instantiation of an optimisation problem to be solved. The AML is recognised as a disruptive approach in the formulation and solving of mathematical programming problems. It facilitates the construction of models through a language that resembles mathematical notation. Most AML follow certain design principles: a balanced mix of declarative and procedural elements, open architecture and interfaces to other systems and different layers with separation of model and data, model and solution methods, model and operating system, and model and interface (Dominguez-Ballesteros et al. 2001). The problem resolution was run on a laptop with a processor Intel(R) Core(TM) i7-6500U CPU 2.50 GHz with a Random Access Memory of 12G. The results are obtained within a few seconds (39’), with the linearised version of the quadratic problem.