mirror of
https://github.com/mrfluffy-dev/lpr.git
synced 2026-01-17 02:10:33 +00:00
Lets gooooo
This commit is contained in:
29
Models/Model.cs
Normal file
29
Models/Model.cs
Normal 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>>>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user