Hosting an Opt-Server

Follow this guide to get your Opt-Server up and running.

PREREQUISITES. In order to host a PIFOP Optimization Server, you will need:

  • A PIFOP account with optimization server hosting enabled.
  • A Linux 64bit based system. Currently, we use Ubuntu 16.04 for testing, which is based on Linux 4.4. Any Linux distribution based on Linux version 4.4 or greater should be fine.

The PIFOP Optimization Server does not come with any solver or modeling language interpreter. Whatever optimization tool you want your optimization server to support (ampl, gams, oplrun, etc), you need to have them installed in your system.

STEP 1. Download the PIFOP Optimization Server by clicking here, or use the command line:

> wget https://pifop.com/download/opt-server.zip


STEP 2. Extract it wherever you want, enter the extracted directory and start the Opt-Server.

> unzip opt-server.zip
> cd opt-server
> ./opt-server --start


STEP 3. The first time you run the server you will be asked to give it a name.

> ./opt-server --start
Creating configuration file "config.json". (press ctrl+c to exit)
Give your server a name: My Server


STEP 4. After your server connects with our central server, sign-in with your PIFOP account username and password.

Sign in with your PIFOP account:
Username or email: username
Password         :
Do you want to be remembered? (Y/n): y


STEP 5. After successful login, you should see a message saying that your server is now online, but that you still need to configure the commands supported by the Opt-Server.

Server "My Server" is now online.
You still have to configure the commands that this server can execute.


STEP 6. Configure Opt-Server Commands.

DONE. At this point, you should be able to select your Opt-Server from within the PIFOP IDE and use it to run whatever command(s) you have configured. If you would like to allow other users to use your Opt-Server, read this first. Then proceed to the Manage Opt-Server Users guide.