Hello,
I was just wondering whether it’s possible to scale the constraints in WEIS the way the objective is scaled? I was looking for something like a scaler/adder (or ref/ref0) from OpenMDAO in the analysis schema, but it doesn’t seem to be an option, @Daniel.Zalkind ?
Thanks,
Kasia
Hi Kasia,
Good to hear from you and always appreciate your continued interest and use in the WEIS stack of tools. Most of the constraints in WISDEM/WEIS are already scaled to be O(1) as an output variable before being activated by the user, so there is no need for additional numerical scaling. If you are using an available constraint that is scaled poorly, that is a bug so please let us know a bit more details about what you are doing and seeing.
For user-defined constraints, if that is what you are using, yes, it is possible to do what you describe. The code for it is actually in WISDEM here (and is also used to help define the optimization problem in WEIS). So, you could add a “ref” entry in a user-defined constraint that should scale the constraint values before applying any upper/lower bounds. I will add that this feature is likely not well tested or used, so you may encounter bugs and we’d be happy to work with you to resolve them.
Best,
Garrett