<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by David Gravot on Medium]]></title>
        <description><![CDATA[Stories by David Gravot on Medium]]></description>
        <link>https://medium.com/@david.gravot?source=rss-193f71e72735------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*uF4ThluyUgfJ2qnL</url>
            <title>Stories by David Gravot on Medium</title>
            <link>https://medium.com/@david.gravot?source=rss-193f71e72735------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 00:43:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@david.gravot/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[“Data is everywhere”, are you sure ?]]></title>
            <link>https://medium.com/decisionbrain/data-is-everywhere-are-you-sure-80d2bc592a01?source=rss-193f71e72735------2</link>
            <guid isPermaLink="false">https://medium.com/p/80d2bc592a01</guid>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[David Gravot]]></dc:creator>
            <pubDate>Tue, 26 May 2020 11:51:31 GMT</pubDate>
            <atom:updated>2020-05-28T08:10:02.009Z</atom:updated>
            <content:encoded><![CDATA[<h3>“Data is everywhere”, are you sure?</h3><p>“Data is everywhere” is a common saying nowadays. If only that was true …In this post, I want to stress the point that:</p><p>-Early access to relevant data at early stage of an Operations Research project or application is mandatory.</p><p>-Therefore, one shall not postpone effort to collect, analyze and visualize the data by any means instead of expecting future availability of clean and realistic dataset.</p><p>Although customers agree at the early stage of the discussion that they will, of course, provide relevant data from scratch, this is rarely the case. But this is absolutely critical for the success of OR oriented software. <br>Let’s quote some reasons why:</p><ol><li>Missing data hides potential errors and misunderstandings. The earliest we can have a look at the data, the earliest we validate them. Devil is in the detail, so a tiny change in a column description can reveal a missing or inaccurate specification. Knowing this specification too late may jeopardize the project plan since adopting a mathematical model to change request is much more delicate than other IT re-engineering.</li><li>Writing checkers: data in the application UI are in the state of waiting to enter the tunnel of optimization, which is somehow a black box for the customer. If this black box crashes and ends up with exceptions, no solution, or any other error messages, it’s quite frustrating for the end-user and transfers the explanation of data errors to the optimization engine support team. This can create frustrations and wasted time.</li></ol><blockquote><strong><em>Advice #1</em></strong><em>:<br>Delegate as many responsibilities to data checking: it should provide a clear and user-friendly explanation of data errors rather than digging into awkward optimization logs or mathematical conflict files!</em></blockquote><figure><img alt="DOC Plan -Issues Dashboard" src="https://cdn-images-1.medium.com/max/1024/1*oIuesMjKO0H3GRfUL8b1wQ.png" /><figcaption>DOC Plan -Issues Dashboard</figcaption></figure><p>3. Showing data to the users at an early stage brings trust between project stakeholders. It opens the room to UI design, which may need a revamp of the data workflow. This stands also for the Output data and Key Performance Indicators: understand what information the planners need to review and validate the plan.</p><p>4. One data set is not enough. A given type of constraint may only exist in one country for example. We would like to get a variety of all use cases as soon as possible. Allowing the customer to provide data through any toolkit available will help: Excel or flat file importer, mock data tool.</p><blockquote><strong><em>Advice #2</em></strong><em>:<br>Split the project into two phases. In the first phase, we merge functional requirements and data collection. The first phase is validated with a basic UI that displays all the data (it will be improved later on), with the ability to collect all relevant data through basic importers. The second phase targets the full delivery but then is much less risky data-wise since the data will be totally validated by the previous stage.</em></blockquote><p>From the OR prospective, brainstorming and early modeling are possible during the first phase but implementation will rather be postponed to the second stage, leading to higher visibility of OR developers’ workload. Instead, today’s projects are sometimes freezing the availability of OR developers on a much larger time frame than it could be. Going back and forth on the functional requirement may lead to delays and increase project risks!</p><h3>Data analysis requires visualization</h3><p>Getting accurate data is key, but what if you are unable to clearly see them?! Data models may be complex and expectations for data navigation depends on the profile of the users.</p><figure><img alt="DOC KPI’s Overview and Gantt chart" src="https://cdn-images-1.medium.com/max/1024/1*qwxImSUupHjUI7vMI8RKBg.png" /><figcaption>DOC KPI’s Overview and Gantt chart</figcaption></figure><ul><li>Strategic planners may be interested in a straight dashboard that would highlight key performance indicators</li><li>Operations planners may be interested in much more detailed information, that requires customizations, coloring, filters, interactive diagrams, or Gantt charts…</li><li>OR practitioner need to debug and query some cross-informations among several tables</li><li>Attach online documentation to any visualization, that clearly explains the dimensions of the objects you are looking</li><li>What-if analysis may require comparison views between two or more scenarios</li></ul><blockquote><strong><em>Advice #3</em></strong><em>:<br>Start each project with a basic data visualisation — including output data as well — that will be enough to validate each table, then iterate at each delivery with a set of new UI components. Enhance the UI with planners feedback.</em></blockquote><figure><img alt="DOC Planners Feedback Dashboard" src="https://cdn-images-1.medium.com/max/1024/1*h1nUvcY6j2V2x_ZvgRGvZw.png" /><figcaption><em>DOC Planners Feedback Dashboard</em></figcaption></figure><h3>Discuss the results</h3><p>It is critical to show to the customers its own data reflected in the application UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CQpdzYrdIXqdSGA1CnR8Ug.png" /><figcaption>KPI’s Dashboard</figcaption></figure><p>Looking at the optimization results is as critical and should again involve as many users as possible to foster a rich discussion on the outputs of the ‘black-box’. Note that even for OR people, the output is not always deterministic and may lead to surprising or unexpected results.</p><p>The OR practitioner will use these views to detect misbehaviors, bugs, and data errors — to fix at once. Once passed the necessary bug fixes, results may still look awkward to the OR practitioner, and in this case, the investigation may be on his side. Now, when the OR practitioner is convinced that his results are in line with the definition of the problem, his job is far from being completed since additional discussions will only begin to start with the planners!</p><p>Such discussion needs to be prepared, reporting tools need to be designed in order to provide an easy way to convince the planners that results make sense. For instance, prove to the planner that there is a bottleneck on the resource that prevents increasing the production.</p><p>At one point, OR practitioners need to put their feet in planners’ shoes. Planners are often very experienced and the way they build manual plans should be somehow reflected in search heuristics. This shall be not at the cost of losing global improvements, which is after all what an optimizer hopefully provides and which motivates the customer investment.</p><p>The planners shall agree with the results and not complain about obvious quality improvement that the optimizer fails to notice and fix. For instance, if switching two activities in a scheduling Gantt chart improves operational efficiency, then it’s too bad if the optimizer does not evaluate this local change and replace the previous local sub-optimal solution.</p><p>This may require however some polishing post-process since missing this move might be a tiny improvement that the solver loses (think of gap threshold that may stop an optimization when being at a certain distance from the optimum).</p><blockquote><strong><em>Advice #4</em></strong><em>:<br>Write clear test plans for the end-users at each delivery. That’s the first step towards user acceptance when the application reaches preliminary targets, with repeatable behavior. It does not necessarily satisfy all users expectations but draws the path to success with clear milestones. Each of these deliveries is hopefully involving an on-site visit of OR practitioners and other IT staff (front-end in particular). That’s a quite natural place to discuss the application behavior and get rid of potential misunderstandings. Having a good time around such as lunch or other activities is always nice to get to know each other.</em></blockquote><p>If you liked this article you could also be interested in: <br><a href="https://medium.com/decisionbrain/tips-tricks-in-or-practice-224b2b6aaa7b">Tips &amp; Tricks in OR Practice</a><br><a href="https://medium.com/decisionbrain/the-application-is-done-now-we-just-need-data-a8c869175260">“The Application is done. Now we just need Data”</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80d2bc592a01" width="1" height="1" alt=""><hr><p><a href="https://medium.com/decisionbrain/data-is-everywhere-are-you-sure-80d2bc592a01">“Data is everywhere”, are you sure ?</a> was originally published in <a href="https://medium.com/decisionbrain">Decision Optimization Center</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tips & Tricks in OR Practice]]></title>
            <link>https://medium.com/decisionbrain/tips-tricks-in-or-practice-224b2b6aaa7b?source=rss-193f71e72735------2</link>
            <guid isPermaLink="false">https://medium.com/p/224b2b6aaa7b</guid>
            <category><![CDATA[constraints-programming]]></category>
            <category><![CDATA[cplex]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[operations-research]]></category>
            <category><![CDATA[optimization-algorithms]]></category>
            <dc:creator><![CDATA[David Gravot]]></dc:creator>
            <pubDate>Tue, 28 Apr 2020 14:09:58 GMT</pubDate>
            <atom:updated>2020-07-15T15:15:24.610Z</atom:updated>
            <content:encoded><![CDATA[<p>In this post, I would like to share some useful thoughts I had as an O.R. (Operations Research) practitioner in a professional context. At my current company <a href="http://www.decisionbrain.com/">DecisionBrain</a> as in my previous life, I have been pleased to work at solving real-life problems coming from our customers.</p><p>Although each project is a journey in itself, there is a bunch of recurrent pitfalls and best practices this post is going to highlight.</p><p>You can skip the first part for those who already know what O.R is about</p><h3>What is Operations Research (OR) and how does it work?</h3><p>Operations Research (OR) is a science with solid grounds coming from mathematics (graph theory, combinatorial optimization, convex and non-convex geometry …), artificial intelligence (A*, constraint programming), local search and other metaheuristics such as evolutionary methods (Genetic Algorithms), simulated annealing or even nature-inspired methods such as ant-colony or swarm particle.</p><p>Today OR Practitioners are spread among a whole spectrum of industries. Most of them are both analysts and modelers/developers. There is not a clear distinction between modelers and developers since you need to write your model with code! However, OR developers do not only design the model but also link them to the backend application, facilitate the user experience through what-if analysis tools, work closely on the User Interface designed to provide what will facilitate the end-users life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oiomnx7sQoVVwhIn.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@timmykp?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Tim van der Kuip</a> on <a href="https://unsplash.com/@timmykp?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>OR practitioners can be somehow seen as evangelists of all these advanced techniques toolkit with one goal: assist end-users in their operations. These users are most of the time known as ‘planners’ who are in charge of creating ‘plans’. For instance, in manufacturing, planners are in charge of building various types of plans: Demand Planning (sometimes mixed with predictive machine learning), S&amp;OP (Sales &amp; Operations Planning), RCCP (Rough Cut Capacity Planning), Midterm planning, Short term planning &amp; scheduling, inventory optimization and real-time scheduling.</p><blockquote><strong><em>Advice #1</em></strong><em><br></em><strong><em>Delegate preprocess and save OR practitioner time with what they are better at doing (ie. modeling and testing the optimization.)</em></strong></blockquote><h3>Highlights, a non-exhaustive list of best practices in OR.</h3><p>Tips &amp; tricks that may help the OR practitioner to get the best of its work</p><h3>Load only necessary data</h3><p>Usually, data models are far richer than what the optimization actually deals with. There are two alternatives for this: either limit the data model that pulls the information from corporate data silos, or preprocess data to create the scenario to optimize with a restriction of the available input data.</p><h3>More models during prototyping</h3><p>One can trust an optimization model only by testing it on a set of relevant data. When data comes late, the risk of creating a math model that might not scale is hidden. That’s why we highlight the urge of getting relevant data as soon as possible (see §3.1 Data collection). With this assumption, the OR practitioner must come quickly to the point where the complexity of its model can be challenged. For instance, if the model is continuously linear for most of the constraints but one or two specific use cases that imply discretization, it is absolutely critical to retrieve or build a data set that would allow testing this feature.</p><blockquote><strong><em>Advice #2<br>Build concurrent models during the prototyping phase with a </em>modeler <em>such as OPL AMPL GAMMS rather than a General purpose language like Python, Java… .</em></strong></blockquote><blockquote><strong><em>Modelers allow much faster prototyping than usual Object Oriented languages, thanks to a dedicated language and test environments. Keep these models up-to-date even if the final code is written in another language.</em></strong></blockquote><h3>Re-use assets</h3><p>As time goes by, at <a href="http://www.decisionbrain.com/">DecisionBrain </a>we build our own libraries that may be reused when creating a new product or starting a project. It’s a good practice that avoids starting from the blank page. It also progressively adds instances to the common library and improves its robustness, which then benefits all the other projects that use it.</p><h3>More testing during prototyping</h3><p>Use all available test environments, such as CPLEX/CP-OPTIMIZER command line. This will allow the OR practitioner to focus on the solve behavior with the ability to change settings without changing the code, analyze the behavior of the engine such as engine resolved models.</p><figure><img alt="Changing the semantic of a mixed integer problem into a continuous one" src="https://cdn-images-1.medium.com/max/887/1*dlLa0Hk7xSjt8_LN26ytAQ.png" /><figcaption>Changing a MIP into corresponding LP with CPLEX command line</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*t34WCR54ZMAAN1rBoqJ6qQ.png" /><figcaption>Generating the presolved model with CPLEX command line</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*7YCKT__C3vlW2RLL_ZTnOQ.png" /><figcaption>CP-Optimizer root commands</figcaption></figure><h3>Rewrite part of the model</h3><p>Some models might be mathematically equivalent but the way some constraints are implemented can make a difference. For instance, in a linear problem, avoid getting very long expressions made of tens of thousands of variables. Sometimes, we can see dramatic improvements when switching to a “delta” model. For instance, instead of summing terms from the start of the horizon to the end, you could define a new expression that sums the terms that differ from one period to the next.</p><h3>Analyze conflicts</h3><p>High-level solvers such as CPLEX / CPO allow the OR practitioner to find a minimal set of conflicts out of the original model. This is very useful to debug mathematical models at an early stage and also detects data errors.</p><blockquote><strong><em>Advice #3<br>Learn to extract a conflict from an infeasible model and analyze it to understand the root cause. Use a command line when available to get faster hands on the conflict detection.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*96kON6pDxFtx23QKge0LWA.png" /><figcaption>Conflict refiner in CP-Optimizer</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*XRgfpBZBnJAYKAy_Mx3XoA.png" /><figcaption>Conflict refiner with CPLEX</figcaption></figure><h3>Document your data and mathematical models</h3><p>Data models change usually synchronize with the mathematical model. Both models’ descriptions shall be properly documented and maintained all along the project and then during its maintenance. Think of other resources that might jump into the project and replaces the original developer team.</p><h3>Provides a replay mechanism</h3><p>Once the application is deployed, optimization jobs are executed on customers’ premises or cloud. What if any job fails or ends up with unexpected results? This behavior needs to be analyzed by the OR developer with the very same context as when it was launched on the production environment.</p><blockquote><strong><em>Advice #4<br>Use some deployment environment such as </em></strong><a href="https://decisionbrain.com/doc-os/"><strong><em>DOC OS</em></strong></a><strong><em> to retrieve offline a snapshot of the optimization context.</em></strong></blockquote><h3>Benchmarking</h3><p>Build a separate module for non-regression optimization tests. This benchmark will increase its data set all along with the project life cycle. It will mainly measure the stability (or the improvement) of the optimization and/or business key performance indicators. Whenever the benchmark worsens quality, it shall be considered as a high priority warning that something is probably wrong in the latest code, including third-party library updates.</p><blockquote><strong><em>Advice #5<br>Build a dashboard that monitors the main benchmark statistics (number of instances solved, average gap …).</em></strong></blockquote><h3>Inject a solution</h3><p>Provide a tool and an API to load an external solution. This enables us to challenge natural wonders such as “if I swap machines of activity 1 and activity 2, I should get a better solution”. Such local improvement guesses are quite natural to express but slightly more difficult to implement: they probably imply checking several constraints in cascade. As a consequence, a checker of this new solution needs to be launched to assert first the feasibility of the solution and then recompute the solution quality indicators to prove or reject the assertion that the move actually improves the current solution.<br>Note that this checker implementation can be either:</p><ul><li><em>Deterministic:</em> we isolate a set of constraints to check (capacities, material flow balance…) and we recompute manually their satisfaction/dissatisfaction</li><li><em>Through the optimization engine:</em> the complete original solution plus the local modification suggested by the planner is injected in the solver model as additional constraints “Variable = value”. This is the most accurate checker since the first one may answer “check” letting some unchecked constraints unfeasible</li></ul><blockquote><strong><em>Advice #6<br>Mix the suggested move with a constraint that states the improvement of the objective function: this eventually ends up in a conflict and provides a proof that the move is not improving the solution.</em></strong></blockquote><h3>Share knowledge</h3><p>As an OR practitioner, you probably feel more at ease with one among the numerous OR techniques, such as Linear Programming, Constraint Programming, meta-heuristics, advanced decomposition techniques (Dantzig-Wolfe, Benders, Lagrangian relaxation), graph theory, etc …</p><p>Your expertise is part of your skillset, colleagues are likely to have complementary ones, so the first advice would be to share your views with colleagues, or online through forums such as <a href="https://or.stackexchange.com/">OR-exchange</a> for general purposes, <a href="https://community.ibm.com/community/user/datascience/communities/community-home/digestviewer?tab=digestviewer&amp;CommunityKey=ab7de0fd-6f43-47a9-8261-33578a231bb7">Ilog</a> forums, and <a href="https://developer.ibm.com/docloud/blog/videos/">resources </a>for the CPLEX stack and other blogs such as <a href="https://www.linkedin.com/pulse/how-opl-alex-fleischer/">OPL how to</a>, <a href="http://yetanothermathprogrammingconsultant.blogspot.com/">yet another math programming consultant</a>, Paul Rubin’s <a href="https://orinanobworld.blogspot.com/">OR in an OB blog</a>, etc … In all cases, online interactive resources do not prevent you from reading your solver documentation. For instance, OPL IDE (Integrated Development Environment) provides a very fancy interface on the catalog of CPLEX / CPO parameters, much easier to start learning before digging in the rich standard documentation.</p><p>At <a href="http://www.decisionbrain.com/">DecisionBrain</a>, we hold regular Optim seminars, with no limitation in the choice of topics. We may, for instance, explain the optimization problem to the colleagues in order to brainstorm, share experiences with others on similar problems, extract from a different domain an idea that could fit the current needs. Other types of seminars are illustrating more technical aspects, such as:</p><ul><li>Example of modelers: language such as Python or OPL allows us to prototype very rapidly optimization models. Provide tutorials to let OR practitioners gain some knowledge and code concurrent models during a Proof of concept phase. With modeler, you can very easily share a tiny piece of code to illustrate a specific constraint and run it against mocked data (flat file, excel)</li><li>Tutorial on command lines for CPLEX and CPO</li><li>Explore new open-source or commercial frameworks. OR community provides tailored frameworks. Examples:</li><li><a href="https://neos-server.org/">NEOS </a>infrastructure provides a good entry point to browse a solver catalog and submit instances through a web interface.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*veD5Jbqww6k5Uul4" /><figcaption><a href="https://neos-guide.org/content/optimization-taxonomy">Optimization Taxonomy</a></figcaption></figure><p><a href="https://neos-guide.org/content/optimization-taxonomy">Optimization Taxonomy</a></p><ul><li><a href="https://www.optaplanner.org/">Optaplanner</a> has a good reputation for vehicle routing but can also be used in timetabling.</li><li><a href="https://oscarlib.readthedocs.io/en/latest/">OSCAR </a>is a scala framework that enables modeling a mixed linear problem, a constraint programming one, or a constraint-based local search.</li><li>Publish software libraries, such as <a href="https://github.com/decisionbrain/cplex-scala/">cplex-scala </a>(an open-source Scala library that combines functional programming, object-oriented programming, mathematical programming, and constraint programming), to help the community benefit from some of the work we do internally.</li><li>Attend OR oriented practice conferences (INFORMS / EURO / CPAIOR / ROADEF…). A good place to present our work to the community, look at any other progress in the community, from both the academic point of view as a software.</li><li>Take part in challenges: Kaggle competitions, EURO-ROADEF <a href="http://www.roadef.org/challenge/">challenge</a>, IBM research <a href="http://www.research.ibm.com/haifa/ponderthis/index.shtml">Ponder This</a>.</li></ul><blockquote><strong><em>Advice #7:<br></em></strong><em>Do R&amp;D in small teams. Research papers survey , softwares self-learning, conferences , etc … provide some openings to the OR guys,but it’s worth being at least two to get out efficiently out of the comfort zone : alternative paths require a certain amount of investment and energy, sometimes at the cost of short term management expectations. Feeling lonely in an arid landscape can be kind of demotivating whereas jumping over the obstacles with your buddy is a nice and rewarding experience.</em></blockquote><h3>Conclusion</h3><p>At <a href="https://decisionbrain.com/">DecisionBrain </a>and in various places all over the world, the industry is consuming more and more of the techniques known as Operations Research (OR) to efficiently solve various organization challenges under resource constraints.</p><p>OR practitioners can efficiently play an important role in making very advanced mathematical techniques available for the benefit of organizations and planners.</p><blockquote><em>We hope that our various advices, tips and tricks will be valuable for the success of your next OR project!</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=224b2b6aaa7b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/decisionbrain/tips-tricks-in-or-practice-224b2b6aaa7b">Tips &amp; Tricks in OR Practice</a> was originally published in <a href="https://medium.com/decisionbrain">Decision Optimization Center</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>