# Optimizer options commands

The optimizer options can be set at either the study level and also overwritten at optimize step level. Since a study is an Akamas resource this can be done by using the update command described on the [Resource management commands](/akamas-docs/3.1.2/akamas-reference/cli-reference/cli-reference-2.md) page.

This page provides a quick reference for the update commands that can be used to dynamically change the options that drive how the Akamas optimizer works for live optimization studies.

### Updating the online mode

The following command can be used to update the online mode of live optimization studies:

```bash
akamas update study <STUDY_NAME_OR_ID> --online-mode [RECOMMEND|FULLY_AUTONOMOUS]
```

### Updating the safety mode

The following command can be used to update the safety mode of live optimization studies:

```bash
akamas update study <STUDY_NAME_OR_ID> --safety [GLOBAL|LOCAL]
```

### Updating the workload strategy

The following command can be used to update the workload strategy of live optimization studies:

```bash
akamas update study <STUDY_NAME_OR_ID> --workload-strategy [MAXIMIN|MEDIAN|LAST|MOST_VIOLATED]
```

### Updating the safety factor

The following command can be used to update the safety factor of live optimization studies:

```bash
akamas update study <STUDY_NAME_OR_ID> --safety-factor <VALUE>
```

### Updating the exploration factor

The following command can be used to update the exploration factor of live optimization studies:

```bash
akamas update study <STUDY_NAME_OR_ID> --exploration-factor <VALUE>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.akamas.io/akamas-docs/3.1.2/akamas-reference/cli-reference/optimizer-options-commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
