Skip to main content

Enterprise optimization API client - CPLEX/Gurobi alternative

Project description

ThalosForge

Enterprise optimization API — the CPLEX/Gurobi alternative.

pip install thalosforge[cloud]

Quick Start

import thalosforge as tf

# Configure with your API key (get one at thalosforge.com/pricing)
tf.configure(api_key="tf_...")

# Optimize
result = tf.optimize(
    func="sum(x**2)",
    bounds=[(-5, 5)] * 100
)

print(result.status)     # Status.OPTIMAL
print(result.objective)  # 1.234e-08
print(result.x)          # [0.0001, -0.0002, ...]

Why ThalosForge?

Feature ThalosForge CPLEX Gurobi
Installation pip install License manager + installer License manager + installer
Setup time 30 seconds 30+ minutes 30+ minutes
Cloud-ready ✅ Built-in Extra setup Extra setup
High-dimensional (1000D+) ✅ Optimized Slow Slow
Derivative-free
Pricing Pay-as-you-go $15K+/year $12K+/year

API Key

Get your API key at thalosforge.com/pricing

Set it in code:

tf.configure(api_key="tf_...")

Or via environment variable:

export THALOSFORGE_API_KEY=tf_...

Objective Functions

Pass objective as a math expression string:

# Sphere
result = tf.optimize("sum(x**2)", bounds)

# Rastrigin
result = tf.optimize("10*n + sum(x**2 - 10*cos(2*pi*x))", bounds)

# Rosenbrock
result = tf.optimize("sum(100*(x[1:]-x[:-1]**2)**2 + (1-x[:-1])**2)", bounds)

Available functions: sum, prod, mean, abs, sqrt, exp, log, sin, cos, tan, pi, e

Variables: x (solution vector), n (dimensions)

Engines

QuantumJolt (High-Dimensional)

Best for 100-10,000+ dimensions. SPSA-based, derivative-free.

result = tf.optimize(func, bounds, engine="quantumjolt", max_evaluations=5000)

DSS (Deterministic)

100% reproducible. Same inputs = identical outputs. Regulatory-friendly.

result = tf.optimize(func, bounds, engine="dss")

Kestrel (Constrained)

Linear constraints, inequality bounds.

result = tf.optimize(
    func="x[0] + x[1]",
    bounds=[(0, 10), (0, 10)],
    engine="kestrel",
    constraints=[
        {"expression": "x[0] + x[1]", "type": "leq", "rhs": 15},
    ]
)

Result Object

result.status       # Status.OPTIMAL, FEASIBLE, INFEASIBLE, TIMEOUT
result.objective    # Final objective value
result.x            # Solution vector (list)
result.iterations   # Number of iterations
result.evaluations  # Function evaluations
result.time         # Solve time in seconds
result.engine       # Engine used

# Export
result.to_json("solution.json")

Usage Tracking

# Check your usage
usage = tf.usage()
print(f"Used: {usage['optimizations_used']}/{usage['optimizations_limit']}")

Pricing

Tier Price Optimizations/mo Max Dims
Free $0 100 20
Developer $499/mo 10,000 500
Professional $2,499/mo 100,000 2,000
Enterprise Custom Unlimited Unlimited

Support

License

© 2025 ThalosForge Inc. All rights reserved.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thalosforge-1.0.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thalosforge-1.0.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file thalosforge-1.0.1.tar.gz.

File metadata

  • Download URL: thalosforge-1.0.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for thalosforge-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4c2c383cdb394b8d95401c482bc9637647d4a539c10b4ff9043ec2faeeb23aac
MD5 744258cfcfd4a4aa62fc173035123d3e
BLAKE2b-256 afef7b58245a4c326caf477ad82b028dfdb64b4e29cd84b5f7e86c0c17cfde2a

See more details on using hashes here.

File details

Details for the file thalosforge-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: thalosforge-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for thalosforge-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2937b32dcb51b18d8afbe26cf9fb66f25da3039ba0086400877b9bcd3f437cc8
MD5 b51246f1c89dc82b5e2de9fb252f9872
BLAKE2b-256 e7b722bdf3687ed301f5de0215254bf2aac2505a2d76f0eac157658f2ef1a6f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page