Quick Start Guide

Get started with Sematryx in minutes. This guide will walk you through your first optimization problem.

1. Installation

Install Sematryx using pip:

Install Sematryx
pip install aeao

2. Get Your API Key

For API access, get your API key from the API Keys page. Choose a plan that fits your needs and complete the checkout process.

3. Your First Optimization

Define your objective function and bounds, then let Sematryx find the optimal solution:

Basic optimization example
from aeao import aeao

# Define your objective function
def sphere(x):
    return sum(xi**2 for xi in x)

# Run optimization
result = aeao(
    objective_function=sphere,
    bounds=[[-5, 5], [-5, 5]],
    max_evaluations=1000
)

print(f"Best solution: {result['best_solution']}")
print(f"Best fitness: {result['best_fitness']}")

What happened?

  • Sematryx analyzed your problem and selected the best optimization strategy
  • It evaluated your function 1000 times to find the optimal solution
  • The result includes the best parameters and objective value found

4. Configure the AEAO Tetrad

Sematryx's AEAO Engine is built on four pillars of intelligence. Configure them to match your needs:

Tetrad configuration
from aeao import aeao

# Use preset configuration
result = aeao(
    objective_function=sphere,
    bounds=[[-5, 5], [-5, 5]],
    preset="production"  # development, production, research, enterprise
)

# Or enable specific tetrad pillars
result = aeao(
    objective_function=sphere,
    bounds=[[-5, 5], [-5, 5]],
    use_agentic_intelligence=True,
    use_autodidactic_intelligence=True,
    explanation_level=3
)

The AEAO Tetrad

  • 🤖 Agentic: Multi-agent coordination for strategy selection
  • đź“– Expository: Explainable results with configurable detail levels
  • đź§  Autodidactic: Self-improvement through learning from experience
  • 🏗️ Domain Extension: Specialized libraries for business domains

5. Domain-Specific Optimization

Use specialized optimization libraries for specific business domains:

Domain-specific optimization
from aeao import financial_optimize

# Financial portfolio optimization
result = financial_optimize(
    problem_type="portfolio",
    config={
        "assets": ["AAPL", "GOOGL", "MSFT"],
        "risk_tolerance": 0.3
    }
)

Available Domains

  • Financial: Portfolio optimization, trading strategies
  • Healthcare: Drug discovery, clinical trials
  • Supply Chain: Vehicle routing, inventory management
  • AI/ML: Hyperparameter tuning, architecture search
  • Marketing: Campaign optimization, budget allocation

6. Key Concepts

Understanding Optimization

  • Objective Function: The function you want to minimize or maximize
  • Bounds: Search space constraints for each variable
  • Strategy Selection: Sematryx automatically chooses the best optimization algorithm
  • Explainability: Get detailed explanations of optimization decisions
  • Learning: Sematryx improves performance on repeated problems

7. Next Steps

Explore Tutorials

Follow step-by-step tutorials to solve real-world optimization problems.

View Tutorials →

API Reference

Detailed documentation for all optimization APIs and tetrad configuration.

API Reference →

Tetrad Configuration

Learn how to configure the four pillars of Sematryx's AEAO Engine intelligence.

Configuration Guide →

Domain Libraries

Explore specialized optimization libraries for your industry.

Domain Docs →