mirror of
https://github.com/mrfluffy-dev/lpr.git
synced 2026-01-17 02:10:33 +00:00
30 lines
1.0 KiB
C#
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>>>();
|
|
}
|
|
}
|