LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
SubProblem.m
1classdef SubProblem < handle
2 % SubProblem A subset of variables to optimize while others are fixed.
3 % Mirrors native-Python line_solver.opt.decomposition.SubProblem.
4 properties
5 name
6 variableType
7 variables % cell of opt.DecisionVariable
8 fixedValues
9 end
10 methods
11 function obj = SubProblem(name, variableType, variables)
12 obj.name = name;
13 obj.variableType = variableType;
14 obj.variables = variables;
15 obj.fixedValues = containers.Map('KeyType','char','ValueType','any');
16 end
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
20 end
21 end
22end