Remove `formulation` key from metadata
- Lingua principale
- Julia
- Stelle
- 7
- Fork
- 5
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
...or implement `JuMP.copy_extension_data`, since
```julia
opf = OPFGenerator.build_opf(...)
copy_model(opf.model)
```
gives
```julia
┌ Warning: Model contains extension data of type DataType that we do not know how to copy.
│
│ If you are using a JuMP extension and you did not add data to the `model.ext` dictionary. Please open an issue on the GitHub repository of the JuMP extension and tell them to implement `JuMP.copy_extension_data`.
│
│ If you added things to `model.ext`, they have not been copied.
└ @ JuMP ~/.julia/packages/JuMP/xlp0s/src/copy.jl:23
```
The `formulation` key in the metadata is [the only place](https://github.com/AI4OPT/OPFGenerator/blob/bf0f0368fa951c62b715f1e9de912db71fe2505e/src/opf/utils.jl#L89) we access `model.ext[:opf_model]`, and removing it would also save some space in the final files.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.