Constraint in Tunny

From Tunny’s documentation . We can set constraints to the objectives.

I am checking the Tunny’s example file optimization_with_constraints.gh

I made the //1000, 200 panel to help myself understand the constraint idea. I was hoping the optimized results will give me v0 < 1000, and v1 < 200. However as the screenshot I pasted, the values are not in the range. How can I understand the constraint idea under the setting like this?

I am hoping @hiron -san can see this post, and kindly answer this.

Thanks in advance

I also checked the result from the visual webpage. I noticed that the constraints are soft constraints will these out of the constraint output because it’s soft?

The original example.

v0:

v1:

I don’t understand by

  • 1000-v0
  • 500-v1
    means?

by the

Does
1000-v0 means, the constraint is v0 > 1000 ?
500 - v1 means, the constraint is v1 > 500?

If so,
If I would like to make v0<3000 for example, I should do
v0 - 3000 calculation before assign it as constraint?

@Jim18

If I would like to make v0<3000 for example, I should do
v0 - 3000 calculation before assign it as constraint?

That is correct.
Tunny considers a trial to be feasible (satisfies the constraint) if the value you input to Constraint is less than zero.

As you have read the documentation, Tunny’s constraints are soft constraints.
This does not guarantee that the constraints will always be satisfied, but rather makes it harder to make attempts that do not satisfy the constraints.