3.1. Supported Platforms¶
MindOpt currently provides support for the following operating systems and languages:
Operating systems |
Requirements |
---|---|
Windows |
Windows 10 or higher |
Linux |
GLIBC 2.17 or higher |
macOS |
10.9 or higher for x64, 12.0 or higher for arm64 |
Languages |
Recommended compilers |
---|---|
C |
Visual Studio 2019 or higher, GCC 6.5 or higher, Clang 13.0 or higher |
C++ |
Visual Studio 2019 or higher, G++ 6.5 or higher, Clang++ 13.0 or higher |
C# |
.NET SDK 8.0 or higher |
Python |
Python 3.6 or higher |
Java |
JDK 1.8 or higher |
MATLAB |
MATLAB R2021b or higher |
3.2. Installer Download¶
Installer of MindOpt can be found through this link.
Python users can use pip
for quick installation. Please refer to Method 1: Install via pip install (recommended) for instructions.
- Additionally, for users to quickly experience and learn MindOpt:
A Cloud Optimization Platform with pre-installed MindOpt, which can be directly used within the web browser. Please Contact Us for details.
We also provide several linear programming (LP) application tutorials and source codes to help users quickly master the usage of MindOpt. Please Contact Us for details.
Note
For enterprise users, we can also provide customized versions of the standalone and C/S version. Please Contact Us for details.
3.3. Installation Instructions¶
This section provides instructions for installing MindOpt (standalone version) on different operating systems.
In the following, <MDOHOME>
, <VERSION>
, and <PLATFORM>
correspond to the installation directory, version number, and operating system of MindOpt, respectively.
3.3.1. Windows Platform¶
Follow this instruction to download Windows 64-bit/x86 distribution of MindOpt. If the version you need is not available online, please Contact Us to obtain it.
Double-click the installation package in the format of
.msi
and follow the instructions to complete the installation. Currently, MindOpt supports two installation modes: Install for current user only and Install for all users.
Note
Install for all users mode requires administrator permissions. Press Win+S
to open the search box and enter cmd. Right-click and Run as administrator to open it. Navigate to the .msi
file through the command line and follow the instructions to complete the installation.
During the installation process with
.msi
file, the environment variablesMINDOPT_HOME
andPATH
will be automatically added, so there’s no need to add them manually.
If you are installing using the
.zip
format file (e.g., installing a customized version), or have installed multiple versions, you can modify the path pointed to by the environment variableMINDOPT_HOME
to specify the active version. Please refer to the following instructions for setting the environment variables:
Extract the files from the
.zip
package to the folder of your choice.Search and select System in the Control Panel.
Click on Advanced System Settings.
Click on Environment Variables, select the environment variable
PATH
(orPath
) under System Variables and click Edit. If the environment variablePATH
does not exist, click New to create a variable with namePATH
.In the Edit System Variable (or New System Variable) window, add the following paths:
<MDOHOME>\<VERSION>\<PLATFORM>\bin\ <MDOHOME>\<VERSION>\<PLATFORM>\lib\To set environment variables in Windows 11, users may press
Win+S
and search “environment variable” in the search box.
Enter the command
mindopt
in cmd to verify if the installation is successful:
mindopt
3.3.2. Linux Platform¶
Follow this instruction to download Linux 64-bit/x86 distribution of MindOpt. For ARM architecture based devices, please download the corresponding installation package for ARM architecture. If the version you need is not available online, please Contact Us to obtain it.
Run the downloaded
.sh
script in the terminal and follow the instructions to install. For example, execute the following command for Linux 64-bit/x86 version 2.0.0:
bash mindopt-install-linux64x86-2.0.0.sh
The installation process through the
.sh
script will automatically add environment variables, so there’s no need to add them manually.
If you are installing using the
.zip
format file (e.g., installing a customized version), or have installed multiple versions, you can specify the active version by modifying the path pointed by the environment variable using the following command:nano ~/.mdo_profile
Set the environment variables in file
~/.mdo_profile
as follows:export MINDOPT_HOME=<MDOHOME>/2.0.0 export PATH="<MDOHOME>/2.0.0/<PLATFORM>/bin:$PATH" export DYLD_LIBRARY_PATH="<MDOHOME>/2.0.0/<PLATFORM>/lib:$DYLD_LIBRARY_PATH"Exit
nano
and save modifications. Execute the followingsource
command or reopen the terminal after the environment variable settings are manually updated.source ~/.mdo_profile
Enter the command
mindopt
to verify if the installation is successful:
mindoptNote
Users may need to change the permissions of the executable file using the following command:
chmod u+x <MDOHOME>/<VERSION>/<PLATFORM>/bin/mindopt
3.3.3. macOS Platform¶
Follow this instruction to download macOS 64-bit distribution of MindOpt. For ARM architecture based devices, please download the corresponding installation package for ARM architecture. If the version you need is not available online, please Contact Us to obtain it.
Run the downloaded
.sh
script in the terminal and follow the instructions for installation. For example, execute the following command for macOS 64-bit version 2.0.0:
bash mindopt-install-osx64x86-2.0.0.sh
During the installation process with
.sh
script, environment variables will be automatically added, so there’s no need to add them manually.
If you are installing using the
.zip
format file (e.g., installing a customized version), or have installed multiple versions, you can specify the active version by modifying the path pointed by the environment variable using the following command:nano ~/.mdo_profile
Set the environment variables in file
~/.mdo_profile
as follows:export MINDOPT_HOME=<MDOHOME>/2.0.0 export PATH="<MDOHOME>/2.0.0/<PLATFORM>/bin:$PATH" export DYLD_LIBRARY_PATH="<MDOHOME>/2.0.0/<PLATFORM>/lib:$DYLD_LIBRARY_PATH"Exit
nano
and save modifications. Execute the followingsource
command or reopen the terminal after the environment variable settings are manually updated.source ~/.mdo_profile
Enter the command
mindopt
to verify if the installation is successful:
mindoptNote
You may need to change the permissions of the executable file using the following command:
chmod u+x <MDOHOME>/<VERSION>/<PLATFORM>/bin/mindopt
3.4. Directory Structure¶
After a successful installation of MindOpt, the directory structure is as follows:
Path |
Description |
---|---|
|
Header files |
|
Library files |
|
Executable files |
|
AMPL .NL example files |
|
C example files |
|
C++ example files |
|
CSharp example files |
|
LP/MPS example files |
|
Java example files |
|
JuMP example files |
|
MATLAB example files |
|
PuLP example files |
|
Pyomo example files |
|
Python example files |
|
Documentation files |