There Must be two Bounds Error

akoral19akoral19 Member Posts: 3
edited March 20 in Photonics


I'm trying to simulate the "Inverse design of a Y-splitter topology optimization" by changing the given pixel sizes to 20 nm to 50 nm. But I'm receiving the following error. How can we solve this error?


  • trobertstroberts Posts: 71Ansys Employee

    Hello akoral19,

    This error is because the "bounds" variable needs to be an array of tuplets the same length as the parameters, with each tuplet defining the min and max values that each parameter can take. The simplest way doing that is to use the same bounds for each tuplet and multiply by an integer. Then the geometry function, initial parameters, and bounds are passed to the lumopt geometry class

    bounds = [(0.2e-6, 1.2e-6)] * initial_points_y.size
    polygon = FunctionDefinedPolygon(func = splitter,
                                     initial_params = initial_points_y,
                                     bounds = bounds,
  • akoral19akoral19 Posts: 4Member

    Thank you for your quick answer but I could not find the part that the bounds parameter defined. Can you please tell me where I can find it?

Sign In or Register to comment.