add minimal highs interface

This commit is contained in:
Laurent Perron
2022-10-03 14:25:58 +02:00
parent 0f260ffea6
commit 4fcef6ee8f
5 changed files with 321 additions and 4 deletions

View File

@@ -1,4 +1,3 @@
#!/usr/bin/env python3
# Copyright 2010-2022 Google LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -47,7 +46,7 @@ class PyWrapLp(unittest.TestCase):
text_format.Merge(TEXT_MODEL, input_proto)
solver = pywraplp.Solver.CreateSolver('CBC')
if not solver:
return
return
# For now, create the model from the proto by parsing the proto
errors = solver.LoadModelFromProto(input_proto)
self.assertFalse(errors)