Created simple jupyter notebook

This commit is contained in:
Alexandre Linhares
2017-09-27 16:02:34 -03:00
parent 36a1a31fe2
commit 51e4ba64e2
3 changed files with 92 additions and 1 deletions

View File

@ -1,3 +1,6 @@
"""Workspace module."""
from . import formulas
from .bond import Bond
from .correspondence import Correspondence
@ -14,6 +17,7 @@ def __adjustUnhappiness(values):
class Workspace(object):
def __init__(self, ctx):
"""To initialize the workspace."""
self.ctx = ctx
self.totalUnhappiness = 0.0
self.intraStringUnhappiness = 0.0
@ -82,7 +86,7 @@ class Workspace(object):
self.initial.updateIntraStringUnhappiness()
self.target.updateIntraStringUnhappiness()
#TODO: use entropy
# TODO: use entropy
def getUpdatedTemperature(self):
self.calculateIntraStringUnhappiness()
self.calculateInterStringUnhappiness()