ORTOOLS support in GoLang

1,810 views
Skip to first unread message

Dheeraj Panyam

unread,
Jan 25, 2018, 11:46:57 AM1/25/18
to or-tools-discuss

 Does  the ORTOOLS suite have a swig interface for GoLang. Can I code the Vehicle Routing System in GO?

core...@google.com

unread,
Jan 26, 2018, 2:46:50 AM1/26/18
to or-tools-discuss
Hi,

Currently there is no plan to support GoLang...
We provide C++ (native), and binding on Python (2.7, 3.5, 3.6), Java and C#

NF

unread,
Aug 31, 2018, 3:02:48 AM8/31/18
to or-tools-discuss
Hello,

I also would like to use OR-Tools in Golang.
Especially on Google App Engine.

Any plan to support GAE/Go?

Laurent Perron

unread,
Aug 31, 2018, 3:51:32 AM8/31/18
to or-tools...@googlegroups.com
Right now, we have no plan for that as we just miss the knowledge to build go interface, writing the necessary go files (and the time to do it :-) ).
Out of curiosity, what solver do you wish to use?

For the CP-SAT and the linear solver, there is a protobuf interface, so a server on Google Compute Engine, and a grpc call from App Engine to the server, passing a protobuf in between the two could do the trick.

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

NF

unread,
Aug 31, 2018, 4:29:11 AM8/31/18
to or-tools-discuss
Hello,

Thanks for response.

I would like to use MIP solver.
Can I use it via gRPC?

NF

unread,
Sep 12, 2018, 1:50:38 AM9/12/18
to or-tools-discuss
Hello,

I would like to know if MIP solver supports gRPC.
Also is there any document for using or-tools via gRPC?

2018年8月31日金曜日 17時29分11秒 UTC+9 NF:
Message has been deleted

AM

unread,
Aug 25, 2020, 4:22:30 PM8/25/20
to or-tools-discuss
Hi Laurent

Would you mind describing the steps to create a Google Compute Engine Server via gRPC, e.g.

  • Defining a unary gRPC the service to linear_solver.proto,   service OR-Tools { rpc LinearSolver(MPModelRequest) returns (MPSolutionResponse) {}}
  • Generating the gRPC server interface
  • ???
Thanks

Laurent Perron

unread,
Aug 25, 2020, 4:26:23 PM8/25/20
to or-tools-discuss
I am really not the right person to ask :-)

AM

unread,
Aug 25, 2020, 4:33:50 PM8/25/20
to or-tools-discuss
I can develop that but I need one of the OR-Tools contributors to help me.

Mizux Dev

unread,
Aug 30, 2020, 7:15:26 AM8/30/20
to or-tools-discuss

Use the OSS Community force luke !

Seems there is a fork with plenty of go related stuff concerning routing...

disclaimer: I didn't play with it and I don't know if if follow the proper way to wrap code to Golang using swig.

AM

unread,
Aug 30, 2020, 3:43:30 PM8/30/20
to or-tools-discuss
Thanks. I am using Laurent's idea to create a gRPC/protobuf and change linear_solver_protocol_buffers.cc to be a gRPC server via

syntax = "proto3";
import "or-tools/ortools/linear_solver/linear_solver.proto";
package operations_research;service MPService {
rpc MPModel(MPModelRequest) returns (MPSolutionResponse) {};
}

Then I can use any language which gRPC supports to interact with or-tools. To me, that is an easier way to create a swig wrapper for Golang
Reply all
Reply to author
Forward
0 new messages