Skip to content

Fix adding nonempty path objectives to empty objective

Jorn Baayen requested to merge zero-objective-fix into master

CollocatedIntegratedOptimizationProblem: If self.objective() returns a 0x0 MX, do not use it as a base to add path objectives to, as the result would still be 0x0.

This is due to the fact that

ca.MX() + 1 = ca.MX()

Merge request reports

Loading