1classdef WorkflowResult < handle
2 % WorkflowResult Result from a decomposed workflow optimization. Mirrors
3 % native-Python line_solver.opt.results.WorkflowResult.
7 subproblemResults % Map name -> opt.SubProblemResult
11 objectiveHistory = [];
12 finalVariableValues % Map name -> value
16 function obj = WorkflowResult()
17 obj.subproblemResults = containers.Map('KeyType', '
char', 'ValueType', 'any');
18 obj.finalVariableValues = containers.Map('KeyType', '
char', 'ValueType', 'any');
21 function tf = isConverged(obj)
24 function r = getSubProblemResult(obj, name)
25 if isKey(obj.subproblemResults, name), r = obj.subproblemResults(name); else, r = []; end
27 function v = getFinalVariableValue(obj, name)
28 if isKey(obj.finalVariableValues, name), v = obj.finalVariableValues(name); else, v = []; end