第23章 目标与约束
23.1 目标与约束的定义
第20章建立了 Cognition 的定义:
Perception
+
Knowledge
+
State
+
Scene
+
Experience
+
Goal
↓
Cognition
第21章建立了场景认知:
Scene
↓
Object
↓
Attribute
↓
Relation
↓
State
↓
Scene Cognition
第22章进一步建立知识驱动认知:
Knowledge
+
Scene
↓
Cognitive Computation
↓
Cognitive State
但是,认知还缺少一个重要因素:
个体为什么要进行这些计算?
答案是:
Goal|目标
同时,即使存在目标,也不能任意实现。
因为真实世界中存在:
Constraint
Condition
Risk
所以第23章建立:
Goal
+
Condition
+
Constraint
+
Risk
↓
Cognitive State
↓
Decision
由此,目标与约束成为认知系统从“理解世界”进入“决定行动”的关键结构。
23.2 Goal 的定义
Goal 是人工个体希望通过行为和行动使系统或环境达到的目标状态、目标结果或目标条件。
简单定义:
Goal 是人工个体希望当前状态经过一系列变化后达到的目标状态。
因此 Goal 不是一句文字描述。
它应该能够被结构化表示。
例如:
Current State
Position = A
Goal
Position = B
目标实际上定义了:
Current State
↓
Gap
↓
Target State
因此:
Goal
=
Desired State
+
Desired Result
+
Desired Condition
23.3 Goal 与 Current State
目标必须与当前状态结合。
没有当前状态:
Goal
只是一个目标定义。
加入当前状态:
Current State
+
Goal
↓
State-Goal Gap
例如:
Current:
Door = Closed
Goal:
Door = Open
计算:
Closed
↓
Open
得到:
Required State Transition
进一步:
State-Goal Gap
↓
Capability Requirement
↓
Method
↓
Action
因此:
目标定义未来,状态定义现在,二者之间的差异产生行动需求。
23.4 Goal 的结构
Goal 可以抽象为:
Goal
├── Goal Identity
├── Goal Type
├── Target Object
├── Current State
├── Target State
├── Desired Result
├── Conditions
├── Constraints
├── Priority
├── Deadline
├── Risk Tolerance
├── Required Capability
└── Goal State
例如:
Goal:
Move Cup to Table-B
可以表示为:
Target Object = Cup
Current Position = Table-A
Target Position = Table-B
Required State = Located(Table-B)
Constraint = Avoid Obstacle
Risk = Do not Drop
这样目标才能真正进入认知计算。
23.5 Goal 的类型
目标可以按照不同维度划分。
状态目标
Object State
→
Target State
例如:
Door Closed → Door Open
位置目标
Current Position
→
Target Position
行为目标
Perform Behavior
结果目标
Produce Desired Result
条件目标
Environment satisfies Condition
复合目标
Goal A
+
Goal B
+
Goal C
↓
Composite Goal
这与第19章的能力组合形成对应:
Composite Goal
↓
Required Capabilities
↓
Capability Composition
23.6 Constraint 的定义
Constraint 是对目标实现过程、参数、行为、行动和结果施加的限制条件。
简单定义:
Constraint 定义“为了实现目标,什么可以做、什么不能做,以及必须满足什么边界”。
例如:
Goal:
Move Object A to B
Constraint:
Do not collide
Do not exceed force limit
Stay within reachable area
因此:
Goal
= What should happen
Constraint
= What limits how it can happen
目标决定方向。
约束决定边界。
23.7 Goal 与 Constraint 的关系
二者不是对立关系。
Goal
+
Constraint
↓
Valid Goal Execution Space
例如:
Goal:
Move from A → B
Constraint:
Obstacle exists
那么并不是:
A → B
的所有路径都有效。
而是:
A
\
\ Invalid
X Obstacle
/
/
B
必须在约束空间中寻找:
Valid Path
因此:
目标定义需要达到什么结果,约束定义达到该结果时允许存在的行动空间。
23.8 Condition 的定义
Condition 是能力、方法、行为、行动或目标成立所需要满足的具体条件。
它与 Constraint 很接近,但两者功能不同。
Condition
= What must be true
Constraint
= What must not be violated
例如:
Condition:
Object must be reachable
而:
Constraint:
Force must not exceed maximum
所以:
Condition
↓
Capability Can Be Activated
Constraint
↓
Capability Must Stay Within Boundary
23.9 Condition 的层级
条件可以存在于多个层次。
Goal Condition
目标成立所需条件:
Goal
↓
Goal Condition
Capability Condition
能力可以使用的条件:
Capability
↓
Precondition
Method Condition
某个方法能够使用的条件:
Method
↓
Method Condition
Action Condition
行动能够执行的条件:
Action
↓
Action Condition
因此:
Goal
↓
Capability
↓
Method
↓
Behavior
↓
Action
每一层都可以拥有自己的 Condition。
23.10 Condition 与 State
Condition 并不是独立存在的。
它通常来自状态判断。
例如:
Condition:
Door must be unlocked
当前状态:
Door = Locked
那么:
Current State
≠
Required Condition
于是:
Capability Unavailable
如果:
Door = Unlocked
则:
Condition Satisfied
↓
Capability Available
因此:
State
↓
Condition Evaluation
↓
Available / Unavailable
23.11 Risk 的定义
Risk 是某个目标、行为、方法或行动在当前条件下可能产生的不利结果及其发生可能性或影响程度。
简单定义:
Risk 描述“如果这样做,可能发生什么不希望发生的结果”。
例如:
Goal:
Move Cup
Risk:
Cup may fall
或者:
Action:
Increase Force
Risk:
Object may be damaged
风险因此不是单纯的危险标签。
它应该进入认知计算。
23.12 Risk 的基本结构
Risk 可以表示为:
Risk
├── Risk Identity
├── Source
├── Trigger Condition
├── Probability
├── Impact
├── Severity
├── Exposure
├── Affected Object
├── Possible Result
├── Mitigation Method
└── Risk State
核心关系:
Potential Event
↓
Probability
+
Impact
↓
Risk
因此:
Risk ≠ Danger
Risk 是对潜在不利结果进行结构化计算后的认知对象。
23.13 Risk 与 Constraint
Risk 可以形成 Constraint。
例如:
Risk:
Object may fall
系统可以产生:
Constraint:
Grip Force ≥ Minimum
于是:
Risk
↓
Risk Evaluation
↓
Constraint
↓
Method Selection
因此风险并不是认知的终点。
风险可以改变:
Capability
Method
Behavior
Action
23.14 Risk 与 Goal
目标并不意味着可以不考虑风险。
真实认知过程是:
Goal
+
Risk
↓
Goal Evaluation
例如:
Goal:
Reach Target
如果直接行动风险很高:
Risk:
Collision
则系统可能:
Goal
↓
Risk Evaluation
↓
Alternative Method
因此:
目标提供行动方向,风险决定行动是否值得以及需要采取什么保护措施。
23.15 Cognition State
第22章已经定义:
Cognitive State 是人工个体在某一时刻经过认知计算后形成的当前内部认知结构。
第23章进一步加入:
Goal
Condition
Constraint
Risk
于是认知状态不再只是:
What is happening?
而是进一步包含:
What is happening?
+
What should happen?
+
What must be true?
+
What must not happen?
+
What may go wrong?
因此新的 Cognitive State 可以表示为:
Cognitive State
├── Current Scene
├── Current Objects
├── Current Attributes
├── Current Relations
├── Current States
├── Current Knowledge
├── Goal
├── Goal Gap
├── Conditions
├── Constraints
├── Risks
├── Available Capabilities
├── Selected Method
└── Cognitive Confidence
23.16 Goal Gap
Goal 与 State 之间存在一个非常重要的结构:
Goal Gap|目标差距
Current State
↓
Compare
↑
Goal
↓
Goal Gap
例如:
Current:
Door = Closed
Goal:
Door = Open
计算:
Goal Gap:
Closed → Open
目标差距决定:
Required State Transition
进一步决定:
Required Capability
所以:
Current State
+
Goal
↓
Goal Gap
↓
Capability Requirement
这是第17章能力匹配的重要前置结构。
23.17 Constraint Space
目标并不是在无限行动空间中实现。
而是在约束空间中实现。
All Possible Actions
↓
Constraint Filtering
↓
Valid Actions
例如:
All Methods
├── Method A
├── Method B
├── Method C
├── Method D
└── Method E
经过约束:
Constraint
├── Force Limit
├── Distance Limit
├── Device Limit
├── Object Condition
└── Safety Boundary
最终:
Valid Methods
├── Method B
└── Method D
因此:
约束是从可能空间中筛选可行空间的重要认知机制。
23.18 Condition、Constraint、Risk 三者的区别
三者必须严格区分。
Condition
↓
必须成立什么
Constraint
↓
不能违反什么
Risk
↓
可能发生什么不利结果
例如:
Goal:
Move Cup
Condition:
Cup must be reachable
Constraint:
Grip force must stay below damage limit
Risk:
Cup may fall
三者形成:
Condition
↓
Can I do it?
Constraint
↓
How far can I go?
Risk
↓
What may go wrong?
23.19 四者进入认知计算
完整计算关系:
Current Scene
+
Knowledge
+
Goal
+
Condition
+
Constraint
+
Risk
↓
Cognitive Computation
↓
Cognitive State
↓
Capability Matching
↓
Method Selection
因此目标与约束不是认知系统外部的附加信息。
它们本身就是认知计算的重要输入。
23.20 Cognition State 的变化
认知状态会随着目标、条件、约束和风险变化。
例如:
Cognitive State₁
Goal:
Move Object
Condition:
Reachable
Risk:
Low
后来:
Obstacle Detected
导致:
Constraint Changed
于是:
Risk Increased
最终:
Cognitive State₂
可能产生:
Original Method → Invalid
Alternative Method → Required
因此:
Scene Change
↓
Condition Change
↓
Constraint Change
↓
Risk Change
↓
Cognitive State Change
↓
Method Re-Selection
23.21 目标冲突
复杂个体可能同时存在多个目标:
Goal A
Goal B
Goal C
这些目标可能发生冲突。
例如:
Goal A:
Reach Target Quickly
Goal B:
Minimize Risk
两个目标可能要求不同的行为。
于是需要:
Goal Evaluation
↓
Priority
↓
Constraint
↓
Risk
↓
Goal Selection
最终:
Selected Goal
进入能力匹配。
23.22 目标优先级
Goal 可以具有优先级:
Goal A = Priority 10
Goal B = Priority 7
Goal C = Priority 3
但优先级并不意味着可以忽略约束。
例如:
High Priority Goal
+
Safety Constraint
即使目标优先级高:
Constraint cannot be violated
因此:
Priority
↓
Goal Selection
Constraint
↓
Execution Boundary
Risk
↓
Execution Evaluation
23.23 目标、能力和认知
前面能力系统建立:
Current State
+
Current Goal
↓
State-Goal Gap
↓
Required Capability
↓
Capability Matching
第23章进一步补充:
Current State
+
Goal
+
Condition
+
Constraint
+
Risk
↓
Cognition
↓
Required Capability
↓
Capability Matching
因此能力匹配不再是简单的:
Goal → Capability
而是:
Goal
+
Current State
+
Conditions
+
Constraints
+
Risks
↓
Capability Requirement
↓
Capability Matching
这使能力选择真正进入情境认知。
23.24 目标与能力实例化
第18章建立了:
Generic Capability
↓
Object Binding
↓
Scene Binding
↓
Parameter Assignment
↓
Capability Instance
现在可以进一步加入:
Goal
+
Condition
+
Constraint
+
Risk
形成:
Goal
↓
Required Capability
↓
Capability Matching
↓
Capability Instance
↓
Condition Validation
↓
Constraint Validation
↓
Risk Evaluation
↓
Executable Capability
因此:
能力实例化不仅需要参数化,还必须通过当前目标、条件、约束和风险验证。
23.25 从认知到行动
完整链条:
Scene
↓
Knowledge
↓
Cognition
↓
Goal
↓
Goal Gap
↓
Condition
↓
Constraint
↓
Risk
↓
Capability
↓
Method
↓
Behavior
↓
Action
↓
Execution
行动并不是认知的直接输出。
中间存在大量计算层:
Cognition
↓
Goal Evaluation
↓
Feasibility
↓
Risk Evaluation
↓
Capability Matching
↓
Method Selection
↓
Behavior
↓
Action
这使 ICAI 的行动产生机制具有明确的结构基础。
23.26 执行后的反馈
目标与约束还必须接受执行结果验证。
Goal
↓
Action
↓
Execution
↓
Result
↓
Goal Evaluation
如果:
Goal Achieved
则:
Cognitive State → Goal Completed
如果:
Goal Not Achieved
则:
Cognitive State
↓
Failure Recognition
↓
Re-Cognition
↓
Alternative Capability
如果:
Unexpected Risk
则:
Risk Update
↓
Constraint Update
↓
Method Re-Selection
因此:
Execution
↓
Feedback
↓
Goal Evaluation
↓
Constraint Evaluation
↓
Risk Evaluation
↓
Cognitive State Update
23.27 目标—约束—认知闭环
最终形成:
Current Scene
↓
Cognition
↓
Goal
↓
Goal Gap
↓
┌────────┼────────┐
↓ ↓ ↓
Condition Constraint Risk
└────────┼────────┘
↓
Capability Matching
↓
Method Selection
↓
Behavior
↓
Action
↓
Execution
↓
Feedback
↓
Cognitive State
↓
Re-Cognition
这说明:
目标决定认知方向,约束决定认知边界,条件决定认知可行性,风险决定认知谨慎程度,认知状态保存当前综合判断。
23.28 认知状态的最终结构
综合第22章与第23章,可以将 Cognitive State 定义为:
Cognitive State
│
├── Scene
│
├── Objects
│
├── Attributes
│
├── Relations
│
├── States
│
├── Events
│
├── Current Knowledge
│
├── Historical Knowledge
│
├── Scene Knowledge
│
├── Capability Knowledge
│
├── Goal
│
├── Goal Gap
│
├── Conditions
│
├── Constraints
│
├── Risks
│
├── Available Capabilities
│
├── Selected Capability
│
├── Selected Method
│
├── Prediction
│
├── Confidence
│
└── Cognitive Status
这使认知状态成为一个真正的综合结构。
23.29 Cognitive State 的核心作用
Cognitive State 不只是保存信息。
它承担三个核心任务:
第一:描述当前世界
What is happening?
第二:描述当前目标
What should happen?
第三:描述行动边界
What can happen?
What cannot happen?
What may go wrong?
因此:
Cognitive State
=
Current Situation
+
Goal
+
Feasibility
+
Constraint
+
Risk
+
Action Basis
23.30 第23章的理论位置
第20章:
Cognition
定义认知是什么。
第21章:
Scene Cognition
定义如何认知当前场景。
第22章:
Knowledge-Driven Cognition
定义知识如何驱动认知。
第23章:
Goal + Constraint
定义认知为什么产生方向,以及认知行动受到什么边界。
因此形成:
第20章
Cognition
↓
认知是什么
第21章
Scene Cognition
↓
认知当前场景
第22章
Knowledge-Driven Cognition
↓
知识驱动认知
第23章
Goal + Constraint
↓
目标与约束驱动认知方向
23.31 完整认知控制结构
至此,可以建立一个更完整的 ICAI 认知模型:
WORLD
│
↓
PERCEPTION
│
↓
SCENE
│
↓
┌───────────────────────┐
│ KNOWLEDGE │
│ │
│ Current │
│ Historical │
│ Scene │
│ Capability │
└───────────┬───────────┘
↓
COGNITIVE COMPUTATION
│
↓
COGNITIVE STATE
│
┌─────────┴─────────┐
↓ ↓
GOAL CURRENT STATE
│ │
└─────────┬─────────┘
↓
GOAL GAP
↓
CONDITION CHECK
↓
CONSTRAINT CHECK
↓
RISK ANALYSIS
↓
CAPABILITY MATCHING
↓
METHOD SELECTION
↓
BEHAVIOR
↓
ACTION
↓
EXECUTION
↓
FEEDBACK
↓
STATE / KNOWLEDGE
UPDATE
↓
RE-COGNITION
23.32 目标与约束的本质关系
最终可以把五个核心概念压缩为:
Goal
↓
我要达到什么?
Condition
↓
什么必须成立?
Constraint
↓
什么不能违反?
Risk
↓
什么可能出问题?
Cognitive State
↓
基于以上信息,我现在如何认知和判断?
它们共同组成认知系统中的目标控制结构。
核心结论
第23章可以最终归纳为:
目标为认知提供方向,条件定义认知和行动成立的前提,约束定义可行空间的边界,风险描述可能产生的不利结果,而认知状态则将当前场景、知识、目标、条件、约束和风险综合为个体当前的内部判断。
核心结构:
Current Scene
+
Knowledge
+
Goal
+
Condition
+
Constraint
+
Risk
↓
Cognitive Computation
↓
Cognitive State
↓
Goal Gap
↓
Capability Matching
↓
Method Selection
↓
Behavior
↓
Action
↓
Execution
↓
Feedback
↓
Re-Cognition
因此,WSaiOS-ICAI 中的认知已经不再只是:
“我知道现在发生了什么”
而是进一步成为:
“我知道现在发生了什么”
+
“我希望发生什么”
+
“实现目标需要满足什么”
+
“哪些边界不能突破”
+
“可能产生什么风险”
↓
“基于这些信息,我现在应该如何行动”
由此,Goal、Condition、Constraint、Risk 与 Cognitive State 共同把认知从“场景理解”推进到“目标导向的认知控制”,为后续的决策、计划、方法选择、行为生成和行动控制建立理论基础。