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
13 % LQN layer-wise decomposition diagnostics (solveLayered): the final
14 % frozen layer set and the total LINE solve count.
20 function obj = WorkflowResult()
21 obj.subproblemResults = containers.Map('KeyType', '
char', 'ValueType', 'any');
22 obj.finalVariableValues = containers.Map('KeyType', '
char', 'ValueType', 'any');
25 function tf = isConverged(obj)
28 function r = getSubProblemResult(obj, name)
29 if isKey(obj.subproblemResults, name), r = obj.subproblemResults(name); else, r = []; end
31 function v = getFinalVariableValue(obj, name)
32 if isKey(obj.finalVariableValues, name), v = obj.finalVariableValues(name); else, v = []; end