Closed MrYossu closed 4 years ago
Which version of or-tools?
Le lun. 23 déc. 2019 à 22:26, Avrohom Yisroel Silver (Mr Yossu) < notifications@github.com> a écrit :
I'm trying to follow the example at https://developers.google.com/optimization/mip/integer_opt using C# in LinqPad. I have copied out the code, but get a compiler error on the line...
Solver.ResultStatus resultStatus = solver.Solve();
...as the method Solve() returns an int, not a Solver.ResultStatus. Furthermore, I can't find a type Solver.ResultStatus anywhere.
I have a using for Google.OrTools.LinearSolver as directed.
Any ideas? Thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google/or-tools/issues/1802?email_source=notifications&email_token=ACUPL3OVNSQYGZE4DFAAPP3Q2EUGVA5CNFSM4J6YGJX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ICM3VQQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUPL3PJNVKZAV2LOW3AJT3Q2EUGVANCNFSM4J6YGJXQ .
Version too old.
So how do I use the latest? As I mentioned in my other issue, if I install the Google.OrTools v7.4.7247 Nuget package, then when I try to run any code, I get an exception...
Could not load file or assembly 'file:///C:\Users\myuser\AppData\Local\LINQPad\NuGet.FW46\Google.OrTools\Google.OrTools.7.4.7247\lib\net452\Google.OrTools.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.
How do I use the latest from LinqPad?
I'm trying to follow the example at https://developers.google.com/optimization/mip/integer_opt using C# in LinqPad. I have copied out the code, but get a compiler error on the line...
...as the method
Solve()
returns anint
, not aSolver.ResultStatus
. Furthermore, I can't find a typeSolver.ResultStatus
anywhere.I have a
using
forGoogle.OrTools.LinearSolver
as directed.Here is the complete LinqPad file (note that this is the contents of the file, not what you type in the editor, as it includes the query metadata)...
The compiler error is on the last line.
Any ideas? Thanks