Skip to content

Commit

Permalink
* Change fuzzy controller to Clesius, #78
Browse files Browse the repository at this point in the history
  • Loading branch information
MBaranskiEBC committed Jun 7, 2020
1 parent b579364 commit bb36700
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyDMPC/ControlFramework/functions/fuzzy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ def control(temp,delt):
# Sparse universe makes calculations faster, without sacrifice accuracy.
# Only the critical points are included here; making it higher resolution is
# unnecessary.
universe = np.linspace(-4, 4, 5)
universe_temp = np.linspace(290, 303, 5)
universe_out = np.linspace(290, 303, 5)
universe = np.linspace(-5, 5, 5)
universe_temp = np.linspace(17, 30, 5)
universe_out = np.linspace(17, 30, 5)

# Create the three fuzzy variables - two inputs, one output
temperature = ctrl.Antecedent(universe_temp, 'temperature')
Expand Down

0 comments on commit bb36700

Please sign in to comment.