Skip to main content

SetResources

Function SetResources 

Source
pub unsafe extern "C" fn SetResources(
    maxMemoryMB: c_int,
    maxThreads: c_int,
)
Expand description

@brief Set memory and thread resources for the solver.

@deprecated Use SolverContext with SolverConfig instead. See docs/api_migration.md for modern C++ API examples.

@param maxMemoryMB Maximum memory in megabytes @param maxThreads Maximum number of threads

This function is part of the legacy C API and is maintained for backward compatibility. New code should use the modern C++ API with SolverContext, which provides per-instance configuration through SolverConfig.