Skip to content

Commit

Permalink
Refactoring of the Uniformgrid (#397)
Browse files Browse the repository at this point in the history
* improve naming

* clarifying discretization

* refactoring abstraction building

* fixing retro-compatible bug

* adding docstrings

* jformat
  • Loading branch information
johnaoga authored Jan 2, 2025
1 parent bbf5324 commit b0f7cd9
Show file tree
Hide file tree
Showing 3 changed files with 264 additions and 95 deletions.
1 change: 1 addition & 0 deletions docs/src/examples/solvers/DC-DC converter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ optimizer = MOI.instantiate(AB.UniformGridAbstraction.Optimizer)
MOI.set(optimizer, MOI.RawOptimizerAttribute("concrete_problem"), concrete_problem)
MOI.set(optimizer, MOI.RawOptimizerAttribute("state_grid"), state_grid)
MOI.set(optimizer, MOI.RawOptimizerAttribute("input_grid"), input_grid)
MOI.set(optimizer, MOI.RawOptimizerAttribute("jacobian_bound"), DCDC.jacobian_bound())
MOI.set(
optimizer,
MOI.RawOptimizerAttribute("approx_mode"),
Expand Down
25 changes: 25 additions & 0 deletions docs/src/reference/Optim.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,28 @@ Dionysos.Optim.BemporadMorari.Optimizer
Dionysos.Optim.BranchAndBound.Optimizer
```

## Solvers details

### Uniform Grid Abstraction

```@docs
Dionysos.Optim.Abstraction.UniformGridAbstraction._get_domain_list
Dionysos.Optim.Abstraction.UniformGridAbstraction._discretize_continuous_system
Dionysos.Optim.Abstraction.UniformGridAbstraction._validate_continuous_model
Dionysos.Optim.Abstraction.UniformGridAbstraction.solve_concrete_problem
Dionysos.Optim.Abstraction.UniformGridAbstraction.build_abstraction
Dionysos.Optim.Abstraction.UniformGridAbstraction.compute_controller_reach!
Dionysos.Optim.Abstraction.UniformGridAbstraction._compute_num_targets_unreachable
Dionysos.Optim.Abstraction.UniformGridAbstraction._discrete_system
Dionysos.Optim.Abstraction.UniformGridAbstraction.compute_controller_safe!
Dionysos.Optim.Abstraction.UniformGridAbstraction._maybe_discretized_system
Dionysos.Optim.Abstraction.UniformGridAbstraction.solve_abstract_problem
Dionysos.Optim.Abstraction.UniformGridAbstraction._data
Dionysos.Optim.Abstraction.UniformGridAbstraction._validate_discrete_model
Dionysos.Optim.Abstraction.UniformGridAbstraction._compute_controller_reach!
Dionysos.Optim.Abstraction.UniformGridAbstraction.build_abstract_problem
Dionysos.Optim.Abstraction.UniformGridAbstraction._validate_model
Dionysos.Optim.Abstraction.UniformGridAbstraction._corresponding_abstract_points
Dionysos.Optim.Abstraction.UniformGridAbstraction._compute_pairstable
```

Loading

0 comments on commit b0f7cd9

Please sign in to comment.