/// ------------------------------------------------------
/// SwarmOps - Numeric and heuristic optimization for C#
/// Copyright (C) 2003-2011 Magnus Erik Hvass Pedersen.
/// Please see the file license.txt for license details.
/// SwarmOps on the internet: http://www.Hvass-Labs.org/
/// ------------------------------------------------------
namespace SwarmOps
{
///
/// Problem and weight pair for use in meta-optimization.
///
public class WeightedProblem
{
#region Constructors.
///
/// Construct the object, weight will be set to 1.0
///
/// Problem object.
public WeightedProblem(Problem problem)
: this(1.0, problem)
{
}
///
/// Construct the object.
///
/// Weight.
/// Problem object.
public WeightedProblem(double weight, Problem problem)
{
Weight = weight;
Problem = problem;
}
#endregion
#region Public fields.
///
/// Problem object.
///
public Problem Problem
{
get;
protected set;
}
///
/// Weight.
///
public double Weight
{
get;
protected set;
}
#endregion
}
}