Skip to content

Instantly share code, notes, and snippets.

View lteu's full-sized avatar
🏠
Working from home

Tony lteu

🏠
Working from home
  • 望京 District
  • Beijing, China
View GitHub Profile
#cmake_minimum_required(VERSION 2.8.4 FATAL_ERROR)
project(playground2)
include_directories(${Protobuf_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS} ${TENSORFLOW_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})
set (SOURCEFILES stdafx.h
playground.cpp)
cmake_minimum_required(VERSION 2.8.4 FATAL_ERROR)
cmake_policy(SET CMP0002 NEW)
cmake_policy(SET CMP0003 NEW)
cmake_policy(SET CMP0011 NEW)
# The project and cmake vars must only be defined in case that only the base
# filter should be build.
if(NOT AADC_BUILD_ALL_IN_ONE)
# define a project name
"2018-09-26 12:52:48 [ERROR]: Could not register plugin in runtime Result code '-44 '(ERR_INVALID_VERSION)
- Found incompatible plugin "/home/aadc/AADC/adtf-basic-software/src/aadcUser/../../_install/linux64/bin/playground2.adtfplugin":
invalid version ucom-version
[File: /mnt/data/jenkins/ws/A3_bld/PLATFORM/U1604_x64_gcc54/source/src/libraries/ucom3/src/runtime.cpp]
[Line: 1825] [Func: LoadPluginImpl] [main.cpp(229)]
2018-09-26 12:52:48 [ERROR]: Result code '-44 '(ERR_INVALID_VERSION)
- Found incompatible plugin
"/home/aadc/AADC/adtf-basic-software/src/aadcUser/../../_install/linux64/bin/playground2.adtfplugin":
invalid version ucom-version [File: /mnt/data/jenkins/ws/A3_bld/PLATFORM/U1604_x64_gcc54/source/src/libraries/ucom3/src/runtime.cpp]
[Line: 1825] [Func: LoadPluginImpl] [main.cpp(693)]"
# Binary Search for COP problem on item selection
# ref: http://stackoverflow.com/questions/41708500/how-to-declare-constraints-with-variable-as-array-index-in-z3py
from z3 import *
import sys
import time
import json
import sys
# ======================
@lteu
lteu / data.json
Created January 19, 2017 18:32
Z3Py: a combinatorial optimization problem with 316 items where it seems that Z3 is not efficient ...
{"bonusVals":[[1,4,8,7,9,8,7,7,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