jump-dev / jump-dev/Dualization.jl
DualNames mapping rather than prefix
Open
good first issue
help wanted
- Dominant language
- Julia
- Stars
- 103
- Forks
- 7
- Avg merge
- 2h 44m
- Merged PRs (30d)
- 1
Description
This could be an alternative structure to DualNames rather than a replacement:
a DualNameMapping that takes pairs `"pattern1" => "pattern2"` and maps the first to the second for names.
Example:
```julia
m = Model()
# ...
@constraint(m, affine_cons[j=1:3],
λ - c[j] >= dot(Cs[j], As[1])
)
Dualization.dualize(m,
dual_mapping=DualNameMapping("affine_cons" => "α")
)
```
resulting in a dual model with a constraint
```julia
λ : α[1]_1 + α[2]_1 + α[3]_1 = 1.0
# instead of
λ : dualaffine_cons[1]_1 + dualaffine_cons[2]_1 + dualaffine_cons[3]_1 = 1.0
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.