# shrinkage::WorkingSetPolicy

Shrinkage for Rust · 0.3.0

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

```rust
pub enum WorkingSetPolicy
```

Feature selection for restricted numerical updates. 

Every policy retains current nonzeros. Excluded zeros can reenter after a complete optimality check; only the original problem certifies convergence. 

<a id="variants"></a>

## Variants

<a id="variant-Adaptive"></a>

### `Adaptive`

```rust
Adaptive { initial_size: usize, prune: bool }
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

Rank features by optimality violation, always retaining current nonzeros. 

<a id="variant-Adaptive-field-initial_size"></a>

#### `initial_size`

```rust
initial_size: usize
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

Positive initial feature budget, enlarged to retain the starting support. 

<a id="variant-Adaptive-field-prune"></a>

#### `prune`

```rust
prune: bool
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

Rebuild around twice the support instead of retaining and doubling the set. 

<a id="variant-Auto"></a>

### `Auto`

```rust
Auto
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

Adaptive sets for single fits, and ever-active sets for paths. 

<a id="variant-Disabled"></a>

### `Disabled`

```rust
Disabled
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

Update every feature allowed by independently configured screening. 

<a id="variant-EverActive"></a>

### `EverActive`

```rust
EverActive
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

Retain features activated at accepted iterates, including earlier path points. 

<a id="impl-ab4bcb86477991ab7234381d4042bf8683fbd508bbede3ee5455030b5adb1911"></a>

## Inherent implementation

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

```rust
impl WorkingSetPolicy
```

<a id="impl-5c4ad7931ede53df869071c6256647c115947a366b3551f10325fdc38c0bda0a"></a>

## Implementation of Clone

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

```rust
impl Clone for WorkingSetPolicy
```

<a id="method-clone-5c4ad7931ede53df869071c6256647c115947a366b3551f10325fdc38c0bda0a"></a>

### `clone`

```rust
fn clone(&self) -> Self
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

<a id="impl-dbf0a7321abf7f896faea4312d4d1e619a6087d6dd5877c46a48912eab0b3267"></a>

## Implementation of Copy

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

```rust
impl Copy for WorkingSetPolicy
```

<a id="impl-a6b2514384c4ad7951d89b8b7033e0542344754a9333b79f2c62433007b06020"></a>

## Implementation of Debug

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

```rust
impl Debug for WorkingSetPolicy
```

<a id="method-fmt-a6b2514384c4ad7951d89b8b7033e0542344754a9333b79f2c62433007b06020"></a>

### `fmt`

```rust
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

<a id="impl-a86a100600e525436265e448bef63eac735d5491babbbf6f34b010da12cb9110"></a>

## Implementation of Default

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

```rust
impl Default for WorkingSetPolicy
```

<a id="method-default-a86a100600e525436265e448bef63eac735d5491babbbf6f34b010da12cb9110"></a>

### `default`

```rust
fn default() -> Self
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

<a id="impl-f577bb97194b32ae1c461eb263174d338c481b80c81e299aef6defa60277616e"></a>

## Implementation of Eq

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

```rust
impl Eq for WorkingSetPolicy
```

<a id="impl-7d2890e07bb4b70a870b8a16a667848c7874e2d652d82e2b24c910e58ba3b1fa"></a>

## Implementation of PartialEq

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

```rust
impl PartialEq for WorkingSetPolicy
```

<a id="method-eq-7d2890e07bb4b70a870b8a16a667848c7874e2d652d82e2b24c910e58ba3b1fa"></a>

### `eq`

```rust
fn eq(&self, other: &Self) -> bool
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

<a id="impl-84f0aef7f4abe11b42daae05f0cc0134fce83c22952fae5a766ac8aee08a54cb"></a>

## Implementation of StructuralPartialEq

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/src/solver/working_set.rs>)

```rust
impl StructuralPartialEq for WorkingSetPolicy
```

<a id="impl-bdb1b577c543e4adc2044c78b3bcba50fcb688bdcaf4ecf1196daecde7a6c7c9"></a>

## Implementation of Freeze

```rust
impl Freeze for WorkingSetPolicy
```

<a id="impl-2ea6bc7ed4d72c392193a4f1f48ceb209bc58a59325b061648d42471d53fef92"></a>

## Implementation of RefUnwindSafe

```rust
impl RefUnwindSafe for WorkingSetPolicy
```

<a id="impl-3e4ce32b2d1e0747f7e6a38e49c09d61d02f2446aa3c004296f31f4a866fb047"></a>

## Implementation of Send

```rust
impl Send for WorkingSetPolicy
```

<a id="impl-170b78de932a912e85a8d37c8c32dedcb4ee59967573d7bfd0e50f41b39772b5"></a>

## Implementation of Sync

```rust
impl Sync for WorkingSetPolicy
```

<a id="impl-1f1898ab1a8a53a5ac3019bc875f0438fd39ed21aa096ce0187b826371c970be"></a>

## Implementation of Unpin

```rust
impl Unpin for WorkingSetPolicy
```

<a id="impl-4c01a9564914469b6f43b44c1cd91f698b777ed9c737328f7f21a83a4099f585"></a>

## Implementation of UnsafeUnpin

```rust
impl UnsafeUnpin for WorkingSetPolicy
```

<a id="impl-b28913a7dc1d62b23879820dc5553a13e13232af50cb0294dccddefba46eb048"></a>

## Implementation of UnwindSafe

```rust
impl UnwindSafe for WorkingSetPolicy
```

<a id="impl-1e5682dc18e03c648aa9b125290c107c1e8d96ce8a179a8532e4057da4daf0cd"></a>

## Implementation of Any

```rust
impl<T> Any for T where T: 'static + ?Sized
```

<a id="impl-ef39a31d69bd7e2a30223e623f4d8223aea46d8fc4f42e14bffa3ec7c63b5f4e"></a>

## Implementation of Boilerplate

```rust
impl<T> Boilerplate for T where T: Copy + Send + Sync + Debug + PartialEq + 'static
```

<a id="impl-6c0b25c2c92cdb117802d9c0a4c70afc9a8bfb0da875bc6e66191e2349fcdf3f"></a>

## Implementation of Borrow

```rust
impl<T> Borrow<T> for T where T: ?Sized
```

<a id="impl-796e80d926348273a22b04d8e84f510693b11c06ec57c3c3e2e8c1524094a85c"></a>

## Implementation of BorrowMut

```rust
impl<T> BorrowMut<T> for T where T: ?Sized
```

<a id="impl-8360e4092e7ec4a05a26dd304cd739398f0cacc50c8d08dd5be0223d1a08d02e"></a>

## Implementation of ByRef

```rust
impl<T> ByRef<T> for T
```

<a id="impl-dbb1293b7b5dd80c4d9a98cfdd6843dc7470224c0b1387731cd418da07046d7b"></a>

## Implementation of CastableFrom

```rust
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT where ST: ?Sized, DT: ?Sized
```

<a id="impl-97b65e7dfc44b5ecaa495a3a19fe737914a1e9f8532200cf8f46191314e7d777"></a>

## Implementation of CastableFrom

```rust
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT where ST: ?Sized, DT: ?Sized
```

<a id="impl-86d7da2bfd1140cc1675dfe6a975e6a2762338ab32731152da0723858ef3aa81"></a>

## Implementation of CloneToUninit

```rust
impl<T> CloneToUninit for T where T: Clone
```

<a id="impl-d82ade77f1f9b6253ee49e007ed46a4df3334a6069d1fdef6fd67634c6a19d9a"></a>

## Implementation of Equivalent

```rust
impl<Q, K> Equivalent<K> for Q where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized
```

<a id="impl-a4865d4893a8972c2d56ee8a90bead5c7361c039dd168c58c183431204efd0d1"></a>

## Implementation of Equivalent

```rust
impl<Q, K> Equivalent<K> for Q where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized
```

<a id="impl-c22bdd3b1b677b66eb32d1c182cc1410c7f0c46491dd74e6a659647c238d19ec"></a>

## Implementation of From

```rust
impl<T> From<T> for T
```

<a id="impl-5adf6ca1830f30fbbac655ab8ff394d254954df7ededc7cc833c72fdc87d6f00"></a>

## Implementation of Imply

```rust
impl<T, U> Imply<T> for U where T: ?Sized, U: ?Sized
```

<a id="impl-85eec431edd188129f88290bbcb748e4d2fdc97f7efef3c162b8c252286ffec0"></a>

## Implementation of Into

```rust
impl<T, U> Into<U> for T where U: From<T>
```

<a id="impl-c40268dd59dd3329202d3c0544c62372e98ff3baa8ec442ec00752e024ec1d06"></a>

## Implementation of IntoEither

```rust
impl<T> IntoEither for T
```

<a id="impl-5655b1ef858b34a584cb80104f040c8a4063ced0d281311a0833ed12aefde86e"></a>

## Implementation of Pointable

```rust
impl<T> Pointable for T
```

<a id="impl-8cc2aa01198fc9fa44f08b889f62988d70d2a7f4f0f11f4666d4c08bdaddb22a"></a>

## Implementation of Read

```rust
impl<T> Read<Exclusive, BecauseExclusive> for T where T: ?Sized
```

<a id="impl-5ea09131039c62dd92b119d480a35c7e2b33d2b81dccf0b849f6b1f19f4bda24"></a>

## Implementation of Same

```rust
impl<T> Same for T
```

<a id="impl-e7c74775fb3ccca97dde289783210508c61e4f404318b19c70c2c185f535f063"></a>

## Implementation of Scalar

```rust
impl<T> Scalar for T where T: 'static + Clone + PartialEq + Debug
```

<a id="impl-7ee6ff38d6674f5edfe4734359062c2a67a572cff5899a89704764822b931c7f"></a>

## Implementation of SupersetOf

```rust
impl<SS, SP> SupersetOf<SS> for SP where SS: SubsetOf<SP>
```

<a id="impl-a8ef6e94191301c3685488478f4905086c47137bac2d606ea4d09631d5472b06"></a>

## Implementation of ToOwned

```rust
impl<T> ToOwned for T where T: Clone
```

<a id="impl-83960135d00d98080c95a08867729696e36811280c2dd9cf34c1b4fe21c81e18"></a>

## Implementation of TryFrom

```rust
impl<T, U> TryFrom<U> for T where U: Into<T>
```

<a id="impl-1cc495bcaa5112ffb304e7f0de674feca391fd97f47bec86033a9225b72ac05c"></a>

## Implementation of TryInto

```rust
impl<T, U> TryInto<U> for T where U: TryFrom<T>
```
