Analyzing the Convergence Plot and Violations

Analyze convergence plot and violation trends.

Learning Objectives

Set a Minimum Drain Slope

In the previous exercise Setting Objectives and Running Optimization yo discovered that the terrain did not get graded as expected. When grading a side close to a river bank, you want the overall drain pattern of the site to drain towards the river. Achieving drainage occurs by specifying the minimum drain slope constraint.

Continue where you left off with GO-Riverbank_1.dwg in Civil 3D Imperial.

In the Grading Objects Browser, select the grading limit under the Grading Limit category.

Grading Limit Object

In the Grading Limit Properties panel, change the minimum drain slope to 2%.

Grading Limit Constraints

If you run the optimization now, you will get the exact same result as before. This may be surprising, but remember:

Important

Minimum drainage slope in Grading Optimization requires drain elements such as drain lines or low points. The minimum drainage slope constraint cannot calculate if drain elements are missing.

Place a Drain Line

  1. Close Grading Optimization and go back to Civil 3D.

  2. On the surface, select the straight polyline in the river that runs from North to South.

    Drain Line Geometry

  3. In the Grading Object Tools Palette, select Drain Line tool Drain Line.

  4. Press Enter.

    This creates a drain line named Drain Line -1.

  5. Click Analyze tab > Grading Optimization panel > Optimize Optimize.

    Notice in the Grading Object Browser that the drain line has been created.

    Drain Line Object

Run Optimization

  1. Click Optimize Optimize to begin the optimization.

    You can see the surface fills up a berm along the river and tries to slope up toward the road to allow for drainage.

    Drain Line Optimized

  2. Click Convergence Plots on either the Violation tab or Cut-fill tab of the Optimization Panel to open the Convergence Plots dialog.

    The convergence plot proximity value appears to flatten out at a very high value.

    Drain Line Plot

    This optimization appears to not be feasible.

Examine the Violation View

To better understand why the problem may not be feasible, you can examine surface violations that have occurred.

  1. On the bottom right of Grading Optimization, on the Optimization Toolbar, click Visualization Toolbar Visualization Toolbar.

  2. On the Visualization Toolbar, click Violations to change to the Violation View.

    Violation View

You can zoom in to notice surface triangles displaying violation colors.

Triangle violation

These colors are violation indicators specific to the surface triangles.

It may seem confusing that a triangle can have a maximum slope violation and a minimum drain slope violation at the same time.

Important

Since the minimum drain slope is a directional slope in the direction of the closest drain element. It is a separate constraint and not a lower bound for the maximum slope constraint. Maximum Slope and Minimum Drain Slope are two different constraints.

Place your cursor over one of the many blue triangles and you can see the slope settings, as well as the actual slope values of the violated triangle.

Violation Warning

On very large areas, the triangles seem to not be able to slope towards the drain line at 2%. Interestingly, the triangles on the steep berm that was created, satisfy the minimum drain slope, but are also right below the maximum allowed slope. The reason why the solver sloped the terrain at 2% above the created berm is that the berm is actually part of balancing the cut an fill values. This objective has a relatively high weight, and with only 25,000 iterations, the solver may still be working on improving the constraints.

On the Visualization Toolbar, click Cut-Fill to change to the Cut and Fill balance view.

Cut and Fill View

Reduce Objective Weights

The drainage slope constraint is more important in this instance than the two objective functions so you will adjust the Optimization Settings accordingly.

  1. On the Optimization Toolbar, click Optimization Options Optimization Options.

  2. Reduce the objective weights to 1.

  3. Increase the iterations to 100,000, because the solver will trade off objectives for constraints when given enough time.

    Reduced Weights

  4. Click Optimize Optimize to run the optimization again.

  5. Click Convergence Plots on either the Violation tab or Cut-fill tab of the Optimization Panel.

    The solver gets closer to a feasible solution than before. Even after 100,000 iterations, the proximity value is still decreasing and the solver is trading off the constraints for the objectives.

    Adjusted Cut Fill Plot

    You could increase the iterations to 1,000,000 and let it run for a long time to see if the problem converges. However, turning of balancing is a faster way to check for feasibility.

  6. Set Balance cut and fill to zero. Also leave the terrain smoothing at a very small value.

  7. Set the iterations to 25,000.

    Cut and Fill Off

    When optimized, notice that the proximity value gets closer, but this time clearly flattens out at a two-digit value.

    Cut and Fill Off Plot

  8. Review the surface in Violation View.

    Cut and Fill Off Violations

    On the South side of the grading area, the solver cannot slope the triangles at the required minimum 2% towards the river.

Once again, the configuration is not feasible.

Relax Constraints

Now try relaxing the constraints of the Grading Limit.

  1. On the Object Browser, select the Grading Limit to open the Grading Limit Properties panel.

  2. Select Customize slope constraints.

  3. Specify the Max slope to 33%.

  4. Specify the Min drain slope to 1%.

    Grading Limit Properties

  5. Click Optimize Optimize to run the optimization again.

The proximity value in the feasibility plot flattens out again, but this time at a one digit value.

Relaxed Slope Plot

This is getting closer to a feasible solution, but there are still a few triangles on the very South corner to the river that cannot slope at the required 1% towards the drain line in the river. Checking the Violation View shows this.

Relaxed Slope Violation

Looking back at the unoptimized source drawing in Civil 3D, you could place an elevation spot label at the parcel boundary by the road, another one at the river side. Measuring the distances, you can calculate that the slope between road and river is approximately 1.79%.

Source Drawing

It should be feasible to grade it to 1%. Why can the solver not solve it? The reason is the nearby grading limit.

If you cut the section of the yellow grading limit line between the two surface spot elevations, make it a feature line, and create a quick profile from it, you can see the current slope.

Source Profile

Key Concept

Remember, the points on the boundary of a Grading Limit will be fixed to the existing ground elevation.

Also note that the minimum drain slope constraint requires triangles to incline themselves towards the river at 1%. Looking at the profile again, you can see the yellow marked areas in the following profile view make it impossible to satisfy the minimum drain slope.

Grading Limit Profile

This configuration is not feasible in its current state. You will need to further relax the constraints for this problem.


Tutorials