Skip to main content

Module problem

Module problem 

Source
Expand description

Constrained optimization problem.

Port of ql/math/optimization/problem.hpp. The C++ class stores the cost function and constraint by reference with a lifetime warning in the docs; here the borrows make that contract explicit.

Structsยง

Problem
A cost function to minimize over a constrained region, tracking the current candidate minimum and evaluation counts.