-
securityA
license-
qualityA Model Context Protocol (MCP) server that exposes MiniZinc constraint solving capabilities to Large Language Models.
Last updated -
83
Python
MIT License
使用 Google OR-Tools 进行约束求解的模型上下文协议 (MCP) 服务器实现。该实现旨在通过标准化约束模型规范与大型语言模型配合使用。
MCP-ORTools 通过模型上下文协议将 Google 的 OR-Tools 约束编程求解器与大型语言模型相集成,使 AI 模型能够:
%APPDATA%\Claude\claude_desktop_config.json
(Windows) 或~/Library/Application Support/Claude/claude_desktop_config.json
(macOS) 创建配置文件:模型以 JSON 格式指定,包含三个主要部分:
variables
:定义变量及其域constraints
:使用 OR-Tools 方法的约束列表objective
:可选优化目标约束必须使用 OR-Tools 方法语法:
.__le__()
表示小于或等于 (<=).__ge__()
表示大于或等于 (>=).__eq__()
表示相等 (==).__ne__()
表示不等于 (!=)示例:选择值为 [3,1,2,1]、权重为 [2,2,1,1] 的项目,总权重限制为 2。
附加约束示例:
开发设置:
求解器以 JSON 格式返回解决方案:
状态值:
MIT 许可证 - 详情请参阅许可证文件
This server cannot be installed
MCP-ORTools 通过 MCP 将 Google 的 OR-Tools 约束编程求解器与大型语言模型相集成,使 AI 模型能够:
提交并验证约束模型 设置模型参数 解决约束满足和优化问题 检索并分析解决方案
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Jacck/mcp-ortools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server