Comments (3)
Hey Vitor, implementing an out of sample simulator sounds great!
One issue is that renaming the key would break a lot of existing code.
I'd be more in favour a bigger reorganisation that included returning the actual noise object (or implementing the oracles since they seem the next most important thing) so things broke in a big way rather than quietly.
As I think about this more, maybe there should be :noiseidx
which is 0
if the noise is out of sample, otherwise it is the index of the noise. In addition, :noise
is the actual type Noise
corresponding to the :noiseidx
, or the out-of-sample noise as you suggested.
You've probably already dug into the code, but I think you would need to change the type here and then do something clever here.
As for the breakages, I should probably register this package and get some proper version tagging going.
from sddp.jl.
I renamed the keys in my local branch, and it broke my own code! It was a trivial fix, but I can see how it would disrupt other people's code. I believe a way of implementing this change without such issues would be creating a new simulate
method, and deprecating the existing ones.
I think having 0
indicate when :noiseidx
is sensible, because the output would still always be a (non-negative) Int
. It's easy to program around too. I was thinking about :noise
being an array with the noise values, but associating it with Noise
objects sounds like a better idea.
I could implement the key name changes and SamplingOracles
(#80) as well, if you haven't worked on it already. Since you probably already gave it some thought, is there any particular detail you have in mind for them?
from sddp.jl.
I haven't worked on them. They would be a great contribution!
The only thoughts I've had I put down in #80. They seem like a good starting point.
I think once we have sampling oracles, figuring out a new (improved) simulation method will be easier.
I was thinking about :noise being an array with the noise values
This gets a little tricky because I often go
w = [1, 2, 4]
@rhsnoise(sp, i=1:3, x <= w[i])
Should the noise values be 1,2,3
or 1,2,4
?
I would suggest making a Pull Request that begins to implement sampling oracles, and we can continue the discussion there. I'm sure we will run into a few problems.
from sddp.jl.
Related Issues (20)
- Compute dual variables with continous state variables and mixed control variables HOT 6
- Sources regarding Integrality HOT 3
- multiple lead time HOT 15
- Regarding file saving issues of SDDP model HOT 5
- Probability of Noise depending on Control Variable HOT 3
- Typo
- Markov graph + Risk aversion HOT 5
- Is it applicable when the local problems of some stages are mixed interger linear programming? HOT 2
- Support NEARLY_FEASIBLE_POINT HOT 1
- Out of Sample Simulation for the infinite horizon problem. HOT 2
- trouble with sum HOT 2
- Add multi-dimensional random variables HOT 6
- Question Regarding State-Dependent Paramether Updates in SDDP.jl HOT 3
- Error when trying to train a policy HOT 8
- Error when using nonlinear function of state.in HOT 11
- Cyclic Markov Policy Graph HOT 4
- PublicationPlots do not check for non-finite data HOT 2
- Multiplying random variables will result in an error. This is related to nonlinear programming. HOT 10
- Expected value iterations
- Best Practices for custom cut selection heuristic HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sddp.jl.