# `07_GelSystems/optimize_parameters_gel_water_systems`

This directory contains the curated PNIPAAm-water gel fit results used to
compare elasticity models and fitting strategies.

## Prerequisites

Use the root repository environment. No setup is required to inspect the JSON,
CSV, or text files directly.

## File Patterns

- `Original <model>_params.json`: reference parameter sets without refitting
- `One file <model>_params.json`: fits against one degree-of-swelling dataset
- `Two file <model>_params.json`: fits against two degree-of-swelling datasets
- `*optimize_parameters_gel_water_systems_de_gen.csv`: differential-evolution
  histories for the scripted optimization runs
- `*ipykernel_launcher_de_gen.csv`: legacy notebook-style history files kept in
  the archive
- [`00_scores.csv`](00_scores.csv): score summary used for comparison
- [`00_scores_table.txt`](00_scores_table.txt): LaTeX-style score table

Model labels currently include `Flory`, `Phantom`, `Miao`, and `Miao + VMAX`.
The `Miao + VMAX` variants optimized `V_MAX_FAC` alongside the network
functionality.

## Consumers

The comparison scripts in the parent directory consume these archived results:

- [`../plot_gel_lle_different_elastics.py`](../plot_gel_lle_different_elastics.py)
- [`../plot_gel_lle_different_m.py`](../plot_gel_lle_different_m.py)
- [`../plot_gel_lle_different_water_models.py`](../plot_gel_lle_different_water_models.py)

## Commands

Refresh this archive from the parent directory:

```bash
cd 07_GelSystems
python optimize_parameters_gel_water_systems.py
```

## Notes

The optimizer writes into this directory based on the script stem and appends
to matching CSV history files. Move or rename old histories first if a rerun
should produce a clean archive.
