You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CADETProcessError: Non-linear transform was used in linear constraints.
Is this intended?
The reason is this section in
@property
def A_transformed(self):
"""np.ndarray: LHS Matrix of linear inequality constraints in transformed space.
See Also
--------
A
A_independent_transformed
A_independent
"""
A_t = self.A.copy()
for a in A_t:
for j, v in enumerate(self.variables):
t = v.transform
if isinstance(t, NoTransform):
continue
if not t.is_linear:
raise CADETProcessError(
"Non-linear transform was used in linear constraints."
)
Which raises an error if any variable is not linear as long as there is a inequality constraint.
If this is a bug, my proposed solution would be to change this to
@property
def A_transformed(self):
"""np.ndarray: LHS Matrix of linear inequality constraints in transformed space.
See Also
--------
A
A_independent_transformed
A_independent
"""
A_t = self.A.copy()
for a in A_t:
for j, v in enumerate(self.variables):
t = v.transform
if isinstance(t, NoTransform):
continue
if a[j] != 0 and not t.is_linear:
raise CADETProcessError(
"Non-linear transform was used in linear constraints."
)
So that only variables with a non-zero influence in the inequality constraint are checked.
I've pushed this to PR #116
The text was updated successfully, but these errors were encountered:
So
raises
Is this intended?
The reason is this section in
Which raises an error if any variable is not linear as long as there is a inequality constraint.
If this is a bug, my proposed solution would be to change this to
So that only variables with a non-zero influence in the inequality constraint are checked.
I've pushed this to PR #116
The text was updated successfully, but these errors were encountered: