1classdef SubProblem < handle
2 % SubProblem A subset of variables to optimize
while others are fixed.
3 % Mirrors native-Python line_solver.opt.decomposition.SubProblem.
7 variables % cell of opt.DecisionVariable
11 function obj = SubProblem(name, variableType, variables)
13 obj.variableType = variableType;
14 obj.variables = variables;
15 obj.fixedValues = containers.Map(
'KeyType',
'char',
'ValueType',
'any');
17 function names = getVariableNames(obj)
18 names = cell(1, numel(obj.variables));
19 for i = 1:numel(obj.variables), names{i} = obj.variables{i}.getName(); end