Skip to main content

Gurobi's interactive mining example

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • Eli Towle
    • Gurobi Staff

    Are you referring to the example at https://github.com/EmilienDupont/openPitMining? This isn't supported by Gurobi anymore.

    Anyways, I got the example to work by updating the source and usage of the MathJax library. I.e., replace lines 3-13 of \( \texttt{index.html} \) with

    <script>
      MathJax = {
        tex: {
          inlineMath: [['$', '$'], ['\\(', '\\)']]
        }
      };
    </script>
    <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
    <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>

    Note that \( \texttt{index.html} \) tries to load http://examples.gurobi.com/base.css, which is no longer available. Thus, some styling (like code formatting) won't work properly.

    0
  • furkan kasa
    • Gurobi-versary
    • First Comment
    • First Question

    Hi Eli;

    Now it worked perfectly. Thank you so much.

    Regards.

     

    0

Post is closed for comments.