Skip to content

added: pretty-print box constraints#391

Merged
franckgaga merged 1 commit into
mainfrom
print_box_constraints
Jun 24, 2026
Merged

added: pretty-print box constraints#391
franckgaga merged 1 commit into
mainfrom
print_box_constraints

Conversation

@franckgaga

@franckgaga franckgaga commented Jun 24, 2026

Copy link
Copy Markdown
Member

Before:

LinMPC controller with a sample time Ts = 4.0 s:
├ estimator: SteadyKalmanFilter
├ model: LinModel
├ optimizer: OSQP 
├ transcription: MultipleShooting
└ dimensions:
  │ ├ 10 prediction steps Hp
  │ ├  5 control steps Hc
  │ ├  2 manipulated inputs u (0 integrating states)
  │ ├  6 estimated states x̂
  │ ├  2 measured outputs ym (2 integrating states)
  │ ├  0 unmeasured outputs yu
  │ └  1 measured disturbances d
  └ optimization:
    ├ 71 decision variables Z̃ (1 slack variable)
    ├ 40 linear inequality constraints A (0 custom)
    └ 60 linear equality constraints Aeq

After:

LinMPC controller with a sample time Ts = 4.0 s:
├ estimator: SteadyKalmanFilter
├ model: LinModel
├ optimizer: OSQP 
├ transcription: MultipleShooting
└ dimensions:
  │ ├ 10 prediction steps Hp
  │ ├  5 control steps Hc
  │ ├  2 manipulated inputs u (0 integrating states)
  │ ├  6 estimated states x̂
  │ ├  2 measured outputs ym (2 integrating states)
  │ ├  0 unmeasured outputs yu
  │ └  1 measured disturbances d
  └ optimization:
    ├ 71 decision variables Z̃ (1 slack variable, 21 bounds) # <--- new info
    ├ 40 linear inequality constraints A (0 custom)
    └ 60 linear equality constraints Aeq

@franckgaga franckgaga merged commit a8c2d31 into main Jun 24, 2026
2 of 5 checks passed
@franckgaga franckgaga deleted the print_box_constraints branch June 24, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant