Optimization and constraint solving.

Cloud-native optimization with an HTTP API. Define your constraints, request a configuration, and report the result so the next choice can improve. Open source, ready to run in your own infrastructure.

Applications

Configuration, personalization, and planning

Define the available choices, the constraints they must satisfy, and what you want to improve.

  • Tune a configuration

    Search combinations of software settings when each trial takes time or money.

  • Personalize a product

    Select features or layouts for each user and learn from the results.

  • Allocate resources

    Build schedules that account for demand, capacity, and dependencies.

Example: handling a support ticket Python

Eignex chooses self-service, an AI-drafted reply, or a human handoff for each ticket. Your rules limit the options; the results teach it which flows resolve tickets.

choice = support.propose(needsRefund=True, isUrgent=False)
# This request must go to a human with the order history.

handle_ticket(choice.values)  # Your support system runs the chosen flow.

support.observe(choice.id, reward=1)  # Later: report that the ticket was resolved.
See the support example

Adaptive optimization

Optimize a software configuration

Eignex selects configurations under constraints and learns from their measured outcomes. Define a decision space in YAML, then use the HTTP API for online experiments or offline tuning.

The service uses Klause for constraints and Kumulant for statistical tools. Both are also available as standalone libraries.

COMBO optimization loop A three-step cycle: choose a configuration, serve it to the request, update the optimizer with the observed reward. 01 choose 02 serve 03 update learn, then pick again

Example: handling a support ticket

For each ticket, choose self-service, an AI-drafted reply, or a human handoff, along with a reply style and the records to retrieve. Refund requests must go to a human with the order history attached. Urgent tickets must skip self-service.

support_flow.yaml
space:
  name: SupportFlow
  context:
    needsRefund: bool
    isUrgent: bool
  variables:
    route:
      nominal: [self_service, assisted_reply, human]
    replyStyle:
      nominal: [brief, step_by_step]
  multiples:
    sources: [help_center, order_history, previous_tickets]
  constraints:
    refundsNeedHuman:
      implies: [{ref: needsRefund}, {nominalEq: [route, human]}]
    urgentSkipsSelfService:
      implies: [{ref: isUrgent}, {not: {nominalEq: [route, self_service]}}]
    refundsNeedOrderHistory:
      implies: [{ref: needsRefund}, {ref: sources.order_history}]
outcome: reward
objective: {maximize: reward}

Handle the ticket

Send the ticket context to the API. Your support system retrieves the selected records and runs the chosen flow. If no proposal is returned, use your existing support process.

In this sketch, your application handles the ticket and reports the score once the outcome is known.

support_ticket.py
from eignex import Eignex

support = Eignex().model("support_flow.yaml")

choice = support.propose(needsRefund=True, isUrgent=False)
if choice:
    handle_ticket(choice.values)
    support.observe(choice.id, reward=resolution_score())

Report the outcome

For this example, return 1 when the ticket is resolved without reopening within seven days, and 0 otherwise. Keep the proposal ID so the eventual result can be matched to the chosen flow. The optimizer learns which flows resolve tickets in each context, within the same constraints.

Optimization docs Source on GitHub

Underlying libraries

Klause: hybrid constraint solving

Klause finds schedules and configurations that satisfy your constraints. Solve a model, sample feasible solutions, or optimize an objective.

Solutions are checked against the original problem before they are returned. Use Klause with the adaptive optimizer or as a standalone library.

Klause docs Klause on GitHub

Recent Posts

Agentic Coding Has No Floor

Opinions Rasmus Ros 6 min read

An agent can remove a check you still need while the tests keep passing. I want to be able to lock that code until I approve a change.

One Shape Across the Eignex Stack

Updates Rasmus Ros 4 min read

Three months into the Eignex rewrite, the libraries finally share one config shape that doubles as a YAML wire format. A checkpoint on what changed in each repo.

From Stringly to Strongly Typed

Engineering Rasmus Ros 7 min read

Three attempts at typed schemas in Kotlin: an imperative builder, a type-encoded product, and the property-delegate design I ended up shipping as skema.

Writing the Loss Function

Opinions Rasmus Ros 7 min read

AI plus a feed isn't a new medium, it's the same engagement loop with cheaper supply. The objective the loop optimizes for is a choice, not a law of physics.

KEncode: Packing Data for Strict Limits

Engineering Rasmus Ros 14 min read

Sometimes 80 characters of URL is all you get, and JSON won't survive the trip. kencode squeezes structured state through it, with the schema written as a plain Kotlin data class.

Engine Building and Status Updates

Updates Rasmus Ros 2 min read

What I'm actually trying to build: a continuous optimizer that learns from a live stream, fits a probabilistic model, and leans on an SMT solver to stay inside hard constraints.

Building Eignex in the Open

Updates Rasmus Ros 2 min read

A quick who-am-I and what-is-this. PhD in continuous optimization, left academia, now building Eignex in the open.

View All Posts →