ams.core.service.MinDur#
- class ams.core.service.MinDur(u: Callable, u2: Callable, name: str = None, tex_name: str = None, unit: str = None, info: str = None, vtype: Type = None, no_parse: bool = False, sparse: bool = False)[source]#
Defined to form minimum on matrix for minimum online/offline time constraints used in UC.
- Parameters:
- uCallable
Input, should be a
Var
with horizon.- u2Callable
Input2, should be a
RParam
.- namestr, optional
Instance name.
- tex_namestr, optional
TeX name.
- unitstr, optional
Unit.
- infostr, optional
Description.
- sparse: bool, optional
True to return output as scipy csr_matrix.
- __init__(u: Callable, u2: Callable, name: str = None, tex_name: str = None, unit: str = None, info: str = None, vtype: Type = None, no_parse: bool = False, sparse: bool = False)[source]#
Methods
Assign memory for
self.v
and set the array to zero.Return name in a list
parse
()Parse the parameter.
update
()Update the Parameter value.
Attributes
Return the class name
Return the count of values in
self.v
.Return the shape of the service.
Return the size.
Value of the service.