Returns and/or sets an optimized parameter. It must be a decimal number.
Optimized parameters are essential in artificial intelligence when you create an expert system, assigning scores to data for example.

They correspond to the coordinates of an extremum of a cost function.

This function works with optimizeConfiguredParameters. You start by defining for example a bounded domain, an initial point and an initial step to the parameter. Initially only the initial value is used.

Then when optimizeConfiguredParameters is called the parameter will be manipulated according to your configuration in order to minimize (or maximize) the cost function.

You will then retrieve the parameter in your script with its optimized value.

For the configuration, note that it is mandatory to set a minimum and a maximum and strongly advised to set an initial value. The setting of the step is also a plus which helps the optimization algorithm.

If you do not put these arguments, the value of the parameter is simply returned by the function without modifying its configuration.

If you call this function without having configured it with an initial value, the first call will return a null value.

To use optimizeConfiguredParameters, all optimizedParameter functions must be called once to initialize the system (we must know in advance the total number of parameters to optimize). So don't hesitate to create a separate script that simply calls all these functions once. This avoids that at the first iteration some optimizedParameters are not called because they are for example in if blocks which are not executed.

### See also

optimizeConfiguredParameters## Parameters

### parameterIdentifier

### _minimum (optional)

### _maximum (optional)

### _initial (optional)

It is used when no more relevant value can be returned and to initiate the optimization algorithm.

Think of playing with this value during the optimization to avoid being sucked in by local extremums (a classic problem in optimization).

### _initialStep (optional)

### _idOptimSystem (optional)

### _forceOptimizedValue (optional)

`if(equals(optimizedParameter("my_factor"), 0)) optimizedParameter("my_factor", null, null, null, null, null, 0.01)`