This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# | |
# \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 | |
# | |
################################################################################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 __________________________________________ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 __________________________________________ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 __________________________________________ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |