sigopt / sigopt-matlab

Run SigOpt experiments with ease with the comfort of this MATLAB toolbox.
MIT License
0 stars 1 forks source link

SigOpt MATLAB API

This is the SigOpt MATLAB API client. Use this to natively call SigOpt API endpoints to create experiments and report data.

For more help getting started with SigOpt and MATLAB, check out the docs.

Take a look in sigopt_example.m for example usage.

Getting Started

Install Python

Our MATLAB API Client is written on top of our Python API Client. Below are instructions for installing Python and configuring with MATLAB.

Install Python on MATLAB workstation

Open MATLAB and confirm that MATLAB is correctly configured with Python

Install the SigOpt Python API Client

Once you've completed installing Python in the previous step, install the SigOpt Python API Client. You will need version 3.0.0 or higher

Install the SigOpt MATLAB Client

Clone this repository:

git clone git@github.com:sigopt/sigopt-matlab.git

Set the path in MATLAB to include the sigopt-matlab folder.

Authentication

Sign up for an account at https://sigopt.com. In order to use the API, you'll need your API token from the API tokens page.

Open the sigopt_example.m script and update it to include your SigOpt API token.

Run the Example Code

Once you've completed the authentication in the previous step, you're ready to run the example code. Within MATLAB, run the sigopt_example.m script:

run("sigopt_example.m")

View your experiment's progress!

Now make a copy of sigopt_example.m, rename and customize it to make your own simulations!

Troubleshooting

Make sure the path to the sigopt python package is in py.sys.path:

For more information on integrating Python with Matlab, visit the Matlab Python docs.

General Information

Repository: 2016-2023