1classdef SubProblemResult < handle
2 % SubProblemResult Result from solving one decomposition subproblem.
3 % Mirrors native-Python line_solver.opt.results.SubProblemResult.
7 result % opt.OptimizationResult
8 variablesFixed % Map name -> value
12 function obj = SubProblemResult(name, result)
13 obj.variablesFixed = containers.Map(
'KeyType',
'char',
'ValueType',
'any');
14 if nargin >= 1, obj.name = name; end
15 if nargin >= 2, obj.result = result;
else, obj.result = opt.OptimizationResult(); end