Ejemplo n.º 1
0
 public SolutionGoal(Solver solver, IntObjective objective, Objective value, string instance) :
     base(solver)
 {
     m_Objective = objective;
     m_Value     = value;
     m_Instance  = instance;
 }
Ejemplo n.º 2
0
 public void Register(IntObjective obj)
 {
     lock (this)
     {
         m_List.Add(obj);
     }
 }
Ejemplo n.º 3
0
        public Solver(Problem problem)
        {
            m_IntObjective = new IntObjective(this);
            m_GoalStack    = new GoalStack(m_IntObjective);

            m_Out = Console.Out;

            m_Time = DateTime.Now;

            m_Problem = problem;

            m_Problem.Propagate();
        }
Ejemplo n.º 4
0
        public Solver( Problem problem )
        {
            m_IntObjective		= new IntObjective( this );
            m_GoalStack			= new GoalStack( m_IntObjective );

            m_Out				= Console.Out;

            m_Time				= DateTime.Now;

            m_Problem			= problem;

            m_Problem.Propagate();
        }