Dateien nach "mod" hochladen

This commit is contained in:
kilian 2026-07-13 13:59:24 +02:00
parent bf6629de02
commit 0ca645d305
3 changed files with 27 additions and 14 deletions

View File

@ -1,6 +1,6 @@
config.ilp.solver="CPLEX" config.ilp.solver="CPLEX"
#phenylalanine = Graph.fromGMLString( phenylalanine = Graph.fromGMLString(
""" """
graph [ graph [
node [ id 1 label "C" ] node [ id 1 label "C" ]
@ -51,9 +51,9 @@ config.ilp.solver="CPLEX"
edge [ source 15 target 23 label "-" ] edge [ source 15 target 23 label "-" ]
] ]
""" """
# , name="Phenylalanine") , name="Phenylalanine")
#noradrenalin = Graph.fromGMLString( noradrenalin = Graph.fromGMLString(
""" """
graph [ graph [
node [ id 1 label "C" ] node [ id 1 label "C" ]
@ -103,7 +103,7 @@ config.ilp.solver="CPLEX"
edge [ source 8 target 27 label "-" ] edge [ source 8 target 27 label "-" ]
edge [ source 9 target 26 label "-" ] edge [ source 9 target 26 label "-" ]
]""" ]"""
#, name="Noradrenalin") , name="Noradrenalin")
vanilline = Graph.fromGMLString( vanilline = Graph.fromGMLString(
""" """
@ -235,7 +235,7 @@ rule [
""" """
#) #)
#decarboxylation = Rule.fromGMLString( decarboxylation = Rule.fromGMLString(
""" """
rule [ rule [
left [ left [
@ -257,9 +257,9 @@ rule [
] ]
] ]
""" """
#) )
aldehydation = Rule.fromGMLString( ###aldehydation = Rule.fromGMLString(
""" """
rule [ rule [
left [ left [
@ -285,7 +285,7 @@ rule [
] ]
] ]
""" """
) #)
flowPrinter = FlowPrinter() flowPrinter = FlowPrinter()
@ -312,12 +312,25 @@ postSection("Product Graphs")
for a in dg.vertices: for a in dg.vertices:
a.graph.print() a.graph.print()
flowAutocata = Flow(dg) flow = Flow(dg)
flowAutocata.addSource(cinnamon)
flowAutocata.addSink(vanilline) flow.addSource(cinnamon)
flowAutocata.findSolutions() flow.addSink(vanilline)
flowAutocata.solutions.list() #Vanilla has 6
flowAutocata.solutions.print(flowPrinter) flow.findSolutions(maxNumSolutions=7)
#flow.addConstraint(inFlow(cinnamon) == 1)
#flow.addConstraint(outFlow(vanilline) == 1)
'''
flow.addSource(phenylalanine)
flow.addSink(noradrenalin)
#Dopamine has 24
flow.findSolutions(maxNumSolutions=25)
#flow.addConstraint(inFlow(phenylalanine) == 1)
#flow.addConstraint(outFlow(noradrenalin) == 1)
'''
flow.solutions.list()
flow.solutions.print(flowPrinter)
sys.exit(0) sys.exit(0)

BIN
mod/summaryDopamine.pdf Normal file

Binary file not shown.

BIN
mod/summaryVanilline.pdf Normal file

Binary file not shown.