Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Need help with the optimization tool!

Rwebber1991
8 - Asteroid

I would like to use the Optimization tool to maximize the weighted average revenue of my data but I cannot figure out how to properly configure the Optimization tool. I have variables a-g each with a pct weight that I want to apply to the Revenue field. Basically I want to find the max weighted average of the revenue and pct field while making sure the sum of the pct field is 1 and also making sure to bound the individual pct variables. Can someone please help me!? Thank you

3 REPLIES 3
PhilipMannering
16 - Nebula
16 - Nebula

So... is the current [pct] field in the data irrelevant, because you are deriving a new (and optimized) pct value between the lb and ub?

Rwebber1991
8 - Asteroid

The pct field is the starting point. It is essentially the weighting for the weighted average.

PhilipMannering
16 - Nebula
16 - Nebula

I still don't fully understand. But had a go anyway. If the percentages are our decision variables then this is what we get,

 

image.png

 

If I've misunderstood, maybe you could explicitly lay out the objective function and constraints. Or maybe seeing how the Optimization Tool is set up will still help. Happy to help further.

Labels