3.1. Supported Platform

MindOpt currently provides support for the following operating systems and languages:

Supported operating systems

Operating systems

Requirements

Windows

Windows 10 or higher

Linux

GLIBC 2.17 or higher

macOS

X86 OSX 10.9 or higher, ARM OSX 12.0 or higher

Supported languages

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

Python

Python 3.6 or higher

Java

JDK 1.8 or higher

3.2. Installer Download

Installer of MindOpt can be found via:

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. Access at: MindOpt Studio.

  • We also provide several linear programming (LP) application tutorials and source codes to help users quickly master the usage of MindOpt here.

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

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

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

  1. During the installation process with .msi file, the environment variables MINDOPT_HOME and PATH 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 variable MINDOPT_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 (or Path) under System Variables and click Edit. If the environment variable PATH does not exist, click New to create a variable with name PATH.

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

  1. Enter the command mindopt in cmd to verify if the installation is successful:

mindopt

3.3.2. Linux Platform

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

  2. 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 1.0.0:

bash mindopt-install-linux64x86-1.0.0.sh
  1. 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>/1.0.0
export PATH="<MDOHOME>/1.0.0/<PLATFORM>/bin:$PATH"
export DYLD_LIBRARY_PATH="<MDOHOME>/1.0.0/<PLATFORM>/lib:$DYLD_LIBRARY_PATH"

Exit nano and save modifications. Execute the following source command or reopen the terminal after the environment variable settings are manually updated.

source ~/.mdo_profile
  1. Enter the command mindopt to verify if the installation is successful:

mindopt

Note

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. OSX Platform

  1. Follow this instruction to download OSX 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.

  2. Run the downloaded .sh script in the terminal and follow the instructions for installation. For example, execute the following command for OSX 64-bit/x86 version 1.0.0:

bash mindopt-install-osx64x86-1.0.0.sh
  1. 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>/1.0.0
export PATH="<MDOHOME>/1.0.0/<PLATFORM>/bin:$PATH"
export DYLD_LIBRARY_PATH="<MDOHOME>/1.0.0/<PLATFORM>/lib:$DYLD_LIBRARY_PATH"

Exit nano and save modifications. Execute the following source command or reopen the terminal after the environment variable settings are manually updated.

source ~/.mdo_profile
  1. Enter the command mindopt to verify if the installation is successful:

mindopt

Note

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

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

Header files

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

Library files

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

Executable files

<MDOHOME>/<VERSION>/examples/ampl

AMPL .NL example files

<MDOHOME>/<VERSION>/examples/c

C example files

<MDOHOME>/<VERSION>/examples/cpp

C++ example files

<MDOHOME>/<VERSION>/examples/data

LP/MPS example files

<MDOHOME>/<VERSION>/examples/java

Java example files

<MDOHOME>/<VERSION>/examples/python

Python example files

<MDOHOME>/<VERSION>/docs

Documentation files