Changeset 13466
- Timestamp:
- Sep 13, 2019 12:06:16 PM (3 months ago)
- Location:
- branches/dev-5819/Python/src/pyjmi/optimization
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev-5819/Python/src/pyjmi/optimization/greybox.py
r13461 r13466 2 2 # -*- coding: utf-8 -*- 3 3 4 # Copyright (C) 2015 Modelon AB 5 # 6 # This program is free software: you can redistribute it and/or modify 7 # it under the terms of the GNU General Public License as published by 8 # the Free Software Foundation, version 3 of the License. 9 # 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License 16 # along with this program. If not, see <http://www.gnu.org/licenses/>. 4 # Copyright (C) 2015 Modelon AB, all rights reserved. 17 5 from pyjmi.optimization.casadi_collocation import ExternalData 18 6 -
branches/dev-5819/Python/src/pyjmi/optimization/polynomial.py
r13461 r13466 25 25 import numpy.linalg 26 26 import scipy.special as SP 27 from six import with_metaclass 27 28 try: 28 29 import casadi … … 31 32 'Could not find CasADi package, aborting.') 32 33 33 class LocalPol(object, metaclass=abc.ABCMeta):34 class LocalPol(object, with_metaclass(abc.ABCMeta)): 34 35 35 36 """ -
branches/dev-5819/Python/src/pyjmi/optimization/realtimecontrol.py
r13461 r13466 16 16 from pymodelica import compile_fmu 17 17 from pyfmi import load_fmu 18 18 from six import with_metaclass 19 19 20 20 class ParameterChanges(object): … … 82 82 83 83 84 class RealTimeBase(object, metaclass=ABCMeta):84 class RealTimeBase(object, with_metaclass(metaclass=ABCMeta)): 85 85 86 86 def __init__(self, dt, t_final, start_values, output_names,
Note: See TracChangeset
for help on using the changeset viewer.