Files
lpr/Models/Model.cs
Zastian Pretorius eb9f7c6c67 Lets gooooo
2022-08-02 12:42:49 +01:00

30 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common
{
public class Model
{
public Model() { }
// A copy constructor so that we can clone Model objects without reference
public Model(Model model)
{
this.ProblemType = model.ProblemType;
this.ObjectiveFunction = model.ObjectiveFunction;
this.Constraints = model.Constraints;
this.SignRestrictions = model.SignRestrictions;
this.Result = model.Result;
}
public ProblemType ProblemType { get; set; }
public ObjectiveFunction ObjectiveFunction { get; set; } = new ObjectiveFunction();
public List<Constraint> Constraints { get; set; } = new List<Constraint>();
public List<SignRestriction> SignRestrictions { get; set; } = new List<SignRestriction>();
public List<List<List<double>>> Result { get; set; } = new List<List<List<double>>>();
}
}