# CADET MATCH auto-keq failed

**URL:** <https://forum.cadet-web.de/t/cadet-match-auto-keq-failed/366>\
**Category:** CADET Troubleshooting\
**Created:** [July 22, 2021, 8:28pm UTC](https://forum.cadet-web.de/t/cadet-match-auto-keq-failed/366 "2021-07-22T20:28:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jing.Guo](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/jing.guo/32/81_2.png) [@Jing.Guo](https://forum.cadet-web.de/u/Jing.Guo)\
**Post date:** [July 22, 2021, 8:28pm UTC](https://forum.cadet-web.de/t/cadet-match-auto-keq-failed/366/1 "2021-07-22T20:28:21Z")

</div>

Hello, I am trying to use auto-keq function in cadet-match, but I got this keyError: “[‘MCL\_KA/MCL\_KD Comp:0 Bound:0’] not in index”

Could some one help solve this problem? Thanks.

---

<div class="post-metadata">

**Author:** ![w.heymann](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/w.heymann/32/37_2.png) [@w.heymann](https://forum.cadet-web.de/u/w.heymann)\
**Post date:** [July 23, 2021, 12:49pm UTC](https://forum.cadet-web.de/t/cadet-match-auto-keq-failed/366/2 "2021-07-23T12:49:07Z")

</div>

Can you share your parameter transformation setup in python or json?

---

<div class="post-metadata">

**Author:** ![Jing.Guo](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/jing.guo/32/81_2.png) [@Jing.Guo](https://forum.cadet-web.de/u/Jing.Guo)\
**Post date:** [July 23, 2021, 5:12pm UTC](https://forum.cadet-web.de/t/cadet-match-auto-keq-failed/366/3 "2021-07-23T17:12:02Z")

</div>

Sure! Thanks for your help!

```python
parameter1 = Dict()
parameter1.transform = 'auto_keq'
parameter1.component = 0
parameter1.bound = 0
parameter1.location = ['/input/model/unit_002/adsorption/MCL_KA','/input/model/unit_002/adsorption/MCL_KD']
parameter1.minKA = 1e-5
parameter1.maxKA = 1e5
parameter1.minKEQ = 1e-4
parameter1.maxKEQ = 1e4

parameter2 = Dict()
parameter2.transform = 'auto'
parameter2.component = 0
parameter2.bound = 0
parameter2.location = '/input/model/unit_002/adsorption/MCL_QMAX'
parameter2.min = 1
parameter2.max = 20

match_config.parameters = [parameter1, parameter2]

experiment1 = Dict()
experiment1.csv = 'A:/Simulation/BT PBS (with PFR)/reduced.csv'
experiment1.isotherm = '/output/solution/unit_002/SOLUTION_OUTLET_COMP_000'
experiment1.HDF5 = 'model.h5'
experiment1.name = 'main'

match_config.experiments = [experiment1,]

feature1 = Dict()
feature1.name = "Pulse"
feature1.type = 'SSE'

experiment1.features = [feature1,]

match_config.searchMethod = 'NSGA3'
match_config.population = 12
match_config.stallGenerations = 10
match_config.finalGradRefinement = True
match_config.gradVector = True

from CADETMatch.jupyter import Match

match_file = base_dir / 'langmuir_keq.json'

with open(match_file, 'w') as json_file:
    json.dump(match_config.to_dict(), json_file, indent='\t')

match = Match(match_file)
match.start_sim()
match.plot_best()

```

---

<div class="post-metadata">

**Author:** ![Jing.Guo](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/jing.guo/32/81_2.png) [@Jing.Guo](https://forum.cadet-web.de/u/Jing.Guo)\
**Post date:** [July 27, 2021, 12:03am UTC](https://forum.cadet-web.de/t/cadet-match-auto-keq-failed/366/4 "2021-07-27T00:03:15Z")

</div>

Hi William, did you take a chance to look at my python code? Thanks.

---

<div class="post-metadata">

**Author:** ![w.heymann](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/w.heymann/32/37_2.png) [@w.heymann](https://forum.cadet-web.de/u/w.heymann)\
**Post date:** [July 27, 2021, 9:09am UTC](https://forum.cadet-web.de/t/cadet-match-auto-keq-failed/366/5 "2021-07-27T09:09:37Z")

</div>

I don’t see anything wrong with those transforms. Can you share the entire notebook for this?

---

<div class="post-metadata">

**Author:** ![w.heymann](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/w.heymann/32/37_2.png) [@w.heymann](https://forum.cadet-web.de/u/w.heymann)\
**Post date:** [August 3, 2021, 1:09pm UTC](https://forum.cadet-web.de/t/cadet-match-auto-keq-failed/366/6 "2021-08-03T13:09:28Z")

</div>

This problem has been solved. It turned out the problem was related to trying to resume from a checkpoint with a changed configuration file.

---

<div class="post-metadata">

**Author:** ![Jing.Guo](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/jing.guo/32/81_2.png) [@Jing.Guo](https://forum.cadet-web.de/u/Jing.Guo)\
**Post date:** [August 3, 2021, 1:47pm UTC](https://forum.cadet-web.de/t/cadet-match-auto-keq-failed/366/7 "2021-08-03T13:47:23Z")

</div>

Thanks Bill for your help! I really appreciate it.

---

<div class="post-metadata">

**Author:** ![h.lanzrath](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/h.lanzrath/32/1186_2.png) [@h.lanzrath](https://forum.cadet-web.de/u/h.lanzrath)\
**Post date:** [January 27, 2026, 7:37am UTC](https://forum.cadet-web.de/t/cadet-match-auto-keq-failed/366/8 "2026-01-27T07:37:02Z")

</div>


