#323 closed defect (fixed)
psMinimizePowell does not set value, lastDelta
| Reported by: | Paul Price | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | types | Version: | unspecified |
| Severity: | trivial | Keywords: | |
| Cc: |
Description
psMinimizePowell does not set min->value or min->lastDelta. These parameters
are necessary for inspecting the quality of the fit.
bool success = psMinimizePowell(min, position, NULL, coordsArray, minFunc);
printf("Success: %d\n", success);
printf("x: %f\ny: %f\n", position->data.F32[0], position->data.F32[1]);
printf("min->value: %f\n", min->value);
printf("min->iter: %d\n", min->iter);
printf("min->lastDelta: %f\n", min->lastDelta);
produces:
Success: 1
x: -2.999686
y: 1.002555
min->value: 0.000000
min->iter: 3
min->lastDelta: 0.000000
Change History (6)
comment:1 by , 21 years ago
| Owner: | changed from to |
|---|
comment:2 by , 21 years ago
| Owner: | changed from to |
|---|
comment:3 by , 21 years ago
| Status: | new → assigned |
|---|
comment:4 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
This code was fixed in the current CVS tree.
Note:
See TracTickets
for help on using tickets.

The ->value and ->iter members are currently set on all successful exit points.
Must set ->lastDelta.