run pyformat on python examples
This commit is contained in:
@@ -10,10 +10,8 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
"""Integer programming examples that show how to use the APIs."""
|
||||
|
||||
|
||||
from ortools.linear_solver import pywraplp
|
||||
|
||||
|
||||
@@ -82,8 +80,8 @@ def SolveAndPrint(solver, variable_list):
|
||||
|
||||
|
||||
def Announce(solver, api_type):
|
||||
print(('---- Integer programming example with ' + solver + ' (' +
|
||||
api_type + ') -----'))
|
||||
print(('---- Integer programming example with ' + solver + ' (' + api_type +
|
||||
') -----'))
|
||||
|
||||
|
||||
def RunAllIntegerExampleNaturalLanguageAPI():
|
||||
@@ -110,8 +108,7 @@ def RunAllIntegerExampleCppStyleAPI():
|
||||
RunIntegerExampleCppStyleAPI(pywraplp.Solver.CBC_MIXED_INTEGER_PROGRAMMING)
|
||||
if hasattr(pywraplp.Solver, 'SCIP_MIXED_INTEGER_PROGRAMMING'):
|
||||
Announce('SCIP', 'C++ style API')
|
||||
RunIntegerExampleCppStyleAPI(
|
||||
pywraplp.Solver.SCIP_MIXED_INTEGER_PROGRAMMING)
|
||||
RunIntegerExampleCppStyleAPI(pywraplp.Solver.SCIP_MIXED_INTEGER_PROGRAMMING)
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user