QuickstartΒΆ
This is a quickstart guide to get you up and running with the optymus project.
To begin using optymus, follow these steps:
Install the package via PyPI:
uv add optymus
Create an optimization problem:
from optymus import Optimizer
from optymus.benchmark import MccormickFunction
import jax.numpy as jnp
f = MccormickFunction()
initial_point = jnp.array([2, 2])
Optimize the problem:
opt = Optimizer(f_obj=f,
x0=initial_point,
method='bfgs')
Print the optimization report:
opt.report()