Constrained tuning: Difference between revisions
→Computation: +howto |
|||
| Line 106: | Line 106: | ||
}} | }} | ||
Constraints can be added from the parameter <code>cons_monzo_list</code> of the <code>optimizer_main</code> function. | Constraints can be added from the parameter <code>cons_monzo_list</code> of the <code>optimizer_main</code> function. For example, to find the CTE tuning for septimal meantone, you type: | ||
<pre> | |||
map = np.array ([[1, 1, 0, -3], [0, 1, 4, 10]]) | |||
optimizer_main (map, cons_monzo_list = np.transpose ([1] + [0]*(map.shape[1] - 1))) | |||
</pre> | |||
You should get: | |||
<pre> | |||
Optimization terminated successfully. | |||
Generators: [1200. 1896.9521] (¢) | |||
Tuning map: [1200. 1896.9521 2787.8085 3369.5214] (¢) | |||
</pre> | |||
== Versus POTE tuning == | == Versus POTE tuning == | ||