Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
Google OR-Tools TSP 返回几个解决方案
我最近一直致力于使用 Google 的 OR Tools 寻找最佳路线以外的内容 我找到了一个仓库中的示例 https github com google or tools blob master examples dotnet cshar
c
travelingsalesman
ortools
使 K 不同(基数) google OR-TOOLS
我想知道 google or tools 中是否存在 Solver AllDifferent x 的泛化 允许指定我允许的不同元素的数量 因此 如果 len x 4 则 AllDifferent x 意味着 len set x 4 但是 如
Optimization
linearprogramming
constraintprogramming
ortools
无法在 mac 10.10 上安装 or-tools
我正在尝试在 mac 10 10 上安装 Google 的 or tools https code google com p or tools wiki OrToolsWithPyPi https code google com p or
python
MacOS
osxyosemite
PyPI
ortools
如何用Google OR工具绘制车辆路径问题解决方案?
我正在使用 Google OR 工具来解决 Python 中的简单车辆路径问题 我想以类似于 Google 教程的方式绘制求解器返回的解决方案 Google OR Tools 车辆路径问题教程解决方案 https i stack imgur
python
matplotlib
ortools
vehiclerouting
Google Or-Tools员工排班。条件无法正常工作
我在用着那个护士调度的例子 https developers google com optimization scheduling employee scheduling 我有 3 名员工 2 班次 7 天 我有一个条件 如果一名员工在 1
python
Scheduling
constraintprogramming
ortools
使用 OR 工具在 python 中进行约束优化:如何强制执行多级约束?
我有一个优化问题 我有一个 BoolVar 对象列表的列表 所以像这样 BoolVar1 BoolVar2 BoolVar3 BoolVar4 BoolVar5 BoolVar6 我需要评估以下内容 BoolVar1 BoolVar2 Bo
python
ortools
cpsatsolver
如何在 Ortools 中定义约束以设置不同值的限制
我试图定义一个约束来限制求解器生成的唯一值的数量 它可以生成尽可能多的重复项来解决问题 但唯一值有限制 为每个值创建一个布尔变量selected value这是正确的 当且仅当至少为它分配了一个值 为此 您将需要 2 组约束 从左到右 se
c
linearprogramming
constraintprogramming
ortools
从ortools获取SAT解决方案列表
我正在尝试找出如何从以下位置获取可能解决方案的完整列表ortools sat python cp model 我知道我可以打印它们 如下例所示 但我不清楚如何获取这些值 例如作为嵌套列表或字典列表 我尝试通过修改来编写自己的回调类VarAr
python
ortools
integerprogramming
Google OR 工具:如何评估复杂或多级布尔约束
Set up 我使用 google OR 工具作为约束编程求解器 from ortools sat python import cp model 我定义了以下 BoolVars model cp model CpModel a model
ortools
constraintprogramming
cpsatsolver
Google OR-Tools(使用 SCIP 求解器)- 如何访问求解器找到的中间解?
我是 Google OR Tools 的新手 我使用 Python 实现了一个以 SCIP 作为求解器的 MIP 模型 目标函数用于最小化 求解器 最小化 C 并且我正在通过访问最终解决方案求解器 Objective Value 但是 我还
python
ortools
mixedintegerprogramming
scip
线性规划 - Google ortool - 错误的决策变量最终值
我正在尝试解决线性规划问题 以下是问题的具体情况 我有一个网络流问题已转换为线性规划问题 因此 所有流量约束 例如容量 流量守恒等 都必须强制执行 我的目标是最小化成本 决策变量 我通过定义字典并在这 128 个位置中的每个位置添加决策变量
python3x
linearprogramming
ortools
networkflow
具有多个箱子和约束的无界背包
我是 Python 编码新手 需要帮助解决具有多个垃圾箱 4 个垃圾箱 和约束的无界背包问题 这些箱子的重量限制分别为 10 5 10 5 7 和 7 每个箱子只能装满某些物品 例如 仓 0 只能填充项目 0 9 仓 1 只能填充项目 10
knapsackproblem
ortools
operationsresearch
CP 求解器可以在特定点初始化吗?
我正在使用 CP Sat 求解器来优化我正在制定的时间表 然而 现在这个问题需要很长时间才能解决 是否可以使用旧结果作为求解器的种子 作为起点 以减少找到最佳结果所需的时间 看看这个解决方案提示示例 https github com goo
python
ortools
cpsatsolver
Google OR 工具 - 火车调度问题
我试图解决的问题有点像这里的员工调度问题 https github com google or tools blob master examples python shift scheduling sat py 然而 有一些事情我被困住了
python
python3x
Scheduling
constraintprogramming
ortools
如何在 MiniZinc 中安装 Google 的 CP 求解器 OR-Tools?
我目前正在研究 MiniZinc 并且我一直在使用 MiniZinc 中集成的两个求解器来运行我的模型 Gecode 和 Chuffed 我一直在 IDE 中运行它 但我知道它也可以在 bash 中运行 使用minizinc命令 但我想测试
installation
solver
constraintprogramming
ortools
minizinc