Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
GH-820: Fixing XML comments from last commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
CatchemAL committed Oct 11, 2017
1 parent 77edbc3 commit b09adaf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,16 @@ public static class ConstraintExtensions
{

/// <summary>
/// Gets how much the constraint is being violated.
/// Gets how much the constraint is being violated.
/// </summary>
///
/// <param name="constraint">The constraint.</param>
/// <param name="input">The function point.</param>
///
/// <returns>
/// How much the constraint is being violated at the given point. Positive
/// value means the constraint is not being violated with the returned slack,
/// while a negative value means the constraint is being violated by the returned
/// amount.
/// How much the constraint is being violated at the given point. Positive
/// value means the constraint is not being violated with the returned slack,
/// while a negative value means the constraint is being violated by the returned
/// amount.
/// </returns>
///
public static double GetViolation(this IConstraint constraint, double[] input)
{
double fx = constraint.Function(input);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@

namespace Accord.Math.Optimization
{
using System;

using System;

/// <summary>
/// Defines an interface for an optimization constraint.
/// </summary>
public interface IConstraint
{
/// <summary>
Expand Down

0 comments on commit b09adaf

Please sign in to comment.