Installation for Python
Python Setup
If not already done, install a Python environment on your computer. For example, use the Python package and project manager uv:
Install uv by following their installation instructions.
Install python with
uv python install.Create a python environment, e.g. with
uv venv my-jcm-env, and activate it.
Install the
jcmoptimizerpackage into your local python environment.Depending on your python environment, run
pip install jcmoptimizeroruv pip install jcmoptimizer.
Using the Cloud Infrastructure
The easiest and recommended way to use JCMoptimizer is to use our cloud infrastructure to run servers and connect via a Python client. Here are the steps to get you going:
Create a user account on https://optimizer.jcmwave.com. Consider to add a two-factor authentication for increased security of your data.
Open the cloud interface and on the left click on Tokens.
Press Add token+ to create a new access token.
Copy the token and store it somewhere safe on your computer. You can put the token in the global configuration file of
jcmoptimizer. That is, open or create the file.jcmoptimizer.conf.ymlin your home directory and enter a linetoken: <my token string>
Running a self-hosted JCMoptimizer
If you have a current license of our software package JCMsuite, you can run JCMoptimizer on your own computer infrastructure.
Download and run the JCMoptimizer installer from here.
During the installation, you can create or update the configuration file
.jcmoptimizer.conf.ymlin your home directory. If you want to this manually, the following two keys need to be set:- license_dir:
In order to run JCMoptimizer locally, an activated version of JCMsuite needs to be installed. You need to specify the path to the license configuration of the JCMsuite isntallation, for example
license_dir: '/path/to/JCMsuite/license/'
- jcm_optimizer_dir:
To start a JCMoptimizer server locally, the
jcmoptimizerPython package needs to know the installation directoryjcm_optimizer_dir:jcm_optimizer_dir: '/path/to/JCMoptimizer/'