Asniel Rodriguez Ruiz
October 3, 2025
At Windsketch, our development team faced one of the biggest technical challenges: creating an agnostic pricing calculation model capable of adapting to a market where each manufacturer follows its own logic—often unpredictable and even contradictory.
Pricing calculation in this industry is far from uniform:
It was an environment with no common rule, where traditional methods failed to generalize effectively.
To tackle the problem, the team began by designing several static calculation models, which allowed us to cover a large portion of manufacturers with more regular pricing patterns:
These approaches successfully addressed many cases. However, there remained manufacturers with highly irregular and non-linear price curves that didn’t fit into any standard rule.
Our team also experimented with various artificial intelligence approaches and mathematical models:
Each attempt provided valuable insights, but none achieved the balance between accuracy, simplicity, and performance that we needed.
The turning point came when we accepted an uncomfortable truth: there is no single function that can represent the behavior of the entire market. The diversity of manufacturers, materials, and internal pricing rules made a purely global approach unfeasible.
This led to our definitive solution: a hybrid model, based on adaptive (piecewise) segmentation, combined with local polynomial regressions and error control mechanisms.
Instead of searching for a single curve to generalize all behaviors, the system began analyzing price variations within measurement sets, identifying sharp changes or inconsistencies. These inflection points acted as natural interval boundaries, within which a polynomial function could be fitted with higher accuracy.
Each segment or interval is evaluated with:
If the error exceeds the defined threshold, the system:
This allows the pricing engine to precisely detect and isolate areas where manufacturer rules change or behave non-linearly, without contaminating adjacent intervals. As a result, the system remains accurate and stable, even when faced with catalogs that have abrupt, step-like, or inverted price curves.
The core of our engine is not limited to working with area or flat dimensions. At Windsketch, we combine multiple calculation approaches, all coexisting in a modular and transparent way:
This combination of rules, supported by a mathematical model that evolves and self-corrects on the fly, allows Windsketch to operate a pricing engine that can adapt to:
Beyond accuracy, the model was designed to be:
Solving the mathematical aspect was only half the battle. The team also had to integrate this logic into a production system, facing challenges such as:
This was a challenge involving both data science and software engineering.
The result was a robust pricing engine that combines standard models for manufacturers with traditional rules and an advanced mathematical model for those with irregular patterns. This solution allowed Windsketch to build a truly agnostic system, capable of adapting to a fragmented and complex market.
The most valuable lesson for our team: you don’t always have to choose between artificial intelligence and classical mathematics. Sometimes, the best solution comes from hybridizing approaches and applying pragmatic engineering, achieving a balance between accuracy, simplicity, and scalability.
Asniel Rodríguez Ruiz is the Lead Tech and Product Lead at Windsketch, where he has spearheaded the platform’s development from the ground up — overseeing everything from technical architecture to the implementation of core features such as real-time estimation, third-party integrations, and the adaptive pricing engine for manufacturers.
Before Windsketch, Asniel co-founded Boukker, a social network for readers and writers designed to connect emerging authors with new audiences and foster vibrant literary communities online.
He combines his entrepreneurial vision with strong expertise in software engineering and artificial intelligence, leading teams to transform traditional industries through innovative technology.