LLM-Driven Historical Simulation: A Practical Framework for Constrained Multi-Objective Decision Making

    This article breaks down how large language models can be applied to historical simulation strategy games, reframing them as resource-constrained multi-objective optimization problems. It covers translating intent into structured resource actions, controlling the command chain in multi-agent systems, using templated prompts with verifiable constraints, sequencing capability foundations before process optimization, and front-loading early risk control. Readers will find reusable patterns for model selection, structured output design, and execution-loss handling.

    1. Problem Framing: From “Playing the Last Monarch” to Constrained Multi-Objective Decision Making

    The core of a historical simulation strategy game is not a trivia contest about historical knowledge. It is a resource-constrained multi-objective optimization problem: limited fiscal revenue, simultaneous disasters and rebellions, uneven talent capabilities, and decay in instruction execution. In technical terms, this means sequential decision making in an environment with a massive state space, delayed feedback, and an execution layer that loses resources along the way.

    One key observation from the original experience is that different models produce noticeably different strategy styles. Some are conservative and build overly long reasoning chains that slow progress, while others are better at quickly producing actionable plans. This suggests that model selection should not rely only on general benchmark scores. The real question is whether the task needs high-divergence solution generation or high-reliability constraint validation.

    2. Resource Scheduling: Every Strategy Must Become an Executable Allocation

    The first lesson is that all intent must be converted into concrete resource actions. Natural language descriptions alone cannot change the system state. In engineering terms, decisions must land as structured instructions rather than staying at the level of natural language suggestions.

    1. {
    2. "turn": 1,
    3. "action": "allocate_fund",
    4. "target": "disaster_relief",
    5. "amount": 120000,
    6. "expected_effect": "reduce_unrest",
    7. "fallback": "reallocate_from_treasury"
    8. }

    There are three key points. First, amount, target, and priority must be explicit. Second, reserve a loss coefficient for an execution layer that consumes resources, meaning the budget should be discounted before evaluating returns. Third, define a fallback action so that a single failure does not cause a global collapse.

    3. Roles and the Execution Layer: Keep the Command Chain Short

    The original text emphasizes using a single general, which is fundamentally about reducing command chain depth to limit instruction distortion. In a multi-agent system, this maps to a general principle: the more execution nodes there are, the higher the probability of goal decay and conflict.

    This can be abstracted into three role types:

    • Decision core: kept small, responsible for unified objectives.
    • Capability specialists: introduced by phase, such as finance, engineering, or technical roles.
    • Replaceable executors: used for phase-specific tasks, with permissions revoked once the task is complete.

    It is also worth maintaining state variables such as loyalty or compliance as a prior for instruction success rate, instead of assuming every instruction will be fully executed.

    4. Prompt Engineering: Write Goals as Verifiable Structures

    The original text mentions using an external tool to generate formal documents with target amounts written in. Technically, this is compiling vague intent into strongly constrained input. A reusable approach is a templated prompt:

    1. Role: strategy execution assistant
    2. Constraint: available resources this turn <= X
    3. Objective: resolve class A crises first, then class B
    4. Output: JSON containing action / target / amount / risk
    5. Prohibited: suggestions that cannot be quantified

    The key is three things: explicit constraints, structured output, and verifiable fields. This lets the system automatically validate and retry outputs rather than depending on the model’s self-discipline.

    5. Technical Roadmap: Capability Foundation First, Process Optimization Later

    The original technology priority (academics first, military second, management and politics last) abstracts to building the capability foundation before optimizing processes. The same applies to platform building: solve foundational capabilities such as compute, storage, and data pipelines first, then invest in governance and process work. Otherwise optimization has nothing to run on.

    6. Opening Strategy and Risk Control

    Handling resources and crises immediately at the start avoids snowballing loss of control. In engineering terms, this is front-loading early risk: eliminate risk sources that amplify exponentially, and concentrate resources on threats that can be cleared in one pass rather than making continuous small investments.

    In summary, the real value of this kind of simulation is training a transferable capability: compiling vague goals into structured instructions, reserving redundancy for execution loss, controlling decision chain length, and advancing in a foundation-first order.