Moges AI-APS Whitepaper: Rejecting Blind Automation with Google OR-Tools and Qwen-4B

2026-03-13 18:37:00

In the current market for intelligent manufacturing software, hype often obscures the true nature of the technology. Many systems boast "AI-powered scheduling" and "large model decision-making," but their internal logic is often flawed: either they use simple rules to disguise a "fake APS," leading to incorrect sequencing and scrap; or they attempt to use large models to directly calculate scheduling, resulting in "fabricated" and "extremely slow" responses; or, in the face of capacity constraints, they are unable to find a solution and simply report errors without offering any suggestions.

For the mold machining industry, this "blind automation" is fatal.

Kunshan Moges Information Technology Co., Ltd. (Moges) adheres to the principles of "**transparent technology and practical architecture**." Our production management system does not rely on abstract concepts, but instead builds a four-layer defense system consisting of "**mathematical solutions + lightweight AI + human-machine collaboration + real-time dynamic rescheduling**," creating a truly "intelligent" solution specifically tailored for the mold industry.

Today, we are unveiling the core architecture of the Moges system for the first time.

  1. Underlying Engine: A rigid APS scheduling core based on Google OR-Tools.

  2. Interactive Brain: A lightweight industrial memory assistant based on Qwen-4B + RAG.

  3. Exception Handling: A unique "AI-assisted human decision-making" closed-loop mechanism.

  4. Dynamic Response: Event-driven real-time rescheduling and visual Gantt charts.

I. Technical Debunking: Why we firmly reject using AI to directly perform APS?

In the market, some vendors often claim to "generate scheduling with a large model in one click." From Moges' perspective, this is not only unprofessional but also irresponsible in terms of production safety. After rigorous testing and validation, we have found that large language models (LLMs) are inherently unsuitable for APS scheduling, due to the following reasons:

1. Fatal Flaw: AI can "hallucinate" or make up information.

  • Underlying limitations: Large language models are based on probabilistic prediction of the next word, and they do not understand mathematical logic or physical constraints.

  • Actual consequences: If you allow AI to schedule, it may fabricate non-existent equipment downtime or arbitrarily reverse the process order (e.g., roughing before finishing) solely to "meet deadlines."

  • Risks: In the mold industry, incorrect process order directly results in the scrap of the workpiece, and equipment conflicts pose a risk of collisions. The "hallucinations" of AI are completely unacceptable in industrial environments.

  • Moges Solution: Scheduling must be handled by a mathematical solver. Only algorithms based on strict logical constraints (such as CP-SAT) can guarantee that every time point and every operation is absolutely realistic and feasible.

2. Performance Bottleneck: AI response is "extremely slow," unable to handle dynamic changes.

  • Speed Issues: When processing complex logical reasoning with large models, the latency is extremely high. Generating a schedule containing thousands of operations, a large model may take several minutes or even longer, and the results are often unusable.

  • Real-time requirements: The mold shop environment is highly dynamic (new orders, equipment failures, broken tools). The APS system must recalculate the optimal solution within seconds.

  • Moges Solution: Google OR-Tools can complete the traversal and solution of millions of possibilities in seconds. Unlike AI, which struggles even to get the "right" answer, OR-Tools provides significantly faster results.

Conclusion: AI excels at "understanding, interaction, and recommendations," while mathematical solvers excel at "calculation and optimization." Moges adheres to the principle of **"Experts doing what they do best"**: using OR-Tools for scheduling and AI for assistance.

II. The Truth About APS: Perfect Balance of Rigid Constraints, Dynamic Prioritization, and Resource Maximization

The core of mold machining is a "multi-objective resource scheduling problem with strong constraints." The Moges APS engine not only ensures safety (no scrap), on-time delivery (no delays), but also maximizes efficiency (no idle time).

1. Strict Rule: Process sequence must not be changed arbitrarily (safety baseline)

  • Risk: If the algorithm, in its attempt to "shorten production time," inappropriately moves "finishing" operations to "heat treatment" earlier in the process, the workpiece will undergo thermal deformation and be directly scrapped.

  • Moges' Strategy: Rigid Locking.
    Within the Moges system, the routing is a strict, unchangeable constraint. The APS engine will not, and is not permitted to, automatically adjust the order of operations. This is our commitment to the security of our customers' assets.

  • Exception Handling: For specific cases where the order needs to be adjusted, the system provides a "**Manual Intervention Interface**". Only experienced process supervisors can manually mark and specify the new path. High-risk decisions should be left to humans, while high-volume calculations should be handled by the machine.

2. Backed by top-tier algorithms: Google OR-Tools (CP-SAT)

Since the sequence cannot be changed, what good is APS? It's about "queue logic," "resource matching," and "ultimate efficiency!"
When hundreds of orders and thousands of operations compete for limited CNC equipment, Moges directly utilizes the CP-SAT (Constraint Programming - Satisfiability) solver from Google OR-Tools as its underlying engine.

  • What is OR-Tools? It is a world-class optimization toolkit from Google, which is open source. Its CP-SAT solver represents the highest global level in solving large-scale integer programming and constraint satisfaction problems.

  • Why choose it? Because it can handle both hard constraints (process sequence, equipment exclusivity) and soft objectives (priority, utilization) simultaneously, and find the global optimal solution in seconds.

3. Core Objective 1: Four-Dimensional Dynamic Prioritization (Ensuring Delivery)

By leveraging OR-Tools, we translate the real-world logic of mold production into the primary weights of a multi-objective optimization function, ensuring that critical orders are prioritized for delivery.

  1. Customer Tier Weight ($W_1$): VIP customers' orders automatically receive a high priority queuing right.

  2. Urgency of Delivery ($W_2$): Based on Remaining time / Remaining work hours The dynamic coefficient, with a shorter delivery period, exhibits an exponential increase in priority.

  3. Total labor hours for parts ($W_3$): Shortest Job First (SJF) strategy, quickly process small orders, and improve equipment turnover rate.

  4. Remaining Workload ($W_4$): Identify orders that have been in progress for a long time but still have a significant amount of work remaining, preventing them from being indefinitely delayed.

4. Second core objective: Maximize resource utilization (reduce costs) – Moges' unique advantages

Simply meeting delivery deadlines is not enough. CNC equipment for the mold industry costs millions, and highly skilled technicians command high salaries. Even a single minute of idle equipment represents a significant financial loss.
The Moges APS engine defines **"maximizing resource utilization"** as the core optimization objective.

  • Device Idle Time Algorithm:

    • OR-Tools automatically identifies "**small gaps**" between processes. For example, in the gap while a long workpiece is being processed, a short workpiece loading or inspection process is automatically inserted to fill the time void.

    • Continuous Processing Optimization: The algorithm prioritizes arranging consecutive processing steps with the same material and tool requirements, minimizing tool changes and machine adjustments (Setup Time), thereby effectively increasing the actual processing time.

  • Personnel Skill Matching:

    • The system not only manages equipment, but also manages personnel. It identifies the skills of technicians (such as "proficient in 5-axis machining" or "proficient in precision grinding") and assigns complex parts to the most suitable person, avoiding inefficiencies caused by misallocation of skills.

    • Load balancing: Prevents one operator from being overloaded while another is idle, ensuring maximum overall human capacity utilization.

  • Precise integration of external vendor time windows:

    • For outsourced processes such as heat treatment, electroplating, and blackening, the system enforces a fixed "out - return" time window, and utilizes this "vacuum period" to schedule other internal processes. This ensures that equipment and personnel remain in operation during the waiting period for the outsourced process to complete.

Algorithm Formula Illustration (Simplified Version):

Results: The plan implemented by Moges not only met the targets, but exceeded them. Every piece of equipment and every worker's time was utilized to the maximum, directly translating into increased net profit for the factory.

Three, Breaking Boundaries: When APS "Can't Calculate," How Can AI Assist Human Decision-Making?

Even the most powerful mathematical solvers can encounter "**Infeasible**" situations. For example: the total order volume exceeds the factory's maximum capacity (leading to task overflow), or a sudden equipment failure inevitably leads to a delay in production.
At this point, the APS will return an "Infeasible" status. Many systems get stuck at this point, only displaying errors without providing a solution.

Moges' innovation lies in: introducing AI as a "negotiation expert" and building a "human-machine collaboration" closed-loop.

1. Scenario: Task Overflow (Insufficient Capacity)

When OR-Tools detects that it is impossible to meet all deadlines regardless of scheduling:

  • Traditional Systems: Display a red warning message indicating "Scheduling Failed," leaving the planner with a large number of Excel spreadsheets to manually adjust.

  • Moges Solution: Qwen-4B AI actively intervenes in conversations.

    • AI Report: "Warning: Current order volume exceeds capacity by 15%, with an estimated 3 orders (#A01, #B05, #C12) that are likely to be unable to be delivered on time."

    • AI Analysis: "Based on historical data, customer #B05 has a high tolerance for delivery lead times; some processes in order #C12 can be outsourced."

    • AI Recommendation: "Recommended Solution: 1. Communicate with the customer to extend the deadline for #B05 by 2 days; 2. Outsource the rough processing process for #C12. Accepting either of these solutions will resolve the overflow issue."

2. Interactivity: Decision-making driven by natural language

The planner doesn't need to manually drag and drop in complex tables; instead, they can interact with AI through a dialog box:

  • Planner: "Convert job #C12 to external processing and reschedule."

  • AI Execution:

  1. Understand the instructions and call the backend API to modify the process route for #C12 (marked as external).

  2. Trigger a re-run of the Google OR-Tools scheduling algorithm.

  3. Instant feedback: "Rescheduling complete. All orders are now on schedule, and equipment utilization remains at 92%."

3. Value: Let machines handle calculations, and let humans make decisions.

  • APS: Responsible for finding the optimal solution within the feasible domain.

  • AI: Responsible for finding solutions within infeasible domains and acting as a translator between humans and the system.

  • Person: Responsible for making the final business decisions (whether to extend the deadline, whether to outsource, or whether to work overtime).

This architecture maintains the rigor of the mathematical algorithms while also providing the system with the flexibility to handle extreme anomalies.

IV. Dynamic Response: Event-driven, real-time rescheduling and visualization of trust.

The mold workshop is dynamic, and plans are constantly falling behind. The Moges system, with its event-driven mechanism and visual explanations, ensures that plans always remain "up-to-date" and "reliable".

1. Event-driven "Real-time Dynamic Rescheduling"

Scheduling is not a one-time, static task, but rather a dynamic process that is triggered by events.

  • Trigger mechanisms: The system continuously monitors and listens for various "disruption events":

    • Equipment Layer: IoT signals detect spindle alarms, machine downtime, or maintenance completion.

    • Execution Layer: Workers scan and report their work status at the terminal, indicating "Completed Early," "Reported as Damaged," or "Requesting Leave."

    • Management: Sales personnel can insert "rush orders" or customer change requests.

  • Automatic Response:

    • Once an event occurs, the system automatically triggers OR-Tools to perform incremental rescheduling.

    • Localized Optimization: The algorithm only adjusts the affected process chains, maintaining the stability of other unaffected parts, thereby avoiding large-scale disruptions caused by "pulling one thread and affecting the whole."

  • Effect: Transitioning from "post-mortem correction" to **"instant self-healing"**, ensuring that the schedule always reflects the latest and most accurate status of the factory.

2. "White-box" Gantt chart visualization

The scheduler refuses to use "black box" algorithms. Moges provides transparency and traceability, ensuring that every scheduling step is supported by data.

  • Interactive Gantt Chart: Clearly displays equipment utilization, workflow status, external vendor time windows, and personnel allocation.

  • AI Intelligent Annotation: Simply hover your mouse over any task block, and Qwen-4B will instantly generate an explanation, eliminating confusion.

    • This operation has been scheduled for Tuesday morning due to the following reasons: 1. The knife inventory was depleted on Monday; 2. We need to reserve the heat treatment time window for Wednesday; 3. This equipment currently has the lowest workload, and Mr. Wang (who is skilled in this type of work) is available.

  • Value: Transforming complex mathematical logic into business language that is understandable by humans, thereby establishing deep trust in the system for planners.

V. AI Foundation: Qwen-4B + RAG, a Super Assistant with Precise Memory

To support the complex interactions described above, we have adopted a pragmatic architecture: Qwen-4B + RAG, rather than blindly pursuing large parameter models.

1. The Practical Choice: Qwen-4B, a highly compact model.

  • Ultra-fast response: Millisecond-level latency, enabling real-time communication within the workshop.

  • Cost-effective private deployment: Deployable with a single card/CPU, keeping data within the internal network.

  • Strong Control: Focused on industrial terminology, minimizing ambiguity.

2. The core: RAG (Retrieval-Augmented Generation)

  • Working Principle: User Question -> Vector Search Database (Work Orders, Quality Inspection, Processes) -> Injection of Real Data -> Model Generates Precise Answers.

  • Application Scenarios:

    • Remembering process preferences: "Mr. Wang prefers a 10% slower speed when machining thin-walled parts."

    • Remember the key lesson: "Supplier A's steel exhibited inconsistent hardness last year."

    • Remember customer preferences: "Customer B requires additional polishing before acceptance."

Conclusion: Qwen-4B is responsible for understanding language, RAG is responsible for providing factual information, and OR-Tools is responsible for performing calculations. These three components work together to form the core of Moges.

6. Complete Control: Full mastery from algorithms to code.

The advanced technology must be based on independent and controllable development. All core logic of the Moges production management system is independently developed by Kunshan Moges Information Technology Co., Ltd. and has been certified by the National Copyright Bureau.

  • Software Name: Moges Production Management System

  • Registration Number: 2020SR0315660

  • Copyright: Kunshan Moges Information Technology Co., Ltd.

  • Completion date: July 1, 2018

This certificate represents our commitment:

  1. Not a shell solution: A technical team focused on deep-level algorithm optimization (OR-Tools modeling) and model fine-tuning (Qwen-4B RAG).

  2. Customizable: Easily adjust constraints or train on custom data sets, without being limited by commercial black boxes.

  3. Sustainable: Achieve source-level control, ensuring the system can evolve over time.

Seven. Conclusion: Not a replacement, but the strongest support.

This solution is the "best practice" developed by the Moges team, based on their extensive experience in the mold industry, which includes numerous on-site investigations, practical trials, and data validation.

Its core features lie in "**leveraging strengths and mitigating weaknesses, with each system handling its specific responsibilities**".

  • It leverages the computational power of Google OR-Tools to solve massive combinatorial optimization problems that are beyond human capabilities, enabling more comprehensive scheduling (considering all constraints and resources).

  • It leverages the speed of OR-Tools and the real-time responsiveness of AI, enabling dynamic adjustments at the second level, which were previously impossible for humans, resulting in faster scheduling.

  • It leverages the memory of Qwen-4B + RAG, resolving the issue of human tendency to forget historical experience and details, leading to more accurate decision-making.

However, we must emphasize one important point:

The goal of the Moges system is not to replace experienced planners.

Mold production is full of non-standard, unexpected, and interpersonal factors, which are things that cold algorithms cannot fully understand. True intelligence still lies with people.

  • The system handles 90% of repetitive calculations, resource matching, and anomaly alerts, freeing up planners from tedious Excel spreadsheets and endless phone coordination.

  • The planner, on the other hand, focuses on the 10% of core value: managing complex customer relationships, making critical business decisions (such as whether to outsource or work overtime), and using the system's "white-box" recommendations to make final decisions.

Moges: Your trusted "digital co-pilot."
It won't take control of the steering, but it will help you identify blind spots, plan the optimal route, and provide the best evasive strategy instantly when road conditions change.

Let us leverage real computing power and proprietary technology to build a genuine digital moat for your mold factory, enabling a perfect synergy between human intelligence and machine intelligence.

?Book a "real-world scenario" demo

We do not provide a generic demo; instead, we offer sandbox testing based on your specific process logic, allowing you to directly experience the power of "human-machine collaboration."

  • Validation Point 1: Maximum Load Capacity. Input orders exceeding production capacity and observe how the AI provides recommendations. See how you can make a one-click decision.

  • Validation Point 2: Rapid Response. Simulate equipment failures and observe how the system re-allocates tasks in seconds. This will save you X amount of adjustment time.

  • Validation Point 3: White-box Trust. Randomly click on operations to experience the AI's transparent explanations and verify whether it truly "understands" your factory.

  • Validation Point 4: Efficiency Comparison. Visually demonstrate the significant difference in resource utilization between the system's scheduling and manual scheduling.

  • Validation Point 5: Memory Test. Ask the AI about the details of past orders to verify its ability to "remember everything."

Kunshan Moges Information Technology Co., Ltd. (MOGES)

  • Official Website:moges.cn

  • Technical consultation hotline: 18625220688

  • Core Philosophy: Bring algorithms back to mathematics, enable AI to have memory, maximize resource utilization, achieve seamless human-machine collaboration, enable real-time adaptability of plans, and return production to common sense.

Moges AI-APS Technology White Paper.pdf


« Back to News list