LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
MinimizeSystemResponseTime.m
1classdef MinimizeSystemResponseTime < opt.Objective
2 % MinimizeSystemResponseTime Minimize end-to-end (system) response time.
3 % Mirrors native-Python MinimizeSystemResponseTime.
4
5 properties
6 jobclass = '';
7 end
8
9 methods
10 function obj = MinimizeSystemResponseTime(jobclass, subjectTo)
11 if nargin >= 1 && ~isempty(jobclass)
12 obj.jobclass = opt.Constraint.nameOf(jobclass);
13 end
14 if nargin >= 2 && ~isempty(subjectTo)
15 obj.constraints = subjectTo;
16 end
17 end
18 function tf = isMinimization(~), tf = true; end
19 function v = evaluate(obj, result, ~)
20 if ~isempty(obj.jobclass)
21 v = result.getSystemResponseTime(obj.jobclass);
22 else
23 v = result.getSystemResponseTime();
24 end
25 end
26 end
27end