Solver must throw an exception if some cost, constraints or dynamics mismatch the problem size.
Solver must throw an exception if some cost, constraints or dynamics mismatch the problem size.