Skip to content

Commit 3705ba2

Browse files
author
Christian Ponte
committed
Fix bad MException ID in Model
1 parent 0812fe1 commit 3705ba2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/+toxo/Model.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
options = optimoptions('fmincon', 'Display', 'none', 'StepTolerance', 1e-120, 'ConstraintTolerance', 1e-3);
7878
[alpha, beta, exitflag, output] = fmincon(bfunction, x0, [], [], [], [], lb, ub, nonlcon, options);
7979
if exitflag < 0
80-
ME = MException("toxo.Model:no_solution", output.message);
80+
ME = MException("Model:no_solution", output.message);
8181
throw(ME);
8282
end
8383
pt = toxo.PT(obj, maf, alpha, beta);
@@ -102,7 +102,7 @@
102102
options = optimoptions('fmincon', 'Display', 'none', 'StepTolerance', 1e-120, 'ConstraintTolerance', 1e-3);
103103
[beta, alpha, exitflag, output] = fmincon(afunction, x0, [], [], [], [], lb, ub, nonlcon, options);
104104
if exitflag < 0
105-
ME = MException("toxo.Model:no_solution", output.message);
105+
ME = MException("Model:no_solution", output.message);
106106
throw(ME);
107107
end
108108
pt = toxo.PT(obj, maf, alpha, beta);

0 commit comments

Comments
 (0)