mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 01:18:52 -06:00
Update
This commit is contained in:
@@ -269,5 +269,5 @@
|
||||
|
||||
<!--
|
||||
MkDocs version : 1.0.4
|
||||
Build Date UTC : 2020-08-29 22:52:03
|
||||
Build Date UTC : 2020-08-29 23:08:22
|
||||
-->
|
||||
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -151,15 +151,9 @@
|
||||
|
||||
<h1 id="usage">Usage</h1>
|
||||
<h3 id="installation">Installation</h3>
|
||||
<p>MIPLearn is mainly written in Python, with some components written in Julia. For this
|
||||
reason, both Python 3.6+ and Julia 1.3+ are required. A mixed-integer solver is also required, and
|
||||
its Python bindings must be properly installed. Supported solvers are CPLEX and
|
||||
Gurobi. Optimization problems currently need to be specified in the Pyomo modeling language.
|
||||
A JuMP interface to the package is currently under development.</p>
|
||||
<p>To install MIPLearn, run the following commands: </p>
|
||||
<pre><code class="bash">git clone https://github.com/ANL-CEEESA/MIPLearn.git
|
||||
cd MIPLearn
|
||||
make install
|
||||
<p>In these docs, we describe the Python/Pyomo version of the package, although a <a href="https://github.com/ANL-CEEESA/MIPLearn.jl">Julia/JuMP version</a> is also available. A mixed-integer solver is also required and its Python bindings must be properly installed. Supported solvers are currently CPLEX and Gurobi.</p>
|
||||
<p>To install MIPLearn, run: </p>
|
||||
<pre><code class="bash">pip3 install miplearn
|
||||
</code></pre>
|
||||
|
||||
<p>After installation, the package <code>miplearn</code> should become available to Python. It can be imported
|
||||
@@ -167,10 +161,6 @@ as follows:</p>
|
||||
<pre><code class="python">import miplearn
|
||||
</code></pre>
|
||||
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Note</p>
|
||||
<p>To install MIPLearn in another Python environment, switch to that environment before running <code>make install</code>. To install the package in development mode, run <code>make develop</code> instead.</p>
|
||||
</div>
|
||||
<h3 id="using-learningsolver">Using <code>LearningSolver</code></h3>
|
||||
<p>The main class provided by this package is <code>LearningSolver</code>, a learning-enhanced MIP solver which uses information from previously solved instances to accelerate the solution of new instances. The following example shows its basic usage:</p>
|
||||
<pre><code class="python">from miplearn import LearningSolver
|
||||
|
||||
Reference in New Issue
Block a user