# \[AIAS-02] Define the optimization steps

Finally, you can define the steps the study will go through.

Typically, an Akamas study is composed of:

* A `Baseline` step, which is used to assess the system performance in the initial configuration (e.g. the settings currently in place for your system)
* An `Optimize` step, which is used to execute the actual AI-driven performance optimization

The Akamas study wizard already creates these two steps for you.

In this study, we simply configure the baseline configuration by setting `jvm_maxHeapSize` to **1024MB**:

<figure><img src="/files/mCsFMX9M2mSqrvloOC63" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Izyt0NeiaaH1m6GpBZfL" alt=""><figcaption></figcaption></figure>

Then click on the Optimize step in the left panel to specify the optimization configuration.

For now, simply set the number of experiments to execute to 30:

<figure><img src="/files/Z65RLcjdfPcJhW9P3AMo" alt=""><figcaption></figcaption></figure>

Finally click on **Save**. You have now created your first study and you are ready to start the optimization!

You can review your study in the **Definition** tab or go and launch the study by pressing the **Start** button:

<figure><img src="/files/g12ghWAZTp7zTEnaPqtC" alt=""><figcaption></figcaption></figure>


---

# 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/quick-guides/quick-guides-akamas-in-a-sandbox/aias-02-guide-create-a-study-to-optimize-java-performance-using-the-akamas-ui/aias-02-define-the-optimization-steps.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.
