Replies: 5 comments
-
|
Hi, Both I made a rough sketch of the flow here:
In the reference heuristic ( I think this would be the way forward. Alternatively you could write an entirely custom input parser and exporter. Best, |
Beta Was this translation helpful? Give feedback.
-
|
As of #71, final solutions are now also exported as JSON files in addition to SVG. Now you should be able to use What remains is the configuration of the algorithm's parameters. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your input, I will investigate how to use JsonSolution as the Output Interface. Regarding the parameters, would a parameter struct with pseudo defaut values help with configuration ? Best, |
Beta Was this translation helpful? Give feedback.
-
|
Yes, a config struct with defaults is certainly the way to go. However I will have to think about how to implement this in an elegant way as these parameters are used throughout the codebase and global mutable variables are against idiomatic Rust. Also, not all parameters have to be configurable by the end-user. I'll get to it, but it might take some time and iterations to get it done properly. |
Beta Was this translation helpful? Give feedback.
-
|
All parameters of the algorithm have now been split into I'll close this issue and convert it into a discussion |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Dear Jeroen,
As mentionned before, I am writing a Python wrapper around
sparrow(https://github.com/PaulDL-RS/spyrrow).As I didn't fully understand the instance conversion, I chose to use jagua-rs::JsonInstance as the input interface and SPSolution as the output interface.
Do you have additional suggestion for a better interface like SPInstance ?
Additionally, for JsonInstance, should I add checks for 0.0 and -0.0 rotation angles ?
Or are equivalent angles handled gracefully anyway further down the line ?
Yours,
Paul Durand-Lupinski
Beta Was this translation helpful? Give feedback.
All reactions