TMtxLP Class

Header: Dew.Math/MtxVecTools.h · Cross-compiler
tObjectTMtxComponentTMtxLP

class TMtxLP : public TMtxComponent;

Interfaces Linear Programming algorithms.

The component can be used to solve several linear programming problems.

How to use TMtxLP component?

The results of solving LP are returned as:

Constructors

NameDescription
TMtxLP (2)

Destructors

NameDescription
~TMtxLP

Properties

NameTypeDescription
ATMtx*Defines A in A*x <= b equation.
AFinalTMtx*Final tableaux.
AlgorithmTLPAlgorithmDefines LP solving algorithm.
AutoUpdatebool
bTVec*Defines b in A*x <= b equation.
BlockAssignboolBlock streaming of specific properties when storing only a "template".
cTVec*Defines c in f=c(T)*x equation.
DirtyboolBecomes true, after any property has changed.
EditorActiveboolReturns True, if the component editor is displayed.
IndexesTVecInt*Returns indices (stored in IValues) of basic variables in final tableaux.
MinimizeboolFind minimum or maximum of objective function.
NameDewString
ReferenceTReferenceList*Stores a list of components that have to be notified, when this component is destroyed.
RelationsDewStringDefines relations for two phase algorithm.
SolutionTypeTLPSolutionLP solution type.
VerbosetStrings*Log optimization algorithm calculation.
xTVec*Values of the legitimate variables.
zdoubleValue of the objective function.

Methods

NameDescription
AllowStreamingReturns the negatated value of BlockAssign.
AssignAssign values of all published properties from Source.
AssignTemplateAssign values of "template-like" published properties from Source.
CheckDimensionsChecks A,b,c and relations dimensions.
EditorClass
LoadFromStreamLoad the component from Src stream.
LoadTemplateFromFileLoad a template from file.
LoadTemplateFromStreamLoad a template from stream.
RecalculateTriggers TMtxLP recalculation.
ReferenceRemoved
ResetReset is called after loading the data from stream or file.
SaveTemplateToFileSave template to file.
SaveTemplateToStreamSave template to stream.
SaveToStreamSave the component to Dst stream.
SetA
Setb
Setc

Fields

NameTypeDescription
Tagintptr_t