MPModelProto contains all the information for a Linear Programming model.
More...
|
static pb::MessageParser< MPModelProto > | Parser [get] |
|
static pbr::MessageDescriptor | Descriptor [get] |
|
pbc::RepeatedField< global::OperationsResearch.MPVariableProto > | Variable [get] |
| All the variables appearing in the model.
|
|
pbc::RepeatedField< global::OperationsResearch.MPConstraintProto > | Constraint [get] |
| All the constraints appearing in the model.
|
|
pbc::RepeatedField< global::OperationsResearch.MPGeneralConstraintProto > | GeneralConstraint [get] |
| All the general constraints appearing in the model. Note that not all solvers support all types of general constraints.
|
|
bool | Maximize [get, set] |
| True if the problem is a maximization problem. Minimize by default.
|
|
bool | HasMaximize [get] |
| Gets whether the "maximize" field is set.
|
|
double | ObjectiveOffset [get, set] |
| Offset for the objective function. Must be finite.
|
|
bool | HasObjectiveOffset [get] |
| Gets whether the "objective_offset" field is set.
|
|
global::OperationsResearch.MPQuadraticObjective | QuadraticObjective [get, set] |
| Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
|
|
string | Name [get, set] |
| Name of the model.
|
|
bool | HasName [get] |
| Gets whether the "name" field is set.
|
|
global::OperationsResearch.PartialVariableAssignment | SolutionHint [get, set] |
| Solution hint.
|
|
pbc::RepeatedField< global::OperationsResearch.MPModelProto.Types.Annotation > | Annotation [get] |
|
MPModelProto contains all the information for a Linear Programming model.
Definition at line 4250 of file LinearSolver.pb.cs.
◆ MPModelProto() [1/2]
OperationsResearch.MPModelProto.MPModelProto |
( |
| ) |
|
|
inline |
◆ MPModelProto() [2/2]
OperationsResearch.MPModelProto.MPModelProto |
( |
MPModelProto | other | ) |
|
|
inline |
◆ CalculateSize()
int OperationsResearch.MPModelProto.CalculateSize |
( |
| ) |
|
|
inline |
◆ ClearMaximize()
void OperationsResearch.MPModelProto.ClearMaximize |
( |
| ) |
|
|
inline |
◆ ClearName()
void OperationsResearch.MPModelProto.ClearName |
( |
| ) |
|
|
inline |
◆ ClearObjectiveOffset()
void OperationsResearch.MPModelProto.ClearObjectiveOffset |
( |
| ) |
|
|
inline |
◆ Clone()
◆ Equals() [1/2]
bool OperationsResearch.MPModelProto.Equals |
( |
MPModelProto | other | ) |
|
|
inline |
◆ Equals() [2/2]
override bool OperationsResearch.MPModelProto.Equals |
( |
object | other | ) |
|
|
inline |
◆ GetHashCode()
override int OperationsResearch.MPModelProto.GetHashCode |
( |
| ) |
|
|
inline |
◆ MergeFrom() [1/2]
void OperationsResearch.MPModelProto.MergeFrom |
( |
MPModelProto | other | ) |
|
|
inline |
◆ MergeFrom() [2/2]
void OperationsResearch.MPModelProto.MergeFrom |
( |
pb.CodedInputStream | input | ) |
|
|
inline |
◆ ToString()
override string OperationsResearch.MPModelProto.ToString |
( |
| ) |
|
|
inline |
◆ WriteTo()
void OperationsResearch.MPModelProto.WriteTo |
( |
pb.CodedOutputStream | output | ) |
|
|
inline |
◆ AnnotationFieldNumber
const int OperationsResearch.MPModelProto.AnnotationFieldNumber = 9 |
|
static |
◆ ConstraintFieldNumber
const int OperationsResearch.MPModelProto.ConstraintFieldNumber = 4 |
|
static |
◆ GeneralConstraintFieldNumber
const int OperationsResearch.MPModelProto.GeneralConstraintFieldNumber = 7 |
|
static |
◆ MaximizeFieldNumber
const int OperationsResearch.MPModelProto.MaximizeFieldNumber = 1 |
|
static |
◆ NameFieldNumber
const int OperationsResearch.MPModelProto.NameFieldNumber = 5 |
|
static |
◆ ObjectiveOffsetFieldNumber
const int OperationsResearch.MPModelProto.ObjectiveOffsetFieldNumber = 2 |
|
static |
◆ QuadraticObjectiveFieldNumber
const int OperationsResearch.MPModelProto.QuadraticObjectiveFieldNumber = 8 |
|
static |
◆ SolutionHintFieldNumber
const int OperationsResearch.MPModelProto.SolutionHintFieldNumber = 6 |
|
static |
◆ VariableFieldNumber
const int OperationsResearch.MPModelProto.VariableFieldNumber = 3 |
|
static |
◆ Annotation
pbc.RepeatedField<global.OperationsResearch.MPModelProto.Types.Annotation> OperationsResearch.MPModelProto.Annotation |
|
get |
◆ Constraint
pbc.RepeatedField<global.OperationsResearch.MPConstraintProto> OperationsResearch.MPModelProto.Constraint |
|
get |
◆ Descriptor
pbr.MessageDescriptor OperationsResearch.MPModelProto.Descriptor |
|
staticget |
◆ GeneralConstraint
pbc.RepeatedField<global.OperationsResearch.MPGeneralConstraintProto> OperationsResearch.MPModelProto.GeneralConstraint |
|
get |
All the general constraints appearing in the model. Note that not all solvers support all types of general constraints.
Definition at line 4343 of file LinearSolver.pb.cs.
◆ HasMaximize
bool OperationsResearch.MPModelProto.HasMaximize |
|
get |
◆ HasName
bool OperationsResearch.MPModelProto.HasName |
|
get |
◆ HasObjectiveOffset
bool OperationsResearch.MPModelProto.HasObjectiveOffset |
|
get |
◆ Maximize
bool OperationsResearch.MPModelProto.Maximize |
|
getset |
True if the problem is a maximization problem. Minimize by default.
Definition at line 4357 of file LinearSolver.pb.cs.
◆ Name
string OperationsResearch.MPModelProto.Name |
|
getset |
◆ ObjectiveOffset
double OperationsResearch.MPModelProto.ObjectiveOffset |
|
getset |
◆ Parser
pb.MessageParser<MPModelProto> OperationsResearch.MPModelProto.Parser |
|
staticget |
◆ QuadraticObjective
global.OperationsResearch.MPQuadraticObjective OperationsResearch.MPModelProto.QuadraticObjective |
|
getset |
Optionally, a quadratic objective. As of 2019/06, only SCIP and Gurobi support quadratic objectives.
Definition at line 4416 of file LinearSolver.pb.cs.
◆ SolutionHint
global.OperationsResearch.PartialVariableAssignment OperationsResearch.MPModelProto.SolutionHint |
|
getset |
Solution hint.
If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. A solver that supports this feature will try to use this information to create its initial feasible solution.
- Note
- it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions.
Definition at line 4472 of file LinearSolver.pb.cs.
◆ Variable
pbc.RepeatedField<global.OperationsResearch.MPVariableProto> OperationsResearch.MPModelProto.Variable |
|
get |
The documentation for this class was generated from the following file: