TwoStageOptimalControl.AssignResultsFunction
AssignResults(Results::Dict, 
              Con::Array{Float64,3}, 
              Stat::Array{Float64,3}, 
              Con_dist::Array{Float64,3}, 
              Stat_dist::Array{Float64,3}, 
              Stat_agg::Array{Float64,3}, 
              CoStat::Array{Float64,3}, 
              CoStat_dist::Array{Float64,3}, 
              dHam::Array{Float64,3}, 
              dHam_dist::Array{Float64,3}, 
              Para::Dict)

Assign the control and state variables to the Results dictionary

source
TwoStageOptimalControl.PlotResultsFunction
PlotResults(Results2::Dict;
            SavePlot=false,
            Display=true,
            sizeX=600,sizeY=400)

Basic plots of all controls + gradient and state + costate variables

  • SavePlot -> Indicator whether plots should be saved to location specifice in Para["SavePlotPath"]
  • Display -> Should the plots be displayed or supressed.
  • sizeX, sizeY -> dimensions of the plots. Default = 600x400
source