thegrumpys / odop

Open Design Optimization Platform (ODOP) - Coil spring design app; mechanical springs; compression spring, extension spring, torsion spring
https://www.springdesignsoftware.org
MIT License
4 stars 5 forks source link

Patsh return codes #704

Open grumpyinca opened 2 years ago

grumpyinca commented 2 years ago

Currently, the Pattern Search return codes are handled via a character string (NCODE). The character strings applied in patsh.js appear in the user interface without benefit of any intermediate layer.

Presumably, it would be better software engineering for patch.js to return an integer (or perhaps a bit field?) that is then interpreted by higher layers of software into the character string that appears in the user interface. Among other things, this approach would aid localization (internationalization).

1fifoto commented 2 years ago

Possibly return an Object (tuple) that contains the objective value (objective_value), iteration count (itno) and step size (del) value.