Skip to content

Commit 34d818b

Browse files
committed
wip: added support for custom constraints gc
1 parent 4c97648 commit 34d818b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/controller/nonlinmpc.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ function init_optimization!(
595595

596596
g_min = fill(-myInf, ng)
597597
g_max = fill(+myInf, ng)
598+
g_max[end-nc+1:end] .= 0 # custom constraints, if any, are always upper bounded
598599

599600
∇g_structure = init_diffstructure(∇g)
600601

0 commit comments

Comments
 (0)