4.1 What’s in the box¶
The MOSEK OptServer is shipped as part of the MOSEK Optimization Suite. It is located in the folder
MSKHOME is the folder MOSEK has been installed in.
The OptServer files are organized in the following folders:
OptServer only requires Python 3+ to run the configuration script. It has been tested only on Linux 64 bit.
To install the OptServer you need to execute the install_MosekServer located in the
MSKDIR/opt-server/ folder. A set of options can be provided to customize the installation:
Set up the server to run directly in the unpacked distro directory
Install in /usr
Install in DIR
This directory contains valid
Password for initial user admin
Configure server to listen to port
Disable GUI and API
Enable fetching submitted data/problem files
Enable submitting without credentials
If the installation succeeds, you can then run the OptServer as described in Section 4.4.
4.4 Running the Server¶
The OptServer can be started by running the executable MosekServer from the
OPT_SERVER_HOME/bin folder, for instance
With no command line the server runs using the configurations setup during the installation process, see Section 4.1. To override the configuration set in the installation, several options can be passed to the server.
Options can be prefixed by a single or a dobule dash, i.e. either
Some examples follow.
Switching debug mode on
If the server is not working a expected, it may be useful to turn on debugging:
Change the port
Changing the port is a pretty standard step.
4.5 OptServer Options¶
The complete list of options follow.
key.pemin this directory
=$basedir/script/solve.py $workdir $task¶
Specify configuration file (JSON)
Turn on debugging info (turned off by default). This is a boolean option.
Enable anonymous submitting (turned off by default).
Enable fetching submitted tasks (turned off by default).
Enable extended programming API
Enable user interface (turned off by default).
Server host name
Log file name
Login expiry time in seconds
Port to listen to
Directory with files served under