Skip to main content
POST
/
quantlib
/
numerical
/
optimize
/
minimize
Minimize Multi-Variable Function
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/numerical/optimize/minimize \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "func_name": "rosenbrock",
  "x0": [
    -1,
    2
  ],
  "method": "bfgs",
  "tol": 1e-8
}
'
{
  "success": true,
  "data": {
    "x": [
      1,
      1
    ],
    "fun": 0,
    "iterations": 42,
    "converged": true,
    "method": "bfgs"
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
func_name
enum<string>
required

Function to minimize

Available options:
rosenbrock,
sphere,
rastrigin,
quadratic
Example:

"rosenbrock"

x0
number[]
required

Initial guess for the minimum location

Example:
[-1, 2]
method
enum<string>
default:bfgs

Optimization method

Available options:
bfgs,
nelder_mead
Example:

"bfgs"

tol
number
default:1e-8

Convergence tolerance

Example:

1e-8

Response

Successful Response

success
boolean
Example:

true

data
object