Skip to content

Commit

Permalink
Update POEM_094.md
Browse files Browse the repository at this point in the history
  • Loading branch information
robfalck authored Nov 8, 2023
1 parent bb3dd4e commit d463bff
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions POEM_094.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,24 @@ Return the current feasibility tolerance for the optimizer. This provides a cons

Get the lagrange multipliers for optimizers which provide them, in an optimizer-independent way. This will be useful for evaluating post-optimality sensititivity.

## Autoscale API

Autoscaler will provide a `scale` method with a signaiture

```
def scale(problem, desvar_scaling, constraint_scaling, objective_scaling)
```

Problem provides access to both the model and the driver, so we can interrogate things like optimizer settings.
The other arguments are output dictionaries each keyed by the desvar, constraint, or objective name.
For each key in these dictionaries, the user can provide the scaler, adder, ref, or ref0.

```
# scale x by dividing by it's initial value
x_val = problem.get_val('x')
desvar_scaling['x']['scaler'] = 1 / x_val
```

## Proposed Initial Autoscalers

### `SimpleAutoscaler`
Expand Down

0 comments on commit d463bff

Please sign in to comment.