Skip to content

Instantly share code, notes, and snippets.

View goghino's full-sized avatar

Juraj Kardoš goghino

View GitHub Profile
#Maintenance planning problem
#https://nbviewer.jupyter.org/github/jckantor/ND-Pyomo-Cookbook/blob/master/notebooks/04.03-Maintenance-Planning.ipynb
import pyomo.environ as pyo
import numpy as np
# problem parameters
T = 10 # planning period from 1..T
M = 2 # length of maintenance period
P = 1 # number of maintenance periods
pytest test_unit_commitment.py
=========================================== test session starts ============================================
platform darwin -- Python 3.8.5, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
rootdir: /Users/Juraj/Documents/Optimization/pyomo/Egret
collected 21 items
test_unit_commitment.py FFFFFFFFFFFFFFF..FFF. [100%]
================================================= FAILURES =================================================
__________________________________________ test_int_all_uc_models __________________________________________
(UnitCommitment) Juraj@Manin (master):~/Documents/Optimization/pyomo/Egret/egret/models/tests$ pytest test_unit_commitment.py
=========================================== test session starts ============================================
platform darwin -- Python 3.8.5, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
rootdir: /Users/Juraj/Documents/Optimization/pyomo/Egret
collected 21 items
test_unit_commitment.py F.................... [100%]
================================================= FAILURES =================================================
__________________________________________ test_int_all_uc_models __________________________________________
(UnitCommitment) Juraj@Manin (master):~/Documents/Optimization/pyomo/Egret/egret/models/tests$ pytest test_unit_commitment.py
=========================================== test session starts ============================================
platform darwin -- Python 3.8.5, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
rootdir: /Users/Juraj/Documents/Optimization/pyomo/Egret
collected 21 items
test_unit_commitment.py FFFFFFFFFFFFFFFFFFFFF [100%]
================================================= FAILURES =================================================
__________________________________________ test_int_all_uc_models __________________________________________
@goghino
goghino / FindMKL.cmake
Created May 18, 2018 13:56
FindMKL.cmake
################################################################################
#
# \file cmake/FindMKL.cmake
# \author J. Bakosi
# \copyright 2012-2015, Jozsef Bakosi, 2016, Los Alamos National Security, LLC.
# \brief Find the Math Kernel Library from Intel
# \date Thu 26 Jan 2017 02:05:50 PM MST
#
################################################################################
@goghino
goghino / .gitconfig
Last active September 5, 2016 07:34
[user]
name = Juraj Kardos
email = juraj.kardos@usi.ch
[core]
pager = less -R #fixes color escaping for 'git diff'
autocrlf = input #automaticaly handle line endings, strip cr
[color]
ui = auto