Lets gooooo

This commit is contained in:
Zastian Pretorius
2022-08-02 12:42:49 +01:00
parent 782f31810c
commit eb9f7c6c67
88 changed files with 3246 additions and 2066 deletions

29
Models/Model.cs Normal file
View File

@@ -0,0 +1,29 @@
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>>>();
}
}