第五章 方法形成
5.1 方法形成的基本问题
前一章已经建立了方法理论,并明确了方法与能力、决策、操作之间的区别。
能力回答:
能够完成什么。
决策回答:
在当前目标、条件和约束下选择什么。
方法回答:
确定选择以后,按照什么结构路径完成目标。
但是,一个解决问题的方法并不是凭空产生的。
一个新的问题出现以后,结构智能系统首先需要理解需求,确定问题的对象、目标、条件和约束;然后根据需求获取相关知识,将知识形成可以匹配和运算的知识结构;再根据知识结构与已有能力结构进行匹配,确定当前能够完成哪些任务;随后通过决策选择适合当前问题的能力、对象、方法和执行方向。
因此,方法形成不是单独的方法生成过程,而是前面多个智能结构共同作用后的结果。
其基本关系为:
需求+知识+能力+决策→方法形成需求+知识+能力+决策 \rightarrow 方法形成
进一步展开为:
需求→知识→能力→决策→方法需求 \rightarrow 知识 \rightarrow 能力 \rightarrow 决策 \rightarrow 方法
但这并不是简单的线性关系。
需求决定方法要解决什么问题;
知识决定方法能够利用什么信息;
能力决定方法能够完成什么任务;
决策决定当前问题选择什么解决方向;
方法则把这些结构组织成为一条能够实际执行的解决问题路径。
因此,方法形成的本质是:
将需求所要求的目标,与当前可获得的知识、可调用的能力以及已经形成的决策结果进行结构组织,形成能够实际执行、产生结果并接受验证的解决问题结构。
5.2 方法形成不是方法选择
方法选择和方法形成必须明确区分。
在已有方法库中,如果已经存在一个适用于当前需求的方法,那么系统可以直接进行:
需求→方法匹配→方法选择需求 \rightarrow 方法匹配 \rightarrow 方法选择
例如:
需求=比较两个产品价格需求=比较两个产品价格
系统已经存在:
MethodComparePriceMethod_{ComparePrice}
那么只需要进行方法匹配和方法选择,不需要重新形成方法。
但是,如果当前没有完全匹配的方法,则需要根据需求、知识、能力和决策重新组织解决路径。
此时:
需求→知识→能力→决策→方法形成需求 \rightarrow 知识 \rightarrow 能力 \rightarrow 决策 \rightarrow 方法形成
因此:
方法选择≠方法形成方法选择\neq方法形成
方法选择解决的是:
已有的方法中使用哪一个。
方法形成解决的是:
当前没有完全适用的方法时,如何根据已有结构形成一个能够解决当前问题的方法。
这一区分对于结构智能具有重要意义。
如果系统只能选择已有方法,那么它只能重复已经形成的解决过程。
如果系统能够形成新的方法,那么它就能够根据新的需求、新的知识、新的能力组合和新的决策结果形成新的解决问题路径。
5.3 需求是方法形成的起点
任何解决问题的方法,都必须具有明确的目标。
因此,方法形成不能脱离需求。
需求经过需求解析以后,可以表示为:
DS={O,A,S,G,C,X}DS= \{O,A,S,G,C,X\}
其中:
- OO:Object,对象
- AA:Attribute,属性
- SS:State,状态
- GG:Goal,目标
- CC:Condition,条件
- XX:Constraint,约束
需求结构首先确定:
要解决什么问题。
然后进一步确定:
对什么对象解决问题。
需要处理什么属性。
当前对象处于什么状态。
希望达到什么目标。
在什么条件下解决。
受到什么约束。
因此,需求实际上决定了方法形成的边界。
例如:
在预算不超过30美元的条件下,选择支持充电功能的电动牙刷。
其需求结构可以表示为:
Object=ElectricToothbrushObject=ElectricToothbrush Function=ChargingFunction=Charging Price≤30Price\leq30 Goal=ProductSelectionGoal=ProductSelection
此时,方法就不能任意形成。
它必须能够完成:
产品识别→属性匹配→条件过滤→候选比较→产品选择产品识别 \rightarrow 属性匹配 \rightarrow 条件过滤 \rightarrow 候选比较 \rightarrow 产品选择
因此:
Method=f(Requirement)Method=f(Requirement)
需求不是方法的一个普通输入,而是决定方法目标和结构边界的基础。
5.4 知识为方法提供可使用的内容
需求只能说明:
要解决什么问题。
它不能单独说明:
用什么知识解决问题。
因此,方法形成必须调用知识。
知识经过结构化以后,不再只是文本中的信息,而是能够被能力调用和运算的知识结构。
例如:
KnowledgeStructure={Object,Attribute,Value,State,Relation,Condition,Rule,Method}KnowledgeStructure= \{ Object, Attribute, Value, State, Relation, Condition, Rule, Method \}
对于产品选择问题,相关知识可能包括:
Product→BrandProduct \rightarrow Brand Product→PriceProduct \rightarrow Price Product→FunctionProduct \rightarrow Function Product→CertificationProduct \rightarrow Certification
这些知识结构提供了方法执行所需要的对象、属性和值。
因此:
需求→KnowledgeRequirement→KnowledgeStructure需求 \rightarrow KnowledgeRequirement \rightarrow KnowledgeStructure
方法形成过程中的知识不是静态知识库中的“答案”,而是解决当前问题所需要的结构化知识资源。
5.5 能力决定方法能够做什么
知识本身不能自动解决问题。
即使系统拥有:
ProductProduct PricePrice FunctionFunction CertificationCertification
等知识,如果没有相应的能力结构,仍然无法完成复杂任务。
例如,系统可能需要:
Match()Match()
判断产品是否满足功能要求;
需要:
Compare()Compare()
比较不同产品;
需要:
Filter()Filter()
删除不符合预算条件的产品;
需要:
Sort()Sort()
按照价格或综合评价排序;
最后需要:
Select()Select()
选择符合目标的结果。
因此:
KnowledgeStructure→CapabilityStructureKnowledgeStructure \rightarrow CapabilityStructure
方法形成时必须确定:
当前问题需要调用哪些能力。
所以方法不是知识的简单排列,而是对知识和能力进行组织。
可以表示为:
Method=Knowledge+Capability+Operation+Rule+StepMethod = Knowledge + Capability + Operation + Rule + Step
5.6 决策确定方法的解决方向
能力解决的是:
能做什么。
但是,一个问题通常存在多个可以完成任务的能力和多个可能的解决方向。
因此,在方法形成之前,需要通过决策确定当前应该采用哪一种解决路径。
例如,一个产品选择问题可以有多个方向:
Method1=最低价格优先Method_1=最低价格优先 Method2=功能优先Method_2=功能优先 Method3=认证优先Method_3=认证优先 Method4=综合条件评价Method_4=综合条件评价
这些方法都可能具有解决问题的能力。
但是当前需求可能明确:
价格不能超过30美元,同时必须支持充电功能。
那么决策结构就会确定:
Price≤30Price\leq30
为硬约束;
Charging=TrueCharging=True
为必要条件。
因此,方法形成需要使用决策结果确定执行方向。
其关系为:
Capability→CandidateMethods→Decision→MethodSelectionCapability \rightarrow CandidateMethods \rightarrow Decision \rightarrow MethodSelection
如果已有方法不能完全解决问题,则:
Decision→MethodFormationDecision \rightarrow MethodFormation
因此,决策不是方法的替代品。
决策负责确定:
选择什么解决方向。
方法负责确定:
按照什么结构完成这个解决方向。
5.7 需求、知识、能力、决策的统一
到这里,可以将方法形成的四个基础因素统一起来。
第一,需求确定目标
Requirement→GoalRequirement\rightarrow Goal
第二,知识提供解决所需要的结构化内容
Requirement→KnowledgeRequirement→KnowledgeStructureRequirement\rightarrow KnowledgeRequirement \rightarrow KnowledgeStructure
第三,能力确定能够执行的任务
KnowledgeStructure↔CapabilityStructureKnowledgeStructure \leftrightarrow CapabilityStructure
第四,决策确定当前解决方向
Cognition+Capability+Goal+Condition+Constraint→DecisionCognition+Capability+Goal+Condition+Constraint \rightarrow Decision
最终:
Requirement+Knowledge+Capability+Decision→MethodRequirement + Knowledge + Capability + Decision \rightarrow Method
因此,方法形成可以定义为:
方法形成,是根据当前需求确定问题目标,根据需求获取并组织相关知识,根据知识结构匹配可用能力,并根据决策结果确定解决方向,再将目标、知识、能力、对象、条件、约束、规则和运算组织为可执行解决路径的过程。
5.8 方法形成的结构
形成后的问题解决方法可以表示为:
PM={Goal,Input,Requirement,Knowledge,Capability,Object,Condition,Constraint,Decision,SubMethod,Rule,Operation,Output,Validation}PM= \{ Goal, Input, Requirement, Knowledge, Capability, Object, Condition, Constraint, Decision, SubMethod, Rule, Operation, Output, Validation \}
其中:
Goal
定义方法需要实现的目标。
Input
定义方法执行所需要的输入。
Requirement
保存方法形成的需求来源。
Knowledge
定义方法执行需要调用的知识结构。
Capability
定义方法需要调用的能力。
Object
确定实际处理对象。
Condition
确定方法成立和执行所需要的条件。
Constraint
确定执行过程中的限制。
Decision
确定方法采用的解决方向。
SubMethod
定义方法内部需要调用的其他方法。
Rule
定义执行过程中的判断规则。
Operation
定义具体的运算和处理。
Output
定义方法产生的结果。
Validation
验证方法执行结果是否符合目标。
因此,一个完整的方法不是简单的:
Step1→Step2→Step3Step_1\rightarrow Step_2\rightarrow Step_3
而是一个完整的结构。
5.9 从决策结果到方法结构
决策完成以后,系统已经知道:
当前应该解决什么。
但是仍然需要解决:
具体怎样完成。
因此:
Decision→MethodFormationDecision\rightarrow MethodFormation
例如:
需求:
选择价格不超过30美元并支持充电功能的电动牙刷。
知识结构提供:
ProductProduct PricePrice FunctionFunction
能力结构提供:
Match()Match() Filter()Filter() Compare()Compare()
决策确定:
Charging=TrueCharging=True Price≤30Price\leq30
然后形成方法:
IdentifyProducts→MatchFunction→FilterPrice→CompareCandidates→SelectProductIdentifyProducts \rightarrow MatchFunction \rightarrow FilterPrice \rightarrow CompareCandidates \rightarrow SelectProduct
这里的每一步并不只是一个文字步骤。
每一个步骤都可以对应一个能力、方法或者具体运算。
例如:
MatchFunction→Match()MatchFunction \rightarrow Match() FilterPrice→Compare(Price,30)FilterPrice \rightarrow Compare(Price,30)
因此:
ProblemSolvingMethod→Capability→ClassMethod→OperationProblemSolvingMethod \rightarrow Capability \rightarrow ClassMethod \rightarrow Operation
5.10 方法形成中的对象绑定
方法形成以后,还不能立即执行。
因为方法中的对象必须与实际对象建立绑定。
例如:
ProductClass→ProductObjectProductClass \rightarrow ProductObject
假设实际对象为:
ProductObject1ProductObject_1
则方法:
MethodProductSelectionMethod_{ProductSelection}
必须将:
Object=ProductObject1Object=ProductObject_1
绑定到方法实例。
于是:
Method→MethodInstanceMethod \rightarrow MethodInstance
进一步:
MethodInstance→ObjectBindingMethodInstance \rightarrow ObjectBinding
对象绑定以后,方法才能访问对象属性:
Object→Attribute→ValueObject \rightarrow Attribute \rightarrow Value
例如:
Product1→Price→29.99Product_1 \rightarrow Price \rightarrow 29.99 Product1→Function→ChargingProduct_1 \rightarrow Function \rightarrow Charging
此时方法才具有实际的操作对象。
5.11 方法形成中的参数绑定
方法不仅需要对象,还需要参数。
参数可以来自多个结构来源:
ParameterSource={Requirement,ObjectAttribute,Knowledge,CapabilityResult,OperationResult,SceneState}ParameterSource= \{ Requirement, ObjectAttribute, Knowledge, CapabilityResult, OperationResult, SceneState \}
例如:
预算条件:
MaxPrice=30MaxPrice=30
来自需求。
产品价格:
Price=29.99Price=29.99
来自对象属性。
功能要求:
RequiredFunction=ChargingRequiredFunction=Charging
来自需求结构。
那么方法调用:
Compare(29.99,30)Compare(29.99,30)
就是参数绑定后的具体运算。
因此:
Method→ParameterBinding→OperationMethod \rightarrow ParameterBinding \rightarrow Operation
参数绑定使抽象方法转化为具体方法实例。
5.12 方法形成不是固定步骤生成
结构智能中的方法不应被理解为简单的固定流程。
真实问题经常具有:
- 条件分支;
- 循环;
- 多对象处理;
- 多能力调用;
- 方法嵌套;
- 失败处理;
- 重新判断;
- 重新决策;
- 反馈更新。
因此,方法结构可以包含:
Condition→BranchCondition \rightarrow Branch Operation→LoopOperation \rightarrow Loop MethodA→MethodBMethod_A \rightarrow Method_B MethodFailure→ReEvaluationMethodFailure \rightarrow ReEvaluation
例如:
FilterPriceFilterPrice
执行后,如果没有候选产品:
Candidate=0Candidate=0
则不能继续执行:
CompareCandidatesCompareCandidates
而可能进入:
RequirementReview→InformationRequirement→KnowledgeAcquisition→ReCognitionRequirementReview \rightarrow InformationRequirement \rightarrow KnowledgeAcquisition \rightarrow ReCognition
或者:
ConstraintAdjustment→ReDecision→MethodReformationConstraintAdjustment \rightarrow ReDecision \rightarrow MethodReformation
因此,方法本身可以具有动态结构。
5.13 方法形成与方法实例化
方法形成和方法实例化同样需要区分。
方法形成:
Requirement+Knowledge+Capability+Decision→MethodRequirement+Knowledge+Capability+Decision \rightarrow Method
得到的是一个可复用的方法结构。
方法实例化:
Method+Object+Parameter+Condition→MethodInstanceMethod + Object + Parameter + Condition \rightarrow MethodInstance
得到的是当前具体问题中的执行实例。
例如:
MethodProductSelectionMethod_{ProductSelection}
是通用方法。
而:
MethodInstanceProductSelection(Product1,30,Charging)MethodInstance_{ProductSelection(Product_1,30,Charging)}
则是针对具体产品、具体预算和具体功能要求形成的方法实例。
因此:
Method≠MethodInstanceMethod\neq MethodInstance
方法定义解决:
如何解决这一类问题。
方法实例解决:
当前这个具体问题如何执行。
5.14 方法形成与类方法的衔接
前一章已经区分了:
ClassMethodClassMethod
和:
ProblemSolvingMethodProblemSolvingMethod
方法形成过程正是二者衔接的重要位置。
高层问题解决方法可以调用能力:
ProblemSolvingMethod→CapabilityProblemSolvingMethod \rightarrow Capability
能力进一步调用对象:
Capability→ObjectCapability \rightarrow Object
对象所属的类提供具体方法:
Object→ClassObject\rightarrow Class
类方法执行对象级操作:
ClassMethod→OperationClassMethod \rightarrow Operation
因此完整关系为:
ProblemSolvingMethod→Capability→Object→ClassMethod→OperationProblemSolvingMethod \rightarrow Capability \rightarrow Object \rightarrow ClassMethod \rightarrow Operation
例如:
ProductSelectionMethodProductSelectionMethod
调用:
ProductMatchingCapabilityProductMatchingCapability
处理:
ProductObjectProductObject
然后调用:
Product.comparePrice()Product.comparePrice()
最终执行:
Compare()Compare()
这就使 PHP 面向对象式的:
Class→Object→MethodClass\rightarrow Object\rightarrow Method
能够与更高层的:
Requirement→Capability→Decision→ProblemSolvingMethodRequirement\rightarrow Capability\rightarrow Decision\rightarrow ProblemSolvingMethod
连接起来。
5.15 方法形成中的能力组合
复杂问题通常不能由单一能力完成。
例如,一个产品选择任务可能需要:
C1=ProductRecognitionC_1=ProductRecognition C2=FunctionMatchingC_2=FunctionMatching C3=PriceFilteringC_3=PriceFiltering C4=CandidateComparisonC_4=CandidateComparison C5=ProductSelectionC_5=ProductSelection
这些能力可以形成能力组合:
Csolution={C1,C2,C3,C4,C5}C_{solution} = \{C_1,C_2,C_3,C_4,C_5\}
然后方法将这些能力按照输入输出关系组织起来:
Output(C1)→Input(C2)Output(C_1)\rightarrow Input(C_2) Output(C2)→Input(C3)Output(C_2)\rightarrow Input(C_3) Output(C3)→Input(C4)Output(C_3)\rightarrow Input(C_4) Output(C4)→Input(C5)Output(C_4)\rightarrow Input(C_5)
于是:
C1→C2→C3→C4→C5C_1 \rightarrow C_2 \rightarrow C_3 \rightarrow C_4 \rightarrow C_5
被组织成为一个完整的方法。
因此:
方法不仅可以调用单个能力,还可以组织多个能力形成完整的解决问题路径。
5.16 方法形成中的知识调用
方法形成以后,方法并不拥有所有知识。
方法只是规定:
需要什么知识,以及在什么位置调用知识。
例如:
Method→KnowledgeRequirementMethod \rightarrow KnowledgeRequirement
然后:
KnowledgeRequirement→KnowledgeMatchingKnowledgeRequirement \rightarrow KnowledgeMatching
最终得到:
KnowledgeInstanceKnowledgeInstance
因此:
Method→Knowledge→Object→Attribute→ValueMethod \rightarrow Knowledge \rightarrow Object \rightarrow Attribute \rightarrow Value
知识调用仍然是结构匹配,而不是简单文本搜索。
如果方法要求:
PricePrice
则系统必须在相关知识结构中找到:
Object→Price→ValueObject\rightarrow Price\rightarrow Value
如果要求:
ChargingFunctionChargingFunction
则需要匹配:
Object→Function→ChargingObject\rightarrow Function\rightarrow Charging
因此,方法形成与知识结构之间始终存在动态关系。
5.17 方法形成中的规则
方法不能只有知识和能力。
在很多问题中,必须明确规定:
什么情况下执行什么操作。
这就需要规则。
例如:
Price≤30Price\leq30
是一个条件规则。
Charging=TrueCharging=True
是一个匹配规则。
多个候选产品进行排序时:
Price(A)<Price(B)Price(A)<Price(B)
可以形成比较规则。
因此:
Method=Knowledge+Capability+Rule+OperationMethod = Knowledge + Capability + Rule + Operation
规则使方法具备条件判断能力。
进一步可以形成:
Condition→Rule→OperationCondition \rightarrow Rule \rightarrow Operation
例如:
Price≤30Price\leq30
成立:
FilterPass=TrueFilterPass=True
否则:
FilterPass=FalseFilterPass=False
这使方法能够根据当前数据动态决定下一步执行路径。
5.18 方法形成中的反馈
一个方法真正形成以后,并不意味着它一定正确。
方法必须执行并获得结果。
Method→Execution→ResultMethod \rightarrow Execution \rightarrow Result
然后验证:
Result→ValidationResult \rightarrow Validation
如果验证成功:
Validation=TrueValidation=True
说明当前方法在当前问题上能够产生符合目标的结果。
如果验证失败:
Validation=FalseValidation=False
则说明方法结构可能存在问题。
问题可能来自:
KnowledgeGapKnowledgeGap
或者:
CapabilityGapCapabilityGap
或者:
DecisionErrorDecisionError
或者:
MethodErrorMethodError
或者:
ParameterErrorParameterError
或者:
OperationErrorOperationError
因此:
MethodFailure→GapDetection→LearningMethodFailure \rightarrow GapDetection \rightarrow Learning
5.19 方法修正与再形成
方法不是形成以后永远不变。
如果方法执行失败,则必须确定失败原因。
例如:
Method→Result→Validation=FalseMethod \rightarrow Result \rightarrow Validation=False
系统可以检查:
知识是否不足
KnowledgeMissingKnowledgeMissing
能力是否不足
CapabilityMissingCapabilityMissing
决策是否错误
DecisionErrorDecisionError
参数是否错误
ParameterErrorParameterError
操作是否错误
OperationErrorOperationError
如果是知识问题:
KnowledgeGap→KnowledgeAcquisitionKnowledgeGap \rightarrow KnowledgeAcquisition
如果是能力问题:
CapabilityGap→CapabilityFormationCapabilityGap \rightarrow CapabilityFormation
如果是决策问题:
DecisionFailure→ReDecisionDecisionFailure \rightarrow ReDecision
如果是方法问题:
MethodFailure→MethodReformationMethodFailure \rightarrow MethodReformation
因此:
Method→Execution→Validation→Feedback→MethodUpdateMethod \rightarrow Execution \rightarrow Validation \rightarrow Feedback \rightarrow MethodUpdate
形成方法持续改进机制。
5.20 方法的形成与学习
方法形成也是学习的重要结果。
传统学习可以停留在:
学到了一个答案。
结构智能学习则进一步要求:
学会如何产生这个答案。
例如,系统第一次解决产品选择问题时,形成:
需求→知识→能力→决策→方法→结果需求 \rightarrow 知识 \rightarrow 能力 \rightarrow 决策 \rightarrow 方法 \rightarrow 结果
如果这个过程经过验证以后能够稳定解决同类问题,那么系统可以保存方法结构。
下一次出现类似需求时,不需要从零开始。
可以直接:
NewRequirement→MethodMatching→ExistingMethodNewRequirement \rightarrow MethodMatching \rightarrow ExistingMethod
如果方法能够适配:
Method+NewObject→MethodInstanceMethod + NewObject \rightarrow MethodInstance
如果不能完全适配:
ExistingMethod→MethodExtensionExistingMethod \rightarrow MethodExtension
如果完全不适配:
MethodGap→MethodReformationMethodGap \rightarrow MethodReformation
因此,学习的结果不仅包括知识,也包括方法。
5.21 从一次解决过程形成可复用方法
方法形成的重要意义在于:
一次成功的解决过程,可以被抽象为以后能够重复调用的方法结构。
其过程为:
Problem→SolutionProcess→Result→ValidationProblem \rightarrow SolutionProcess \rightarrow Result \rightarrow Validation
如果验证成功,则进一步进行结构提取:
SuccessfulProcess→StructureExtraction→MethodFormationSuccessfulProcess \rightarrow StructureExtraction \rightarrow MethodFormation
形成:
MethodReusableMethod_{Reusable}
以后遇到新的对象:
MethodReusable+NewObject→NewMethodInstanceMethod_{Reusable} + NewObject \rightarrow NewMethodInstance
这样,系统学习的就不只是一个具体案例,而是解决这一类问题的结构。
这正是结构智能与单纯答案存储之间的重要区别。
5.22 方法的抽象与泛化
方法形成以后,还可以进一步进行抽象。
例如第一次处理:
ElectricToothbrushElectricToothbrush
形成:
MethodElectricToothbrushSelectionMethod_{ElectricToothbrushSelection}
如果以后发现同样的结构可以用于其他产品:
ProductSelectionProductSelection
则可以进一步抽象:
MethodProductSelectionMethod_{ProductSelection}
其内部结构从:
ElectricToothbrushElectricToothbrush
提升为:
ProductProduct
但抽象不能破坏方法成立所需要的结构条件。
因此方法泛化必须保持:
GoalGoal InputInput ConditionCondition ConstraintConstraint CapabilityCapability RuleRule OperationOperation
之间的有效关系。
所以:
方法泛化不是简单删除具体对象,而是在保持解决逻辑成立的前提下,将具体结构提升为可复用的更高层结构。
5.23 方法之间的组合
一个已经形成的方法还可以成为另一个方法的组成部分。
例如:
MethodA=ProductRecognitionMethod_A=ProductRecognition MethodB=FunctionMatchingMethod_B=FunctionMatching MethodC=PriceFilteringMethod_C=PriceFiltering MethodD=CandidateComparisonMethod_D=CandidateComparison
可以组合:
MethodA→MethodB→MethodC→MethodDMethod_A \rightarrow Method_B \rightarrow Method_C \rightarrow Method_D
形成:
CompositeMethodCompositeMethod
因此:
Method+Method→CompositeMethodMethod+Method \rightarrow CompositeMethod
复杂问题可以进一步形成多层方法结构:
ProblemSolvingMethod→SubMethod1→SubMethod2→ClassMethod→OperationProblemSolvingMethod \rightarrow SubMethod_1 \rightarrow SubMethod_2 \rightarrow ClassMethod \rightarrow Operation
这使方法本身具有结构递归性。
5.24 方法形成与决策能力的关系
决策能力是方法形成的重要前置结构。
决策能力能够:
- 调用知识;
- 调用能力;
- 判断条件;
- 检查约束;
- 比较候选;
- 评价结果;
- 选择方向。
因此:
DecisionCapability→Decision→MethodFormationDecisionCapability \rightarrow Decision \rightarrow MethodFormation
但是方法形成以后,又可以反过来形成更强的决策能力。
因为稳定的方法可以被保存为可调用结构。
于是:
Method→RepeatedExecution→Validation→CapabilityFormationMethod \rightarrow RepeatedExecution \rightarrow Validation \rightarrow CapabilityFormation
进一步:
CapabilityFormation→DecisionCapabilityCapabilityFormation \rightarrow DecisionCapability
因此,能力、决策和方法之间不是单向关系,而是可以通过反馈形成循环。
5.25 方法形成的完整结构链
将本章内容完整连接,可以得到:
Requirement→RequirementStructureRequirement \rightarrow RequirementStructure RequirementStructure→KnowledgeRequirementRequirementStructure \rightarrow KnowledgeRequirement KnowledgeRequirement→KnowledgeStructureKnowledgeRequirement \rightarrow KnowledgeStructure KnowledgeStructure↔CapabilityStructureKnowledgeStructure \leftrightarrow CapabilityStructure CapabilityStructure→CandidateCapabilityCapabilityStructure \rightarrow CandidateCapability CandidateCapability→DecisionCapabilityCandidateCapability \rightarrow DecisionCapability DecisionCapability→DecisionDecisionCapability \rightarrow Decision Decision→MethodFormationDecision \rightarrow MethodFormation
然后:
MethodFormation→MethodMethodFormation \rightarrow Method Method→ObjectBindingMethod \rightarrow ObjectBinding ObjectBinding→ParameterBindingObjectBinding \rightarrow ParameterBinding ParameterBinding→MethodInstantiationParameterBinding \rightarrow MethodInstantiation MethodInstantiation→SubMethodMethodInstantiation \rightarrow SubMethod SubMethod→ClassMethodSubMethod \rightarrow ClassMethod ClassMethod→OperationClassMethod \rightarrow Operation Operation→ResultOperation \rightarrow Result Result→ValidationResult \rightarrow Validation
最终:
Validation→Feedback→MethodUpdateValidation \rightarrow Feedback \rightarrow MethodUpdate
形成完整循环:
需求→知识→能力→决策→方法→实例化→运算→结果→验证→反馈→方法更新\boxed{ 需求 \rightarrow 知识 \rightarrow 能力 \rightarrow 决策 \rightarrow 方法 \rightarrow 实例化 \rightarrow 运算 \rightarrow 结果 \rightarrow 验证 \rightarrow 反馈 \rightarrow 方法更新 }
5.26 方法形成的形式化表达
方法形成可以形式化表示为:
Mf=F(D,K,C,De)M_f = F(D,K,C,De)
其中:
- DD:Demand,需求结构
- KK:Knowledge,知识结构
- CC:Capability,能力结构
- DeDe:Decision,决策结果
- MfM_f:形成的方法
进一步展开:
Mf=F(Goal,Object,Attribute,Knowledge,Capability,Condition,Constraint,Decision,Rule,Operation)M_f = F( Goal, Object, Attribute, Knowledge, Capability, Condition, Constraint, Decision, Rule, Operation )
方法执行则为:
Mi=Instantiate(Mf,Object,Parameter,State,Scene)M_i = Instantiate( M_f, Object, Parameter, State, Scene )
最终:
Result=Execute(Mi)Result = Execute(M_i)
并通过:
Validation(Result,Goal,Condition,Constraint)Validation(Result,Goal,Condition,Constraint)
判断方法是否有效。
因此:
MethodFormation≠MethodExecutionMethodFormation \neq MethodExecution MethodExecution≠MethodValidationMethodExecution \neq MethodValidation
三个过程分别对应:
形成方法、执行方法、验证方法。
5.27 方法形成的本质
从整个结构智能体系来看,方法形成实际上完成了一个重要转换:
Knowledge→Capability→Decision→MethodKnowledge \rightarrow Capability \rightarrow Decision \rightarrow Method
知识回答:
已经知道什么。
能力回答:
能够处理什么。
决策回答:
当前应该选择什么。
方法回答:
应该怎样把选择转化为解决问题的执行过程。
因此:
Knowledge≠CapabilityKnowledge\neq Capability Capability≠DecisionCapability\neq Decision Decision≠MethodDecision\neq Method
但四者又具有连续的结构关系:
Knowledge→Capability→Decision→MethodKnowledge \rightarrow Capability \rightarrow Decision \rightarrow Method
这就是结构智能中的问题解决结构。
5.28 方法形成与结构智能
结构智能并不是把已有知识、能力和规则简单堆积起来。
其核心在于:
将不同结构之间建立可以执行的关系。
需求提供目标结构;
知识提供内容结构;
能力提供任务处理结构;
决策提供选择结构;
方法提供执行组织结构;
操作提供具体计算结构;
结果提供反馈结构。
因此:
StructuralIntelligence=Structure+Matching+Binding+Operation+Decision+Method+FeedbackStructuralIntelligence = Structure + Matching + Binding + Operation + Decision + Method + Feedback
其中方法形成承担了一个关键连接作用:
Decision→Method→ActionDecision \rightarrow Method \rightarrow Action
它把:
“应该做什么”
转换为:
“怎样完成这个目标”。
5.29 方法形成后的执行链
方法形成以后,完整解决问题过程可以进一步表示为:
需求→需求结构→知识匹配→知识语义理解→认知结果→能力匹配→能力调用→决策能力→决策→方法形成→方法选择→方法实例化→对象绑定→参数绑定→类方法调用→运算→结果→验证→行动→反馈→场景更新→再认知需求 \rightarrow 需求结构 \rightarrow 知识匹配 \rightarrow 知识语义理解 \rightarrow 认知结果 \rightarrow 能力匹配 \rightarrow 能力调用 \rightarrow 决策能力 \rightarrow 决策 \rightarrow 方法形成 \rightarrow 方法选择 \rightarrow 方法实例化 \rightarrow 对象绑定 \rightarrow 参数绑定 \rightarrow 类方法调用 \rightarrow 运算 \rightarrow 结果 \rightarrow 验证 \rightarrow 行动 \rightarrow 反馈 \rightarrow 场景更新 \rightarrow 再认知
因此,方法并不是整个智能过程的终点。
它是从:
DecisionDecision
进入:
ActionAction
的中间结构。
5.30 方法形成与持续智能循环
当方法真正执行以后,世界状态可能发生变化。
因此:
Action→WorldChangeAction \rightarrow WorldChange
世界变化产生:
FeedbackFeedback
反馈再次进入:
Perception→Element→KnowledgeMatching→SemanticUnderstanding→CognitionPerception \rightarrow Element \rightarrow KnowledgeMatching \rightarrow SemanticUnderstanding \rightarrow Cognition
于是形成:
Cognition→Capability→Decision→Method→Action→WorldChange→Feedback→ReCognitionCognition \rightarrow Capability \rightarrow Decision \rightarrow Method \rightarrow Action \rightarrow WorldChange \rightarrow Feedback \rightarrow ReCognition
方法由此成为持续智能循环中的执行组织结构。
5.31 本章结论
方法形成不是简单地把几个步骤排列起来,也不是从知识库中直接取出一个答案。
它是在需求驱动下,经过知识获取、知识结构化、能力匹配和决策以后,将多个结构组织成可执行解决路径的过程。
其核心关系为:
需求+知识+能力+决策→方法\boxed{ 需求 + 知识 + 能力 + 决策 \rightarrow 方法 }
进一步:
需求→知识结构→能力结构→决策能力→决策→方法形成\boxed{ 需求 \rightarrow 知识结构 \rightarrow 能力结构 \rightarrow 决策能力 \rightarrow 决策 \rightarrow 方法形成 }
形成后的方法再通过:
方法→方法实例化→对象绑定→参数绑定→类方法→运算→结果→验证\boxed{ 方法 \rightarrow 方法实例化 \rightarrow 对象绑定 \rightarrow 参数绑定 \rightarrow 类方法 \rightarrow 运算 \rightarrow 结果 \rightarrow 验证 }
进入实际执行。
如果执行成功:
SuccessfulMethod→Validation→ReusableMethodSuccessfulMethod \rightarrow Validation \rightarrow ReusableMethod
如果执行失败:
MethodFailure→GapDetection→Learning→MethodReformationMethodFailure \rightarrow GapDetection \rightarrow Learning \rightarrow MethodReformation
因此,方法形成不仅是解决当前问题的过程,也是结构智能形成可复用解决能力的重要过程。
最终可以将本章的核心理论概括为:
需求决定问题目标,知识提供解决问题所需要的结构化内容,能力提供对知识和对象进行处理的能力,决策确定当前问题的解决方向,方法则将需求、知识、能力和决策组织成为能够实例化、执行、验证和复用的解决问题结构。
由此形成:
需求→知识→能力→决策→方法→执行→验证→反馈→再学习\boxed{ 需求 \rightarrow 知识 \rightarrow 能力 \rightarrow 决策 \rightarrow 方法 \rightarrow 执行 \rightarrow 验证 \rightarrow 反馈 \rightarrow 再学习 }
这构成了 WSaiOS-SI 中从“知道”到“能够”,从“能够”到“选择”,再从“选择”到“解决”的完整结构链。
更进一步:
Knowledge→Capability→Decision→Method→Action→Feedback\boxed{ Knowledge \rightarrow Capability \rightarrow Decision \rightarrow Method \rightarrow Action \rightarrow Feedback }
构成结构智能解决现实问题的核心执行闭环。
方法因此不只是一个程序步骤集合,而是知识、能力和决策经过结构组织以后形成的可执行智能结构。