简体   繁体   English

Flutter (Android) 中的 OR-Tools

[英]OR-Tools in Flutter (Android)

I want to run an or-tools dependent script (using cp-model) on a Flutter-based Android app.我想在基于 Flutter 的 Android 应用程序上运行依赖于 or-tools 的脚本(使用 cp-model)。

Is there a way to do that?有没有办法做到这一点?

I wrote a python3 script with the or-tools API and it's doing what I wanted my app to do, but I couldn't find a way to run the python script on the flutter app...我用 or-tools API 写了一个 python3 脚本,它正在做我想让我的应用程序做的事情,但我找不到在 flutter 应用程序上运行 python 脚本的方法......

No. Not with python. Here are platforms: https://developers.google.com/optimization/install .不。不适用于 python。以下是平台: https://developers.google.com/optimization/install In theory you can use java, but you'll have to code inside the Android project.理论上您可以使用 java,但您必须在 Android 项目中编写代码。 check this link on how to https://github.com/google/or-tools/issues/537 .检查此链接以了解如何https://github.com/google/or-tools/issues/537 Personally i use or-tool for vrp.我个人使用 or-tool for vrp。 I run the or path on a machine and publish the results where apps can download results.我在机器上运行 or 路径并发布结果,应用程序可以在其中下载结果。 Sometimes it isn't optimal, but it's close有时它不是最佳的,但它很接近

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM