Interface: KBResourceConstraint
@kortexya/reasoninglayer / KBResourceConstraint
Interface: KBResourceConstraint
Section titled “Interface: KBResourceConstraint”Defined in: src/types/optimize.ts:200
A resource constraint specification for KB-driven optimization.
Remarks
Section titled “Remarks”Maps a cost feature on variable terms to a capacity limit.
Properties
Section titled “Properties”capacity
Section titled “capacity”capacity:
number
Defined in: src/types/optimize.ts:206
Capacity limit (right-hand side of the constraint).
costFeature
Section titled “costFeature”costFeature:
string
Defined in: src/types/optimize.ts:202
Feature name on variable terms representing cost for this resource.
label?
Section titled “label?”
optionallabel?:string
Defined in: src/types/optimize.ts:208
Optional label for the constraint.
optionalop?:ConstraintOperator
Defined in: src/types/optimize.ts:204
Comparison operator (default: ‘<=’).