3.1. Supported platforms

At present, MindOpt supports the following operating systems and programming languages:

Supported operating systems

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

Supported programming languages

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

<MDOHOME>/<VERSION>/<PLATFORM>/include

Header files

<MDOHOME>/<VERSION>/<PLATFORM>/bin

Executable files

<MDOHOME>/<VERSION>/<PLATFORM>/lib

Link library files

<MDOHOME>/<VERSION>/examples/ampl

AMPL example files in .nl format

<MDOHOME>/<VERSION>/examples/C

Example files related to C

<MDOHOME>/<VERSION>/examples/CPP

Example files related to C++

<MDOHOME>/<VERSION>/examples/data

LP/MPS example files

<MDOHOME>/<VERSION>/examples/pulp

Example files related to PuLP

<MDOHOME>/<VERSION>/examples/pyomo

Example files related to Pyomo

<MDOHOME>/<VERSION>/examples/python

Example files related to Python

<MDOHOME>/<VERSION>/doc

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:

Users who only need the Python package can refer to pip install MindOpt Python package to install quickly.

To help you quickly try 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.

  1. To install the solver only for the current user, double-click the installation package and finish installation as prompted.

  2. 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 and Path 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:

  1. Decompress the package to the target folder.

  2. In Control Panel, search for and select System.

  3. Click Advanced system settings.

  4. 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.

  5. 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.

  1. Click OK to close all windows.

3.4.2. Installation on Linux

  1. 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.

  2. 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
  1. Reopen the terminal commandline, or use the source command to forcibly reload the .bashrc file, which is read-only at logon. Then, enter the command mindopt in the terminal commandline to verify whether the installation was successful.

source ~/.bashrc
mindopt

Note

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

  1. 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.

  2. 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
  1. Reopen the terminal commandline, or use the source command to forcibly reload the .bashrc file, which is read-only at logon. Then, enter the command mindopt in the terminal commandline to verify whether the installation was successful.

source ~/.bashrc
mindopt

Note

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