Skip to content

Instantly share code, notes, and snippets.

View cdeil's full-sized avatar

Christoph Deil cdeil

View GitHub Profile
print("hello azure jobs")
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
% time python evaluate.py opt
Date range: 2018-04-01 00:00:00 to 2018-04-15 00:00:00
intervals: 1439
mills: 1
cements: 5
silos: 7
Using license file /Users/cdeil/gurobi.lic
Set parameter TokenServer to value Christophs-MacBook-Pro.local
Changed value of parameter NormAdjust to 0
Prev: -1 Min: -1 Max: 3 Default: -1
(hcem) cdeil@Christophs-MacBook-Pro or-tools % make test_package_python
cp lib/libortools.dylib temp_python3.7/ortools/ortools/.libs
cp -R dependencies/install/lib*/libgflags* temp_python3.7/ortools/ortools/.libs
cp -R dependencies/install/lib*/libglog* temp_python3.7/ortools/ortools/.libs
cp -R /Users/cdeil/code/oss/or-tools/dependencies/install/lib/libproto* temp_python3.7/ortools/ortools/.libs
cp -R /Users/cdeil/code/oss/or-tools/dependencies/install/lib//libabsl* temp_python3.7/ortools/ortools/.libs
cp -R dependencies/install/lib*/libCbc* temp_python3.7/ortools/ortools/.libs
cp -R dependencies/install/lib*/libCgl* temp_python3.7/ortools/ortools/.libs
cp -R dependencies/install/lib*/libClp* temp_python3.7/ortools/ortools/.libs
cp -R dependencies/install/lib*/libOsi* temp_python3.7/ortools/ortools/.libs
(hcem) cdeil@Christophs-MacBook-Pro or-tools % make
Use one of the following targets:
help, help_all: Print this help.
all: Build OR-Tools for all available languages (need a call to "make third_party" first).
check, check_all: Check OR-Tools for all available languages.
test, test_all: Test OR-Tools for all available languages.
clean, clean_all: Clean output from previous build for all available languages (won't clean third party).
detect, detect_all: Show variables used to build OR-Tools for all available languages.
Use one of the following Prerequisite targets:
(hcem) cdeil@Christophs-MacBook-Pro or-tools % make
Use one of the following targets:
help, help_all: Print this help.
all: Build OR-Tools for all available languages (need a call to "make third_party" first).
check, check_all: Check OR-Tools for all available languages.
test, test_all: Test OR-Tools for all available languages.
clean, clean_all: Clean output from previous build for all available languages (won't clean third party).
detect, detect_all: Show variables used to build OR-Tools for all available languages.
Use one of the following Prerequisite targets:
creating build/lib/google/protobuf/internal/import_test_package
copying google/protobuf/internal/import_test_package/inner_pb2.py -> build/lib/google/protobuf/internal/import_test_package
copying google/protobuf/internal/import_test_package/__init__.py -> build/lib/google/protobuf/internal/import_test_package
copying google/protobuf/internal/import_test_package/outer_pb2.py -> build/lib/google/protobuf/internal/import_test_package
mkdir ortools/gen/ortools/algorithms
I/Users/cdeil/code/oss/or-tools/dependencies/install/include -I/Users/cdeil/code/oss/or-tools/dependencies/install/include -I/Users/cdeil/code/oss/or-tools/dependencies/install/include -I/Users/cdeil/code/oss/or-tools/dependencies/install/include -I/Users/cdeil/code/oss/or-tools/dependencies/install/include/coin -I/Users/cdeil/code/oss/or-tools/dependencies/install/include -I/Users/cdeil/code/oss/or-tools/dependencies/install/include/coin -I/Users/cdeil/code/oss/or-tools/dependencies/install/include -I/Users/cdeil/code/oss/or-tools/dependencies/i
def gurobi_test_low_silo_cost():
"""Attempt to get low silo cost term to work with Gurobi.
It seems `MVar` and `MLinExpr` doesn't play nice with `max_` and `sum`
Also it seems MLinExpr and LinExpr can't be mixed in expressions.
"""
n_bin = 5
price = 10 * np.ones(n_bin)
model = gurobipy.Model()
"""
Solve example problem as MIP using Gurobi.
"""
import numpy as np
import pandas as pd
import gurobipy
from gurobipy import GRB
from interface import ProductionProblem
2020-05-19T23:25:51.877705012Z
2020-05-19T23:25:51.877726313Z _____
2020-05-19T23:25:51.877731913Z / _ \ __________ _________ ____
2020-05-19T23:25:51.877736413Z / /_\ \___ / | \_ __ \_/ __ \
2020-05-19T23:25:51.877740913Z / | \/ /| | /| | \/\ ___/
2020-05-19T23:25:51.877745413Z \____|__ /_____ \____/ |__| \___ >
2020-05-19T23:25:51.877750013Z \/ \/ \/
2020-05-19T23:25:51.877754313Z
2020-05-19T23:25:51.877758413Z A P P S E R V I C E O N L I N U X
2020-05-19T23:25:51.877762613Z