Skip to content

Commit

Permalink
Merge pull request #10 from pieterberg/control
Browse files Browse the repository at this point in the history
Process Control (0.4.0)
  • Loading branch information
pieterberg authored Aug 18, 2022
2 parents e84de88 + fbd4c60 commit d3e5159
Show file tree
Hide file tree
Showing 99 changed files with 192,057 additions and 1 deletion.
44 changes: 43 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,52 @@

<img src="https://img.shields.io/badge/Stellenbosch University-BEng ChemE-008BC0?style=flat"/>

BEng ChemE final year project using PCA and statistical classification to identify a process' state.
Chemical Engineering final year project using PCA and statistical classification to identify a process' state.

## Usage instructions

### Running the simulation

1. Run the Simulink model from the MATLAB Live Script `process_model/copper_solvent_extraction_model.mlx`.

1. Run the MATLAB Live Script from the main `Process-State-Identification` folder.

### Simulation settings

| Setting | Values | Description |
|-----------------------|---------------------------|-----------------------------------------------------------------------------|
| `SAVE_IMAGES` | - `true` <br> - `false` | Saves the generated images to the respective output folder if set to `true` |
| `SAVE_DATA` | - `true` <br> - `false` | Saves the simulation data to the respective output folder if set to `true` |
| `SENSOR_NOISE` | - `true` <br> - `false` | Adds sensor noise to the measurements if set to `true` |
| `FEEDBACK_CONTROL` | - `true` <br> - `false` | Enables feedback control of the process if set to `true` |
| `FEEDFORWARD_CONTROL` | - `true` <br> - `false` | Enables feedforward control of the process if set to `true` |

### Output folder structure

Create the following folder structure to save to simulation results using the `SAVE_IMAGES` and `SAVE_DATA` settings:

```
.
|__ output
|__ process_model
|__ data
|__ graphs
|__ measured_variables
|__ process_variables
|__ sensor_noise
```

Create the following folder structure to save the ARX model results:

```
.
|__ controller_tuning
|__ output
|__ feedback
|__ feedforward
```





Empty file removed assets/simulink/.gitkeep
Empty file.
Binary file added assets/simulink/controllers/c_LO_controller.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/controllers/c_RE_controller.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/controllers/controller_FB1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/controllers/controller_FB2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/controllers/controller_FF1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/controllers/controller_FF2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/controllers/controller_FF3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/controllers/controller_FF4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/main_processes/E1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/main_processes/E2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/main_processes/E3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/main_processes/LE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/main_processes/PLSP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/main_processes/PLSS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/main_processes/S1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/main_processes/scopes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/mixers_and_setlers/E1_mixer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/mixers_and_setlers/E1_settler.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/mixers_and_setlers/E2_mixer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/mixers_and_setlers/E2_settler.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/mixers_and_setlers/E3_mixer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/mixers_and_setlers/E3_settler.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/mixers_and_setlers/S1_mixer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/mixers_and_setlers/S1_settler.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/sensors/c_BO_sensor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/simulink/sensors/c_LE_sensor.png
Binary file added assets/simulink/sensors/c_LO_sensor.png
Binary file added assets/simulink/sensors/c_PLS_sensor.png
Binary file added assets/simulink/sensors/c_RE_sensor.png
Binary file added assets/simulink/sensors/c_RaffP_sensor.png
Binary file added assets/simulink/sensors/c_RaffS_sensor.png
Binary file added assets/simulink/sensors/f_LE_sensor.png
Binary file added assets/simulink/sensors/f_LO_sensor.png
Binary file added assets/simulink/sensors/f_PLSP_sensor.png
Binary file added assets/simulink/sensors/f_PLSS_sensor.png
Binary file added assets/simulink/valves/Valve_LE.png
Binary file added assets/simulink/valves/Valve_LO.png
Binary file added assets/simulink/valves/valve_LE_flow_model.png
Binary file added assets/simulink/valves/valve_LE_valve_model.png
Binary file added assets/simulink/valves/valve_LO_flow_model.png
Binary file added assets/simulink/valves/valve_LO_valve_model.png
Binary file added controller_tuning/arx_models/arx_models.slx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

1 comment on commit d3e5159

@pieterberg
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.