Skip to content

Commit

Permalink
Implement StochOptFormat (#332)
Browse files Browse the repository at this point in the history
* Initial commit of round-tripping a model via SOF

* Case-insensitive filesystems are annoying

* - Add minimal documentation
- Support maximization problems
- Detect problems with mixed senses
- Provide a way to set the initial bound

* Add objective uncertainty

* Add support for changing variable bounds

* Refactor experimental into function barriers

* Add support for changing RHS term

* Add JSONSchema validation

* Add JSONSchema validation II

* Use compressed_open, expand documentation

* Add error messages

* Improve test coverage

* Simplify constraint RHS storage
  • Loading branch information
odow committed Jul 18, 2020
1 parent 6eeb2bd commit b473e1e
Show file tree
Hide file tree
Showing 6 changed files with 865 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Project.toml
Expand Up @@ -20,6 +20,7 @@ TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"
GLPK = "0.12"
HTTP = "0.8.1"
JSON = "0.21"
JSONSchema = "0.3"
JuMP = "0.21"
JuliaFormatter = "0.3"
RecipesBase = "1"
Expand All @@ -29,9 +30,10 @@ julia = "1"

[extras]
GLPK = "60bf3e95-4087-53dc-ae20-288a0d20c6a6"
JSONSchema = "7d188eb4-7ad8-530c-ae41-71a32a6d4692"
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["GLPK", "JuliaFormatter", "Pkg", "Test"]
test = ["GLPK", "JSONSchema", "JuliaFormatter", "Pkg", "Test"]
9 changes: 9 additions & 0 deletions docs/src/apireference.md
Expand Up @@ -107,3 +107,12 @@ SDDP.plot
SDDP.write_subproblem_to_file
SDDP.deterministic_equivalent
```

## File IO

```@docs
SDDP.write_to_file
SDDP.read_from_file
Base.write(::IO, ::SDDP.PolicyGraph)
Base.read(::IO, ::Type{SDDP.PolicyGraph})
```

0 comments on commit b473e1e

Please sign in to comment.