fix exception text
parent
bdd00d8b49
commit
d8564f25e0
|
|
@ -53,7 +53,7 @@ public:
|
||||||
/** Conversion from JacobianFactor */
|
/** Conversion from JacobianFactor */
|
||||||
explicit LinearInequality(const JacobianFactor& jf, Key dualKey) : Base(jf), dualKey_(dualKey), active_(true) {
|
explicit LinearInequality(const JacobianFactor& jf, Key dualKey) : Base(jf), dualKey_(dualKey), active_(true) {
|
||||||
if (!jf.isConstrained()) {
|
if (!jf.isConstrained()) {
|
||||||
throw std::runtime_error("Cannot convert an unconstrained JacobianFactor to LinearEquality");
|
throw std::runtime_error("Cannot convert an unconstrained JacobianFactor to LinearInequality");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (jf.get_model()->dim() != 1) {
|
if (jf.get_model()->dim() != 1) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue