ramp_proximal_weight
Autotuning functions for SCP (Successive Convex Programming) parameters.
RampProximalWeight
¶
Bases: AutotuningBase
Ramp Proximal Weight method.
This method ramps the proximal weight up linearly over the first few iterations, then keeps it constant.
Source code in openscvx/algorithms/ramp_proximal_weight.py
update_weights(state: AlgorithmState, candidate: CandidateIterate, nodal_constraints: LoweredJaxConstraints, settings: Config, params: dict, weights: Weights) -> str
¶
Update SCP weights keeping trust region constant.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
AlgorithmState
|
Solver state containing current weight values (mutated in place) |
required |
nodal_constraints
|
LoweredJaxConstraints
|
Lowered JAX constraints |
required |
settings
|
Config
|
Configuration object containing adaptation parameters |
required |
params
|
dict
|
Dictionary of problem parameters |
required |
weights
|
Weights
|
Initial weights from the algorithm |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Adaptive state string (e.g., "Accept", "Reject") |
Source code in openscvx/algorithms/ramp_proximal_weight.py
RampProximalWeightSpec
¶
Bases: BaseModel
Validates RampProximalWeight configuration from dict/YAML input.