MCPcopy Create free account
hub / github.com/cmower/optas / vertcon

Function vertcon

optas/optimization.py:27–51  ·  view source on GitHub ↗

! Align inequality and equality constraints vertically. Given an inequality constraint ineq(x, p) and equality constraint eq(x, p). The method that is returned evaluates the following array. [ ineq(x, p) ] v(x, p) = [ eq(x, p) ] [ -eq(x, p) ]

(
    x: CasADiArrayType,
    p: CasADiArrayType,
    ineq: List[cs.Function] = [],
    eq: List[cs.Function] = [],
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

specify_vMethod · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected