Staircase optimizer

Hi Chris,
I am confused with the staircase optimizer and seems not doing what i need in MWorks. my application is to change a variable k based on another variable Hit, if Hit=1, k decreases until reaches lower bound, if Hit =0, k increases until reach up bound. is it a simple way to implement it?

Thank you!

  • Jing

Hi Jing,

I’ve attached an example experiment that (I believe) implements the behavior you need. If this isn’t what you want, please let me know, and we’ll find another solution.

Cheers,
Chris

Attachment: staircase_example.xml (3.53 KB)

Hi Chris,
it works now, Thanks!

  • Jing