Hi I am new to mystic so I apologize if I ask similar questions that have been answered before.
Say I have an input x (a list of length n), and a function f(x) that will map the input to a m-dimensional output space. I also have a m-dimensional constraint list that also depends on the input x (say it is g(x)), and I want to make sure the output is less than the constraint for each element of the m-dimensional list. How should I specify this in mystic?
simplified example:
x = [1,2,3]
output = [6, 12] # with some f(x)
constraints = [5, 10] # with some g(x)
I'm the
mysticauthor. The easiest way I'd constrain one function's output with another is by using a penalty (soft constraint).I'll show a simple case, similar to what I think you are looking for:
Let's find the minimum of f, larger than g.
From the above plot, you can sort of see that the solver started minimizing
f(color=jet), then hitg(color=cool), and traced along the intersection until it hit the minimum.