Questions tagged [multi-stage-programming]

4 questions
8
votes
1 answer

Another limitation of F# quotations?

Earlier today I encountered a limitation of F# quotations, and asked a question about it here: F# quotations: variable may escape scope Now, I may have encountered another limitation when converting examples appearing in…
Lasse Espeholt
  • 17,622
  • 5
  • 63
  • 99
5
votes
1 answer

F# quotations: variable may escape scope

I have this bit of code: let rec h n z = if n = 0 then z else <@ (fun x -> %(h (n - 1) <@ x + %z @>)) n @> converted from a MetaOcaml example in http://www.cs.rice.edu/~taha/publications/journal/dspg04a.pdf In the paper there is…
Lasse Espeholt
  • 17,622
  • 5
  • 63
  • 99
1
vote
0 answers

How can I write the output stream of sddp.jl into an excel file?

I am using sddp.jl for my research project in which I am developing a state-of-the-art actor critic algorithm which I am going to benchmark with SDDP but for it I need to plot graphs which require data to be in excel or csv form. Is there a way to…
0
votes
1 answer

PySP command result related to output: ** At least one sub-... failed to solve! **

![The screenshot is from the error result of command: runph --model-directory=models --instance-directory=scenariodata --solver=ipopt --default-rho=1 ]1 Although I could still get outputs, I wonder what does this error warning "** At least one…