Skip to main content

D-K iteration in Python

Project description

dkpy

dkpy is a D-K iteration library written in Python, aiming to build upon python-control.

The package is currently a work-in-progress, and no API stability guarantees will be made until version 1.0.0.

Example

import dkpy
import numpy as np

dk_iter = dkpy.DkIterFixedOrder(
    controller_synthesis=dkpy.HinfSynLmi(
        lmi_strictness=1e-7,
        solver_params=dict(
            solver="MOSEK",
            eps=1e-9,
        ),
    ),
    structured_singular_value=dkpy.SsvLmiBisection(
        bisection_atol=1e-5,
        bisection_rtol=1e-5,
        max_iterations=1000,
        lmi_strictness=1e-7,
        solver_params=dict(
            solver="MOSEK",
            eps=1e-9,
        ),
    ),
    transfer_function_fit=dkpy.TfFitSlicot(),
    n_iterations=3,
    fit_order=4,
)

omega = np.logspace(-3, 3, 61)
block_structure = np.array([[1, 1], [1, 1], [2, 2]])
K, N, mu, info = dk_iter.synthesize(P, n_y, n_u, omega, block_structure)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dkpy-0.1.2.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

dkpy-0.1.2-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file dkpy-0.1.2.tar.gz.

File metadata

  • Download URL: dkpy-0.1.2.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for dkpy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e778583ef92006921c75e116531d9e2b4504a21ff70be99713703c2003c8628b
MD5 bc034f8268a69872a5eda7ace99c51fb
BLAKE2b-256 1f215ece020e983f196c2e47d4bf795b62afc2c93f3d4bbe8ca3e329d89c0258

See more details on using hashes here.

File details

Details for the file dkpy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: dkpy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for dkpy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 da22ffc378438de226ba3ad9b1bc61283e9589222a73eca4fc8129ad9fc14964
MD5 69f8efe2bd74eb3f46fcca676c52c6ab
BLAKE2b-256 be0e10654f19c4b8ecdea698bab6732a5de15dde3f630ca546b4932c66f4e73e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page