3.1. Supported platforms¶
At present, MindOpt supports the following operating systems and programming languages:
Operating system |
Specification |
---|---|
Windows |
Windows 10 |
Linux |
Glibc for x86_64 >= 2.12, for aarch64 >= 2.08 |
OSX |
OSX for x86_64 >= 10.9, for arm64 >= 12.0 |
Language |
Recommended compiler |
---|---|
C |
Visual Studio 2017 or later, GCC 4.5 or later, and Clang++ |
C++ |
Visual Studio 2017 or later, GCC 4.5 or later, and Clang++ |
Python |
Anaconda Python 3.6, 3.7, 3.8, 3.9, and 3.10 |
Java |
Please refer to the online java package updates |
3.2. Folder structure¶
The folder structure in MindOpt is as follows:
Path |
Description |
---|---|
|
Header files |
|
Executable files |
|
Link library files |
|
AMPL example files in .nl format |
|
Example files related to C |
|
Example files related to C++ |
|
LP/MPS example files |
|
Example files related to PuLP |
|
Example files related to Pyomo |
|
Example files related to Python |
|
Document-related files |
The API of Java language is supported in maven repository. For the calling method, please refer to the example in Java package , which is not included in this download package.
<MDOHOME>
, <VERSION>
, and <PLATFORM>
are the installation directory, version number, and operating system of MindOpt, respectively. For example:
OSX: /Users/homename/mindopt/0.19.0/osx64-x86
Linux: /home/mindopt/0.19.0/linux64-x86
Windows: C:\mindopt\0.19.0\win64-x86
3.3. Download MindOpt¶
- The MindOpt software of local version can be downloaded on:
You can also search for “MindOpt” on aliyun.com (Chinese site) find our download address.
Users who only need the Python package can refer to pip install MindOpt Python package to install quickly.
- To help you quickly try MindOpt:
We embed the latest version of MindOpt in the Notebook container in MindOpt online platform . You can use it by simply opening the browser and no installation is required. Access address: https://opt.aliyun.com/#/platform/overview .
We have opened a free C/S edition on Tianchi platform of Alibaba Cloud in 2021. You can download the client SDK to the CloudShell of Tianchi platform. To request for a free authorization token, see https://tianchi.aliyun.com/mindopt/authrize (need to login with an Alibaba Cloud account).
6 modeling and optimization examples and 17 source codes can help you quickly get the usage skills of MindOpt.
- For enterprise users:
MindOpt provides the special customized version or the local version and C/S version. For more information, please Contact US.
3.4. Installation instructions¶
This section describes how to install the MindOpt package on different operating systems. During installation, replace <MDOHOME>
with the installation directory of MindOpt on your own computer.
3.4.1. Installation on Windows¶
Download Windows 64-bit/x86 MindOpt Release (win64-x86-0.25.0) from Download MindOpt . If your desired SDK is not available, contact us by referring to Contact us.
After you obtain the .msi
installation package, double-click it and finish installation as prompted.
Since V0.19.x, you can select or deselect the “Install MindOpt for all users.” checkbox on the installation interface to install the solver for all users or only for the current user.
To install the solver only for the current user, double-click the installation package and finish installation as prompted.
To install the solver for all users, the administrator permission is required. Press Shift and right-click the installation package at the same time, choose to install or run as the administrator, and finish installation as prompted. If the system prompts that you do not have the permission, you can find the command prompt. Right-click “Run as administrator” to open the command prompt, switch to the folder where the installation package is located, double-click
installation package name.msi
, and finish installation as prompted.Note
The environment variables
MINDOPT_HOME
andPath
have been added to Windows, so you do not need to manually add them. If multiple versions of MindOpt are installed, you can modify MINDOPT_HOME to change the version that takes effect.
If you want to install a special version, you may get a .zip
package. To change the effective version of multiple versions, perform the following steps to set environment variables:
Decompress the package to the target folder.
In Control Panel, search for and select System.
Click Advanced system settings.
Click Environment Variables. In System variables, find the Path environment variable and select it. Click Edit. If the Path environment variable does not exist, click New to create one.
In the Edit System Variable (or New System Variable) window, add the following paths:
<MDOHOME>\<VERSION>\<PLATFORM>\bin\ <MDOHOME>\<VERSION>\<PLATFORM>\lib\
<MDOHOME>
,<VERSION>
, and<PLATFORM>
are the installation directory, version number, and operating system of MindOpt, respectively.
Click OK to close all windows.
3.4.2. Installation on Linux¶
Download Linux 64-bit/x86 MindOpt Release (linux64-x86-0.25.0) from Download MindOpt . If your desired SDK is not available, contact us by referring to Contact us.
The
.sh
package that you have downloaded is already decompressed. In the terminal commandline, enter the following command to install.
bash mindopt-install-linux-x.xx.x.sh
Reopen the terminal commandline, or use the
source
command to forcibly reload the.bashrc
file, which is read-only at logon. Then, enter the commandmindopt
in the terminal commandline to verify whether the installation was successful.
source ~/.bashrc mindoptNote
You may need to change the permissions on the executable file as follows:
chmod u+x <MDOHOME>/<VERSION>/<PLATFORM>/bin/mindopt
<MDOHOME>
,<VERSION>
, and<PLATFORM>
are the installation directory, version number, and operating system of MindOpt, respectively.
If you want to install a special version, you may get a .zip
package. To change the effective version of multiple versions, please decompress the package to the MindOpt Home folder, and set environment variables to the corresponding folder.
nano ~/.mdo_profile source ~/.mdo_profile
3.4.3. Installation on OSX¶
Download OSX 64-bit/x86 MindOpt Release (osx64-x86-0.25.0) from Download MindOpt . If your desired SDK is not available, contact us by referring to Contact us.
The
.sh
package that you have downloaded is already decompressed. In the terminal commandline, enter the following command to install.
bash mindopt-install-osx-x.xx.x.sh
Reopen the terminal commandline, or use the
source
command to forcibly reload the.bashrc
file, which is read-only at logon. Then, enter the commandmindopt
in the terminal commandline to verify whether the installation was successful.
source ~/.bashrc mindoptNote
You may need to change the permissions on the executable file as follows:
chmod u+x <MDOHOME>/<VERSION>/<PLATFORM>/bin/mindopt
<MDOHOME>
,<VERSION>
, and<PLATFORM>
are the installation directory, version number, and operating system of MindOpt, respectively.The program may be prohibited from running by the system, you can set to allowed in the security and privacy of the system.
If you want to install a special version, you may get a .zip
package. To change the effective version of multiple versions, please decompress the package to the MindOpt Home folder, and set environment variables to the corresponding folder.
nano ~/.mdo_profile source ~/.mdo_profile