Über Confilox
OptiKonf FlexCoDie Confilox Plattform arbeitet mit Symbolic Reasoning, weshalb angezeigte Ergebnisse stets beweisbar korrekt sind im Bezug auf ihre zugrundeliegende Logik.
BEISPIELKONFIGURATOR
PC Konfigurator
In diesem Beispiel konfiguriert man einen PC aus einer Liste von Bauteilen. Ein voll auskonfigurierter PC wird in jedem Schritt auf der rechten Seite erzeugt. Es werden hierbei nie alle Varianten durchsucht, stattdessen erzeugt Confilox jede Variante basierend auf den dahinterliegenden Regeln. Kein Entscheidungsbaum oder ähnliches wird benötigt!
Häufige Fragen zu unseren Demonstrationen
Wo ist der Kauf-Button?
Dies ist ein Beispielkonfigurator. Die Confilox-Plattform stellt den Konfigurator bereit und reicht die gewählte Konfiguration schließlich an die Shop-Software weiter. Confilox kann auch durch die API integriert werden.
Was für Regeln stecken hinter dem PC Konfigurator?
Der Quelltext dieses Konfigurators ist folgender:
from ok import choice
class PC:
def cpu_intel(self):
self.cpu = choice("intel-3", "intel-5", "intel-7")
self.pcie_lanes = "16"
if self.cpu == "intel-3":
self.psu = choice("low", "medium")
self.memory_slots = "2"
self.gpu = "integrated"
self.price += 10
elif self.cpu == "intel-5":
self.gpu = "dedicated"
self.psu = choice("medium", "high")
self.memory_slots = choice("2", "4")
self.price += 20
elif self.cpu == "intel-7":
self.gpu = "dedicated"
self.psu = "high"
self.memory_slots = "4"
self.pcie_lanes = "22"
self.price += 30
def cpu_amd(self):
self.cpu = choice("ai", "ai-360")
self.pcie_lanes = "18"
self.memory_slots = "4"
self.gpu = "integrated"
if self.cpu == "ai":
self.psu = choice("low", "medium", "high")
self.price += 25
elif self.cpu == "ai-360":
self.psu = "high"
self.pcie_lanes = "20"
self.price += 35
def memory(self):
if self.memory_slots == "2":
self.ram = choice("8 GB", "16 GB")
if self.ram == "8 GB":
self.price += 10
elif self.ram == "16 GB":
self.price += 20
elif self.memory_slots == "4":
self.ram = choice("32 GB", "64 GB")
if self.ram == "32 GB":
self.price += 25
elif self.ram == "64 GB":
self.price += 45
def gpu(self):
# This will improve greatly once integer support lands.
if self.gpu == "integrated":
if self.pcie_lanes == "20" or self.pcie_lanes == "22":
self.gpu = choice("rtx5070", "rtx5080", "rtx5090", "integrated")
else:
self.gpu = choice("rtx5070", "integrated")
else:
if self.pcie_lanes == "20" or self.pcie_lanes == "22":
self.gpu = choice("rtx5070", "rtx5080", "rtx5090")
else:
self.gpu = "rtx5070"
if self.gpu == "rtx5080":
assert self.psu == "medium" or self.psu == "high"
self.price += 16
elif self.gpu == "rtx5090":
assert self.psu == "high"
self.price += 32
elif self.gpu == "rtx5070":
assert self.psu == "low" or self.psu == "medium" or self.psu == "high"
self.price += 8
def psu(self):
if self.psu == "low":
self.price += 5
elif self.psu == "medium":
self.price += 10
elif self.psu == "high":
self.price += 15
def configure(self):
self.price = 0
self.cpu_brand = choice("intel", "amd")
if self.cpu_brand == "intel":
self.cpu_intel()
elif self.cpu_brand == "amd":
self.cpu_amd()
self.memory()
self.gpu()
self.psu()
assert self.price < 150
knob(price)
knob(psu, "Power Supply")
knob(cpu_brand, "CPU Brand")
knob(cpu, "Processor")
knob(gpu, "GPU")
knob(ram, "RAM")diese Seite wird in kürze um Video-Demonstrationen erweitert