Gurobi's interactive mining example
回答済みHello;
I've tried to run Gurobi's interactive open-pit mining example which was in Gurobi's website before. Now I've found it in Github but can not run it properly because it's old and in python 2.7. I just want to use it in my doctorate presentation. I've tried almost every step, everything is fine when the page loaded except "Mine Away" button which is calculating the optimization code.
I hope can find a solution. Thanks.
Regards.
Furkan
-
正式なコメント
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?. -
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 -
Hi Eli;
Now it worked perfectly. Thank you so much.
Regards.
0
投稿コメントは受け付けていません。
コメント
3件のコメント