Model.Model()

Constructor of model.

Synopsis

Model(Envr env, string name)

Arguments

env: associated environment object.

name: string of model name.

Model.AddCone()

Add a cone constraint to model.

Synopsis

Cone AddCone(

int dim,

int type,

char[] pvtype,

string prefix)

Arguments

dim: dimension of the cone constraint.

type: type of the cone constraint.

pvtype: type of variables in the cone.

prefix: optional, name prefix of variables in the cone, default value is “ConeV”.

Return

new cone constraint object.

Model.AddCone()

Add a cone constraint to model.

Synopsis

Cone AddCone(ConeBuilder builder)

Arguments

builder: builder for new cone constraint.

Return

new cone constraint object.

Model.AddCone()

Add a cone constraint to model.

Synopsis

Cone AddCone(Var[] vars, int type)

Arguments

vars: variables that participate in the cone constraint.

type: type of the cone constraint.

Return

new cone constraint object.

Model.AddCone()

Add a cone constraint to model.

Synopsis

Cone AddCone(VarArray vars, int type)

Arguments

vars: variables that participate in the cone constraint.

type: type of a cone constraint.

Return

new cone constraint object.

Model.AddConstr()

Add a linear constraint to model.

Synopsis

Constraint AddConstr(

Expr expr,

char sense,

double rhs,

string name)

Arguments

expr: expression for the new contraint.

sense: sense for new linear constraint, other than range sense.

rhs: right hand side value for the new constraint.

name: optional, name of new constraint.

Return

new constraint object.

Model.AddConstr()

Add a linear constraint to model.

Synopsis

Constraint AddConstr(

Expr expr,

char sense,

Var var,

string name)

Arguments

expr: expression for the new contraint.

sense: sense for new linear constraint, other than range sense.

var: variable as right hand side for the new constraint.

name: optional, name of new constraint.

Return

new constraint object.

Model.AddConstr()

Add a linear constraint to model.

Synopsis

Constraint AddConstr(

Expr lhs,

char sense,

Expr rhs,

string name)

Arguments

lhs: left hand side expression for the new constraint.

sense: sense for new linear constraint, other than range sense.

rhs: right hand side expression for the new constraint.

name: optional, name of new constraint.

Return

new constraint object.

Model.AddConstr()

Add a linear constraint to model.

Synopsis

Constraint AddConstr(

Expr expr,

double lb,

double ub,

string name)

Arguments

expr: expression for the new constraint.

lb: lower bound for the new constraint.

ub: upper bound for the new constraint

name: optional, name of new constraint.

Return

new constraint object.

Model.AddConstr()

Add a linear constraint to a model.

Synopsis

Constraint AddConstr(ConstrBuilder builder, string name)

Arguments

builder: builder for the new constraint.

name: optional, name of new constraint.

Return

new constraint object.

Model.AddConstrs()

Add linear constraints to model.

Synopsis

ConstrArray AddConstrs(

int count,

char[] senses,

double[] rhss,

string prefix)

Arguments

count: number of constraints added to model.

senses: sense array for new linear constraints, other than range sense.

rhss: right hand side values for new variables.

prefix: optional, name prefix for new constraints, default value is ‘R’.

Return

array of new constraint objects.

Model.AddConstrs()

Add linear constraints to a model.

Synopsis

ConstrArray AddConstrs(

int count,

double[] lbs,

double[] ubs,

string prefix)

Arguments

count: number of constraints added to the model.

lbs: lower bounds of new constraints.

ubs: upper bounds of new constraints.

prefix: optional, name prefix for new constraints, default value is ‘R’.

Return

array of new constraint objects.

Model.AddConstrs()

Add linear constraints to a model.

Synopsis

ConstrArray AddConstrs(ConstrBuilderArray builders, string prefix)

Arguments

builders: builders for new constraints.

prefix: optional, name prefix for new constraints, default value is ‘R’.

Return

array of new constraint objects.

Model.AddDenseMat()

Add a dense symmetric matrix to a model.

Synopsis

SymMatrix AddDenseMat(int dim, double[] vals)

Arguments

dim: dimension of the dense symmetric matrix.

vals: array of non-zero elements, filled in column-wise up to len or max length of symmetric matrix.

Return

new symmetric matrix object.

Model.AddDenseMat()

Add a dense symmetric matrix to a model.

Synopsis

SymMatrix AddDenseMat(int dim, double val)

Arguments

dim: dimension of dense symmetric matrix.

val: value to fill dense symmetric matrix.

Return

new symmetric matrix object.

Model.AddDiagMat()

Add a diagonal matrix to a model.

Synopsis

SymMatrix AddDiagMat(int dim, double val)

Arguments

dim: dimension of diagonal matrix.

val: value to fill diagonal elements.

Return

new diagonal matrix object.

Model.AddDiagMat()

Add a diagonal matrix to a model.

Synopsis

SymMatrix AddDiagMat(int dim, double[] vals)

Arguments

dim: dimension of diagonal matrix.

vals: array of values of diagonal elements.

Return

new diagonal matrix object.

Model.AddDiagMat()

Add a diagonal matrix to a model.

Synopsis

SymMatrix AddDiagMat(

int dim,

double val,

int offset)

Arguments

dim: dimension of diagonal matrix.

val: value to fill diagonal elements.

offset: shift distance against diagonal line.

Return

new diagonal matrix object.

Model.AddDiagMat()

Add a diagonal matrix to a model.

Synopsis

SymMatrix AddDiagMat(

int dim,

double[] vals,

int offset)

Arguments

dim: dimension of diagonal matrix.

vals: array of values of diagonal elements.

offset: shift distance against diagonal line.

Return

new diagonal matrix object.

Model.AddEyeMat()

Add an identity matrix to a model.

Synopsis

SymMatrix AddEyeMat(int dim)

Arguments

dim: dimension of identity matrix.

Return

new identity matrix object.

Model.AddGenConstrIndicator()

Add a general constraint of type indicator to model.

Synopsis

GenConstr AddGenConstrIndicator(GenConstrBuilder builder)

Arguments

builder: builder for the general constraint.

Return

new general constraint object of type indicator.

Model.AddGenConstrIndicator()

Add a general constraint of type indicator to model.

Synopsis

GenConstr AddGenConstrIndicator(

Var binvar,

int binval,

ConstrBuilder builder)

Arguments

binvar: binary indicator variable.

binval: value for binary indicator variable that force a linear constraint to be satisfied(0 or 1).

builder: builder for linear constraint.

Return

new general constraint object of type indicator.

Model.AddGenConstrIndicator()

Add a general constraint of type indicator to model.

Synopsis

GenConstr AddGenConstrIndicator(

Var binvar,

int binval,

Expr expr,

char sense,

double rhs)

Arguments

binvar: binary indicator variable.

binval: value for binary indicator variable that force a linear constraint to be satisfied(0 or 1).

expr: expression for new linear contraint.

sense: sense for new linear constraint.

rhs: right hand side value for new linear constraint.

Return

new general constraint object of type indicator.

Model.AddLazyConstr()

Add a lazy constraint to model.

Synopsis

void AddLazyConstr(

Expr lhs,

char sense,

double rhs,

string name)

Arguments

lhs: expression for lazy contraint.

sense: sense for lazy constraint.

rhs: right hand side value for lazy constraint.

name: optional, name of lazy constraint.

Model.AddLazyConstr()

Add a lazy constraint to model.

Synopsis

void AddLazyConstr(

Expr lhs,

char sense,

Expr rhs,

string name)

Arguments

lhs: left hand side expression for lazy contraint.

sense: sense for lazy constraint.

rhs: right hand side expression for lazy contraint.

name: optional, name of lazy constraint.

Model.AddLazyConstr()

Add a lazy constraint to model.

Synopsis

void AddLazyConstr(ConstrBuilder builder, string name)

Arguments

builder: builder for lazy contraint.

name: optional, name of lazy constraint.

Model.AddLazyConstrs()

Add lazy constraints to model.

Synopsis

void AddLazyConstrs(ConstrBuilderArray builders, string prefix)

Arguments

builders: array of builders for lazy contraints.

prefix: name prefix of new lazy constraints.

Model.AddLmiConstr()

Add an LMI constraint to model.

Synopsis

LmiConstraint AddLmiConstr(LmiExpr expr, string name)

Arguments

expr: LMI expression for new LMI contraint.

name: optional, name of new LMI constraint.

Return

new LMI constraint object.

Model.AddOnesMat()

Add a dense symmetric matrix of value one to a model.

Synopsis

SymMatrix AddOnesMat(int dim)

Arguments

dim: dimension of dense symmetric matrix.

Return

new symmetric matrix object.

Model.AddPsdConstr()

Add a PSD constraint to model.

Synopsis

PsdConstraint AddPsdConstr(

PsdExpr expr,

char sense,

double rhs,

string name)

Arguments

expr: PSD expression for new PSD contraint.

sense: sense for new PSD constraint.

rhs: double value at right side of the new PSD constraint.

name: optional, name of new PSD constraint.

Return

new PSD constraint object.

Model.AddPsdConstr()

Add a PSD constraint to model.

Synopsis

PsdConstraint AddPsdConstr(

PsdExpr expr,

double lb,

double ub,

string name)

Arguments

expr: expression for new PSD constraint.

lb: lower bound for ew PSD constraint.

ub: upper bound for new PSD constraint

name: optional, name of new PSD constraint.

Return

new PSD constraint object.

Model.AddPsdConstr()

Add a PSD constraint to model.

Synopsis

PsdConstraint AddPsdConstr(

PsdExpr lhs,

char sense,

PsdExpr rhs,

string name)

Arguments

lhs: PSD expression at left side of new PSD constraint.

sense: sense for new PSD constraint.

rhs: PSD expression at right side of new PSD constraint.

name: optional, name of new PSD constraint.

Return

new PSD constraint object.

Model.AddPsdConstr()

Add a PSD constraint to a model.

Synopsis

PsdConstraint AddPsdConstr(PsdConstrBuilder builder, string name)

Arguments

builder: builder for new PSD constraint.

name: optional, name of new PSD constraint.

Return

new PSD constraint object.

Model.AddPsdVar()

Add a new PSD variable to model.

Synopsis

PsdVar AddPsdVar(int dim, string name)

Arguments

dim: dimension of new PSD variable.

name: name of new PSD variable.

Return

PSD variable object.

Model.AddPsdVars()

Add new PSD variables to model.

Synopsis

PsdVarArray AddPsdVars(

int count,

int[] dims,

string prefix)

Arguments

count: number of new PSD variables.

dims: array of dimensions of new PSD variables.

prefix: name prefix of new PSD variables, default prefix is PSD_V.

Return

array of PSD variable objects.

Model.AddQConstr()

Add a quadratic constraint to model.

Synopsis

QConstraint AddQConstr(

QuadExpr expr,

char sense,

double rhs,

string name)

Arguments

expr: quadratic expression for the new contraint.

sense: sense for new quadratic constraint.

rhs: double value at right side of the new quadratic constraint.

name: optional, name of new quadratic constraint.

Return

new quadratic constraint object.

Model.AddQConstr()

Add a quadratic constraint to model.

Synopsis

QConstraint AddQConstr(

QuadExpr lhs,

char sense,

QuadExpr rhs,

string name)

Arguments

lhs: quadratic expression at left side of the new quadratic constraint.

sense: sense for new quadratic constraint.

rhs: quadratic expression at right side of the new quadratic constraint.

name: optional, name of new quadratic constraint.

Return

new quadratic constraint object.

Model.AddQConstr()

Add a quadratic constraint to a model.

Synopsis

QConstraint AddQConstr(QConstrBuilder builder, string name)

Arguments

builder: builder for the new quadratic constraint.

name: optional, name of new quadratic constraint.

Return

new quadratic constraint object.

Model.AddSos()

Add a SOS constraint to model.

Synopsis

Sos AddSos(

Var[] vars,

double[] weights,

int type)

Arguments

vars: variables that participate in the SOS constraint.

weights: weights for variables in the SOS constraint.

type: type of SOS constraint.

Return

new SOS constraint object.

Model.AddSos()

Add a SOS constraint to model.

Synopsis

Sos AddSos(

VarArray vars,

double[] weights,

int type)

Arguments

vars: variables that participate in the SOS constraint.

weights: weights for variables in the SOS constraint.

type: type of SOS constraint.

Return

new SOS constraint object.

Model.AddSos()

Add a SOS constraint to model.

Synopsis

Sos AddSos(SosBuilder builder)

Arguments

builder: builder for new SOS constraint.

Return

new SOS constraint object.

Model.AddSparseMat()

Add a sparse symmetric matrix to a model.

Synopsis

SymMatrix AddSparseMat(

int dim,

int nElems,

int[] rows,

int[] cols,

double[] vals)

Arguments

dim: dimension of the sparse symmetric matrix.

nElems: number of non-zero elements in the sparse symmetric matrix.

rows: array of row indexes of non-zero elements.

cols: array of col indexes of non-zero elements.

vals: array of values of non-zero elements.

Return

new symmetric matrix object.

Model.AddSymMat()

Given a symmetric matrix expression, add results matrix to model.

Synopsis

SymMatrix AddSymMat(SymMatExpr expr)

Arguments

expr: symmetric matrix expression object.

Return

results symmetric matrix object.

Model.AddUserCut()

Add a user cut to model.

Synopsis

void AddUserCut(

Expr lhs,

char sense,

double rhs,

string name)

Arguments

lhs: expression for user cut.

sense: sense for user cut.

rhs: right hand side value for user cut.

name: optional, name of user cut.

Model.AddUserCut()

Add a user cut to model.

Synopsis

void AddUserCut(

Expr lhs,

char sense,

Expr rhs,

string name)

Arguments

lhs: left hand side expression for user cut.

sense: sense for user cut.

rhs: right hand side expression for user cut.

name: optional, name of user cut.

Model.AddUserCut()

Add a user cut to model.

Synopsis

void AddUserCut(ConstrBuilder builder, string name)

Arguments

builder: builder for user cut.

name: optional, name of user cut.

Model.AddUserCuts()

Add user cuts to model.

Synopsis

void AddUserCuts(ConstrBuilderArray builders, string prefix)

Arguments

builders: array of builders for user cuts.

prefix: name prefix of new user cuts.

Model.AddVar()

Add a variable and the associated non-zero coefficients as column.

Synopsis

Var AddVar(

double lb,

double ub,

double obj,

char vtype,

string name)

Arguments

lb: lower bound for new variable.

ub: upper bound for new variable.

obj: objective coefficient for new variable.

vtype: variable type for new variable.

name: optional, name for new variable.

Return

new variable object.

Model.AddVar()

Add a variable and the associated non-zero coefficients as column.

Synopsis

Var AddVar(

double lb,

double ub,

double obj,

char vtype,

Column col,

string name)

Arguments

lb: lower bound for new variable.

ub: upper bound for new variable.

obj: objective coefficient for new variable.

vtype: variable type for new variable.

col: column object for specifying a set of constraints to which the variable belongs.

name: optional, name for new variable.

Return

new variable object.

Model.AddVars()

Add new variables to model.

Synopsis

VarArray AddVars(

int count,

char vtype,

string prefix)

Arguments

count: the number of variables to add.

vtype: variable types for new variables.

prefix: optional, prefix part for names of new variables, default value is ‘C’.

Return

array of new variable objects.

Model.AddVars()

Add new variables to model.

Synopsis

VarArray AddVars(

int count,

double lb,

double ub,

double obj,

char vtype,

string prefix)

Arguments

count: the number of variables to add.

lb: lower bound for new variables.

ub: upper bound for new variables.

obj: objective coefficient for new variables.

vtype: variable type for new variables.

prefix: optional, prefix part for names of new variables, default value is ‘C’.

Return

array of new variable objects.

Model.AddVars()

Add new variables to model.

Synopsis

VarArray AddVars(

int count,

double[] lbs,

double[] ubs,

double[] objs,

char[] types,

string prefix)

Arguments

count: the number of variables to add.

lbs: lower bounds for new variables. if NULL, lower bounds are 0.0.

ubs: upper bounds for new variables. if NULL, upper bounds are infinity or 1 for binary variables.

objs: objective coefficients for new variables. if NULL, objective coefficients are 0.0.

types: variable types for new variables. if NULL, variable types are continuous.

prefix: optional, prefix part for names of new variables, default value is ‘C’.

Return

array of new variable objects.

Model.AddVars()

Add new variables to model.

Synopsis

VarArray AddVars(

double[] lbs,

double[] ubs,

double[] objs,

char[] types,

Column[] cols,

string prefix)

Arguments

lbs: lower bounds for new variables. if NULL, lower bounds are 0.0.

ubs: upper bounds for new variables. if NULL, upper bounds are infinity or 1 for binary variables.

objs: objective coefficients for new variables. if NULL, objective coefficients are 0.0.

types: variable types for new variables. if NULL, variable types are continuous.

cols: column objects for specifying a set of constraints to which each new variable belongs.

prefix: optional, prefix part for names of new variables, default value is ‘C’.

Return

array of new variable objects.

Model.AddVars()

Add new variables to model.

Synopsis

VarArray AddVars(

double[] lbs,

double[] ubs,

double[] objs,

char[] types,

ColumnArray cols,

string prefix)

Arguments

lbs: lower bounds for new variables. if NULL, lower bounds are 0.0.

ubs: upper bounds for new variables. if NULL, upper bounds are infinity or 1 for binary variables.

objs: objective coefficients for new variables. if NULL, objective coefficients are 0.0.

types: variable types for new variables. if NULL, variable types are continuous.

cols: columnarray for specifying a set of constraints to which each new variable belongs.

prefix: optional, prefix part for names of new variables, default value is ‘C’.

Return

array of new variable objects.

Model.Clear()

Clear all settings including problem itself.

Synopsis

void Clear()

Model.Clone()

Deep copy COPT model.

Synopsis

Model Clone()

Return

cloned model object.

Model.ComputeIIS()

Compute IIS for model

Synopsis

void ComputeIIS()

Model.DelPsdObj()

delete PSD part of objective in model.

Synopsis

void DelPsdObj()

Model.DelQuadObj()

delete quadratic part of objective in model.

Synopsis

void DelQuadObj()

Model.FeasRelax()

Compute feasibility relaxation for infeasible model.

Synopsis

void FeasRelax(

VarArray vars,

double[] colLowPen,

double[] colUppPen,

ConstrArray cons,

double[] rowBndPen,

double[] rowUppPen)

Arguments

vars: an array of variables.

colLowPen: penalties for lower bounds of variables.

colUppPen: penalties for upper bounds of variables.

cons: an array of constraints.

rowBndPen: penalties for right hand sides of constraints.

rowUppPen: penalties for upper bounds of range constraints.

Model.FeasRelax()

Compute feasibility relaxation for infeasible model.

Synopsis

void FeasRelax(int ifRelaxVars, int ifRelaxCons)

Arguments

ifRelaxVars: whether to relax variables.

ifRelaxCons: whether to relax constraints.

Model.Get()

Query values of information associated with variables.

Synopsis

double[] Get(string name, Var[] vars)

Arguments

name: name of information.

vars: a list of interested variables.

Return

values of information.

Model.Get()

Query values of information associated with variables.

Synopsis

double[] Get(string name, VarArray vars)

Arguments

name: name of information.

vars: array of interested variables.

Return

values of information.

Model.Get()

Query values of information associated with constraints.

Synopsis

double[] Get(string name, Constraint[] constrs)

Arguments

name: name of information.

constrs: a list of interested constraints.

Return

values of information.

Model.Get()

Query values of information associated with constraints.

Synopsis

double[] Get(string name, ConstrArray constrs)

Arguments

name: name of information.

constrs: array of interested constraints.

Return

values of information.

Model.Get()

Query values of information associated with quadratic constraints.

Synopsis

double[] Get(string name, QConstraint[] constrs)

Arguments

name: name of information.

constrs: a list of interested quadratic constraints.

Return

values of information.

Model.Get()

Query values of information associated with quadratic constraints.

Synopsis

double[] Get(string name, QConstrArray constrs)

Arguments

name: name of information.

constrs: array of interested quadratic constraints.

Return

values of information.

Model.Get()

Query values of information associated with PSD constraints.

Synopsis

double[] Get(string name, PsdConstraint[] constrs)

Arguments

name: name of information.

constrs: a list of desired PSD constraints.

Return

output array of information values.

Model.Get()

Query values of information associated with PSD constraints.

Synopsis

double[] Get(string name, PsdConstrArray constrs)

Arguments

name: name of information.

constrs: a list of desired PSD constraints.

Return

output array of information values.

Model.GetCoeff()

Get the coefficient of variable in linear constraint.

Synopsis

double GetCoeff(Constraint constr, Var var)

Arguments

constr: The requested constraint.

var: The requested variable.

Return

The requested coefficient.

Model.GetCol()

Get a column object that have a list of constraints in which the variable participates.

Synopsis

Column GetCol(Var var)

Arguments

var: a variable object.

Return

a column object associated with a variable.

Model.GetColBasis()

Get status of column basis.

Synopsis

int[] GetColBasis()

Return

basis status.

Model.GetCone()

Get a cone constraint of given index in model.

Synopsis

Cone GetCone(int idx)

Arguments

idx: index of the desired cone constraint.

Return

the desired cone constraint object.

Model.GetConeBuilders()

Get builders of all cone constraints in model.

Synopsis

ConeBuilderArray GetConeBuilders()

Return

array object of cone constraint builders.

Model.GetConeBuilders()

Get builders of given cone constraints in model.

Synopsis

ConeBuilderArray GetConeBuilders(Cone[] cones)

Arguments

cones: array of cone constraints.

Return

array object of desired cone constraint builders.

Model.GetConeBuilders()

Get builders of given cone constraints in model.

Synopsis

ConeBuilderArray GetConeBuilders(ConeArray cones)

Arguments

cones: array of cone constraints.

Return

array object of desired cone constraint builders.

Model.GetCones()

Get all cone constraints in model.

Synopsis

ConeArray GetCones()

Return

array object of cone constraints.

Model.GetConstr()

Get a constraint of given index in model.

Synopsis

Constraint GetConstr(int idx)

Arguments

idx: index of the desired constraint.

Return

the desired constraint object.

Model.GetConstrBuilder()

Get builder of a constraint in model, including variables and associated coefficients, sense and RHS.

Synopsis

ConstrBuilder GetConstrBuilder(Constraint constr)

Arguments

constr: a constraint object.

Return

constraint builder object.

Model.GetConstrBuilders()

Get builders of all constraints in model.

Synopsis

ConstrBuilderArray GetConstrBuilders()

Return

array object of constraint builders.

Model.GetConstrByName()

Get a constraint of given name in model.

Synopsis

Constraint GetConstrByName(string name)

Arguments

name: name of the desired constraint.

Return

the desired constraint object.

Model.GetConstrLowerIIS()

Get IIS status of lower bounds of constraints.

Synopsis

int[] GetConstrLowerIIS(ConstrArray constrs)

Arguments

constrs: Array of constraints.

Return

IIS status of lower bounds of constraints.

Model.GetConstrLowerIIS()

Get IIS status of lower bounds of constraints.

Synopsis

int[] GetConstrLowerIIS(Constraint[] constrs)

Arguments

constrs: Array of constraints.

Return

IIS status of lower bounds of constraints.

Model.GetConstrs()

Get all constraints in model.

Synopsis

ConstrArray GetConstrs()

Return

array object of constraints.

Model.GetConstrUpperIIS()

Get IIS status of upper bounds of constraints.

Synopsis

int[] GetConstrUpperIIS(ConstrArray constrs)

Arguments

constrs: Array of constraints.

Return

IIS status of upper bounds of constraints.

Model.GetConstrUpperIIS()

Get IIS status of upper bounds of constraints.

Synopsis

int[] GetConstrUpperIIS(Constraint[] constrs)

Arguments

constrs: Array of constraints.

Return

IIS status of upper bounds of constraints.

Model.GetDblAttr()

Get value of a COPT double attribute.

Synopsis

double GetDblAttr(string attr)

Arguments

attr: name of double attribute.

Return

value of double attribute.

Model.GetDblParam()

Get value of a COPT double parameter.

Synopsis

double GetDblParam(string param)

Arguments

param: name of integer parameter.

Return

value of double parameter.

Model.GetGenConstrIndicator()

Get builder of given general constraint of type indicator.

Synopsis

GenConstrBuilder GetGenConstrIndicator(GenConstr indicator)

Arguments

indicator: a general constraint of type indicator.

Return

builder object of general constraint of type indicator.

Model.GetIndicatorIIS()

Get IIS status of indicator constraints.

Synopsis

int[] GetIndicatorIIS(GenConstrArray genconstrs)

Arguments

genconstrs: Array of indicator constraints.

Return

IIS status of indicator constraints.

Model.GetIndicatorIIS()

Get IIS status of indicator constraints.

Synopsis

int[] GetIndicatorIIS(GenConstr[] genconstrs)

Arguments

genconstrs: Array of indicator constraints.

Return

IIS status of indicator constraints.

Model.GetIntAttr()

Get value of a COPT integer attribute.

Synopsis

int GetIntAttr(string attr)

Arguments

attr: name of integer attribute.

Return

value of integer attribute.

Model.GetIntParam()

Get value of a COPT integer parameter.

Synopsis

int GetIntParam(string param)

Arguments

param: name of integer parameter.

Return

value of integer parameter.

Model.GetLmiCoeff()

Get the symmetric matrix of variable in LMI constraint.

Synopsis

SymMatrix GetLmiCoeff(LmiConstraint constr, Var var)

Arguments

constr: The desired LMI constraint.

var: The desired variable.

Return

The associated coefficient matrix.

Model.GetLmiConstr()

Get LMI constraint of given index in model.

Synopsis

LmiConstraint GetLmiConstr(int idx)

Arguments

idx: index of desired LMI constraint.

Return

LMI constraint object.

Model.GetLmiConstrByName()

Get LMI constraint of given name in model.

Synopsis

LmiConstraint GetLmiConstrByName(string name)

Arguments

name: name of desired LMI constraint.

Return

LMI constraint object.

Model.GetLmiConstrs()

Get all LMI constraints in model.

Synopsis

LmiConstrArray GetLmiConstrs()

Return

array object of LMI constraints.

Model.GetLmiRhs()

Get the symmetric matrix of constant of LMI constraint.

Synopsis

SymMatrix GetLmiRhs(LmiConstraint constr)

Arguments

constr: The desired LMI constraint.

Return

matrix of constant term.

Model.GetLmiRow()

Get variables and associated symmetric matrices that participate in a LMI constraint.

Synopsis

LmiExpr GetLmiRow(LmiConstraint constr)

Arguments

constr: given LMI constraint object.

Return

LMI expression object of LMI constraint.

Model.GetLpSolution()

Get LP solution.

Synopsis

void GetLpSolution(

out double[] value,

out double[] slack,

out double[] rowDual,

out double[] redCost)

Arguments

value: out, solution values.

slack: out, slack values.

rowDual: out, dual values.

redCost: out, reduced costs.

Model.GetObjective()

Get linear expression of objective for model.

Synopsis

Expr GetObjective()

Return

an linear expression object.

Model.GetParamInfo()

Get current, default, minimum, maximum of COPT integer parameter.

Synopsis

void GetParamInfo(

string name,

out int cur,

out int def,

out int min,

out int max)

Arguments

name: name of integer parameter.

cur: out, current value of integer parameter.

def: out, default value of integer parameter.

min: out, minimum value of integer parameter.

max: out, maximum value of integer parameter.

Model.GetParamInfo()

Get current, default, minimum, maximum of COPT double parameter.

Synopsis

void GetParamInfo(

string name,

out double cur,

out double def,

out double min,

out double max)

Arguments

name: name of integer parameter.

cur: out, current value of double parameter.

def: out, default value of double parameter.

min: out, minimum value of double parameter.

max: out, maximum value of double parameter.

Model.GetPoolObjVal()

Get the idx-th objective value in solution pool.

Synopsis

double GetPoolObjVal(int idx)

Arguments

idx: Index of solution.

Return

The requested objective value.

Model.GetPoolSolution()

Get the idx-th solution in solution pool.

Synopsis

double[] GetPoolSolution(int idx, VarArray vars)

Arguments

idx: Index of solution.

vars: The requested variables.

Return

The requested solution.

Model.GetPoolSolution()

Get the idx-th solution in solution pool.

Synopsis

double[] GetPoolSolution(int idx, Var[] vars)

Arguments

idx: Index of solution.

vars: The requested variables.

Return

The requested solution.

Model.GetPsdCoeff()

Get the symmetric matrix of PSD variable in a PSD constraint.

Synopsis

SymMatrix GetPsdCoeff(PsdConstraint constr, PsdVar var)

Arguments

constr: The desired PSD constraint.

var: The desired PSD variable.

Return

The associated coefficient matrix.

Model.GetPsdConstr()

Get a PSD constraint of given index in model.

Synopsis

PsdConstraint GetPsdConstr(int idx)

Arguments

idx: index of desired PSD constraint.

Return

PSD constraint object.

Model.GetPsdConstrBuilder()

Get builder of a PSD constraint in model, including PSD variables, sense and associated symmtric matrices.

Synopsis

PsdConstrBuilder GetPsdConstrBuilder(PsdConstraint constr)

Arguments

constr: PSD constraint object.

Return

PSD constraint builder object.

Model.GetPsdConstrBuilders()

Get builders of all PSD constraints in model.

Synopsis

PsdConstrBuilderArray GetPsdConstrBuilders()

Return

array object of PSD constraint builders.

Model.GetPsdConstrByName()

Get a PSD constraint of given name in model.

Synopsis

PsdConstraint GetPsdConstrByName(string name)

Arguments

name: name of desired PSD constraint.

Return

PSD constraint object.

Model.GetPsdConstrs()

Get all PSD constraints in model.

Synopsis

PsdConstrArray GetPsdConstrs()

Return

array object of PSD constraints.

Model.GetPsdObjective()

Get PSD objective of model.

Synopsis

PsdExpr GetPsdObjective()

Return

a PSD expression object.

Model.GetPsdRow()

Get PSD variables and associated symmetric matrices that participate in a PSD constraint.

Synopsis

PsdExpr GetPsdRow(PsdConstraint constr)

Arguments

constr: PSD constraint object.

Return

PSD expression object of the PSD constraint.

Model.GetPsdSolution()

Get PSD solution.

Synopsis

void GetPsdSolution(

out double[] psdValue,

out double[] psdSlack,

out double[] psdRowDual,

out double[] psdRedCost)

Arguments

psdValue: out, solution of PSD variables.

psdSlack: out, slack of PSD constraints.

psdRowDual: out, dual of PSD constraints.

psdRedCost: out, reduced costs of PSD variables.

Model.GetPsdVar()

Get a PSD variable of given index in model.

Synopsis

PsdVar GetPsdVar(int idx)

Arguments

idx: index of the desired PSD variable.

Return

the desired PSD variable object.

Model.GetPsdVarByName()

Get a PSD variable of given name in model.

Synopsis

PsdVar GetPsdVarByName(string name)

Arguments

name: name of the desired PSD variable.

Return

the desired PSD variable object.

Model.GetPsdVars()

Get all PSD variables in model.

Synopsis

PsdVarArray GetPsdVars()

Return

array object of PSD variables.

Model.GetQConstr()

Get a quadratic constraint of given index in model.

Synopsis

QConstraint GetQConstr(int idx)

Arguments

idx: index of the desired quadratic constraint.

Return

the desired quadratic constraint object.

Model.GetQConstrBuilder()

Get builder of a constraint in model, including variables and associated coefficients, sense and RHS.

Synopsis

QConstrBuilder GetQConstrBuilder(QConstraint constr)

Arguments

constr: a constraint object.

Return

constraint builder object.

Model.GetQConstrBuilders()

Get builders of all constraints in model.

Synopsis

QConstrBuilderArray GetQConstrBuilders()

Return

array object of constraint builders.

Model.GetQConstrByName()

Get a quadratic constraint of given name in model.

Synopsis

QConstraint GetQConstrByName(string name)

Arguments

name: name of the desired constraint.

Return

the desired quadratic constraint object.

Model.GetQConstrs()

Get all quadratic constraints in model.

Synopsis

QConstrArray GetQConstrs()

Return

array object of quadratic constraints.

Model.GetQuadObjective()

Get quadratic objective of model.

Synopsis

QuadExpr GetQuadObjective()

Return

a quadratic expression object.

Model.GetQuadRow()

Get two variables and associated coefficients that participate in a quadratic constraint.

Synopsis

QuadExpr GetQuadRow(QConstraint constr)

Arguments

constr: a quadratic constraint object.

Return

quadratic expression object of the constraint.

Model.GetRow()

Get variables that participate in a constraint, and the associated coefficients.

Synopsis

Expr GetRow(Constraint constr)

Arguments

constr: a constraint object.

Return

expression object of the constraint.

Model.GetRowBasis()

Get status of row basis.

Synopsis

int[] GetRowBasis()

Return

basis status.

Model.GetSolution()

Get MIP solution.

Synopsis

double[] GetSolution()

Return

solution values.

Model.GetSos()

Get a SOS constraint of given index in model.

Synopsis

Sos GetSos(int idx)

Arguments

idx: index of the desired SOS constraint.

Return

the desired SOS constraint object.

Model.GetSosBuilders()

Get builders of all SOS constraints in model.

Synopsis

SosBuilderArray GetSosBuilders()

Return

array object of SOS constraint builders.

Model.GetSosBuilders()

Get builders of given SOS constraints in model.

Synopsis

SosBuilderArray GetSosBuilders(Sos[] soss)

Arguments

soss: array of SOS constraints.

Return

array object of desired SOS constraint builders.

Model.GetSosBuilders()

Get builders of given SOS constraints in model.

Synopsis

SosBuilderArray GetSosBuilders(SosArray soss)

Arguments

soss: array of SOS constraints.

Return

array object of desired SOS constraint builders.

Model.GetSOSIIS()

Get IIS status of SOS constraints.

Synopsis

int[] GetSOSIIS(SosArray soss)

Arguments

soss: Array of SOS constraints.

Return

IIS status of SOS constraints.

Model.GetSOSIIS()

Get IIS status of SOS constraints.

Synopsis

int[] GetSOSIIS(Sos[] soss)

Arguments

soss: Array of SOS constraints.

Return

IIS status of SOS constraints.

Model.GetSoss()

Get all SOS constraints in model.

Synopsis

SosArray GetSoss()

Return

array object of SOS constraints.

Model.GetSymMat()

Get a symmetric matrix of given index in model.

Synopsis

SymMatrix GetSymMat(int idx)

Arguments

idx: index of the desired symmetric matrix.

Return

the desired symmetric matrix object.

Model.GetVar()

Get a variable of given index in model.

Synopsis

Var GetVar(int idx)

Arguments

idx: index of the desired variable.

Return

the desired variable object.

Model.GetVarByName()

Get a variable of given name in model.

Synopsis

Var GetVarByName(string name)

Arguments

name: name of the desired variable.

Return

the desired variable object.

Model.GetVarLowerIIS()

Get IIS status of lower bounds of variables.

Synopsis

int[] GetVarLowerIIS(VarArray vars)

Arguments

vars: Array of variables.

Return

IIS status of lower bounds of variables.

Model.GetVarLowerIIS()

Get IIS status of lower bounds of variables.

Synopsis

int[] GetVarLowerIIS(Var[] vars)

Arguments

vars: Array of variables.

Return

IIS status of lower bounds of variables.

Model.GetVars()

Get all variables in model.

Synopsis

VarArray GetVars()

Return

variable array object.

Model.GetVarUpperIIS()

Get IIS status of upper bounds of variables.

Synopsis

int[] GetVarUpperIIS(VarArray vars)

Arguments

vars: Array of variables.

Return

IIS status of upper bounds of variables.

Model.GetVarUpperIIS()

Get IIS status of upper bounds of variables.

Synopsis

int[] GetVarUpperIIS(Var[] vars)

Arguments

vars: Array of variables.

Return

IIS status of upper bounds of variables.

Model.Interrupt()

Interrupt optimization of current problem.

Synopsis

void Interrupt()

Model.LoadMipStart()

Load final initial values of variables to the problem.

Synopsis

void LoadMipStart()

Model.LoadTuneParam()

Load specified tuned parameters into model.

Synopsis

void LoadTuneParam(int idx)

Arguments

idx: Index of tuned parameters.

Model.Read()

Read problem, solution, basis, MIP start or COPT parameters from file.

Synopsis

void Read(string filename)

Arguments

filename: an input file name.

Model.ReadBasis()

Read basis from file.

Synopsis

void ReadBasis(string filename)

Arguments

filename: an input file name

Model.ReadBin()

Read problem in COPT binary format from file.

Synopsis

void ReadBin(string filename)

Arguments

filename: an input file name.

Model.ReadCbf()

Read problem in CBF format from file.

Synopsis

void ReadCbf(string filename)

Arguments

filename: an input file name.

Model.ReadLp()

Read problem in LP format from file.

Synopsis

void ReadLp(string filename)

Arguments

filename: an input file name.

Model.ReadMps()

Read problem in MPS format from file.

Synopsis

void ReadMps(string filename)

Arguments

filename: an input file name.

Model.ReadMst()

Read MIP start information from file.

Synopsis

void ReadMst(string filename)

Arguments

filename: an input file name.

Model.ReadParam()

Read COPT parameters from file.

Synopsis

void ReadParam(string filename)

Arguments

filename: an input file name.

Model.ReadSdpa()

Read problem in SDPA format from file.

Synopsis

void ReadSdpa(string filename)

Arguments

filename: an input file name.

Model.ReadSol()

Read solution from file.

Synopsis

void ReadSol(string filename)

Arguments

filename: an input file name.

Model.ReadTune()

Read tuning parameters from file.

Synopsis

void ReadTune(string filename)

Arguments

filename: an input file name.

Model.Remove()

Remove an array of variables from model.

Synopsis

void Remove(Var[] vars)

Arguments

vars: a list of variables.

Model.Remove()

Remove an array of variables from model.

Synopsis

void Remove(VarArray vars)

Arguments

vars: array of variables.

Model.Remove()

Remove a list of constraints from model.

Synopsis

void Remove(Constraint[] constrs)

Arguments

constrs: a list of constraints.

Model.Remove()

Remove a list of constraints from model.

Synopsis

void Remove(ConstrArray constrs)

Arguments

constrs: an array of constraints.

Model.Remove()

Remove a list of SOS constraints from model.

Synopsis

void Remove(Sos[] soss)

Arguments

soss: a list of SOS constraints.

Model.Remove()

Remove a list of SOS constraints from model.

Synopsis

void Remove(SosArray soss)

Arguments

soss: an array of SOS constraints.

Model.Remove()

Remove a list of Cone constraints from model.

Synopsis

void Remove(Cone[] cones)

Arguments

cones: a list of Cone constraints.

Model.Remove()

Remove a list of Cone constraints from model.

Synopsis

void Remove(ConeArray cones)

Arguments

cones: an array of Cone constraints.

Model.Remove()

Remove a list of gernal constraints from model.

Synopsis

void Remove(GenConstr[] genConstrs)

Arguments

genConstrs: a list of general constraints.

Model.Remove()

Remove a list of gernal constraints from model.

Synopsis

void Remove(GenConstrArray genConstrs)

Arguments

genConstrs: an array of general constraints.

Model.Remove()

Remove a list of quadratic constraints from model.

Synopsis

void Remove(QConstraint[] qconstrs)

Arguments

qconstrs: an array of quadratic constraints.

Model.Remove()

Remove a list of quadratic constraints from model.

Synopsis

void Remove(QConstrArray qconstrs)

Arguments

qconstrs: an array of quadratic constraints.

Model.Remove()

Remove a list of PSD variables from model.

Synopsis

void Remove(PsdVar[] vars)

Arguments

vars: an array of PSD variables.

Model.Remove()

Remove a list of PSD variables from model.

Synopsis

void Remove(PsdVarArray vars)

Arguments

vars: an array of PSD variables.

Model.Remove()

Remove a list of PSD constraints from model.

Synopsis

void Remove(PsdConstraint[] constrs)

Arguments

constrs: an array of PSD constraints.

Model.Remove()

Remove a list of PSD constraints from model.

Synopsis

void Remove(PsdConstrArray constrs)

Arguments

constrs: an array of PSD constraints.

Model.Remove()

Remove a list of LMI constraints from model.

Synopsis

void Remove(LmiConstrArray constrs)

Arguments

constrs: an array of LMI constraints.

Model.Remove()

Remove a list of LMI constraints from model.

Synopsis

void Remove(LmiConstraint[] constrs)

Arguments

constrs: an array of LMI constraints.

Model.Reset()

Reset solution of problem only.

Synopsis

void Reset()

Model.ResetAll()

Reset solution in problem, and additional information such as MIP start, etc.

Synopsis

void ResetAll()

Model.ResetParam()

Reset parameters to default settings.

Synopsis

void ResetParam()

Model.Set()

Set values of information associated with variables.

Synopsis

void Set(

string name,

Var[] vars,

double[] vals)

Arguments

name: name of information.

vars: a list of interested variables.

vals: values of information.

Model.Set()

Set values of information associated with variables.

Synopsis

void Set(

string name,

VarArray vars,

double[] vals)

Arguments

name: name of information.

vars: array of interested variables.

vals: values of information.

Model.Set()

Set values of information associated with constraints.

Synopsis

void Set(

string name,

Constraint[] constrs,

double[] vals)

Arguments

name: name of information.

constrs: a list of interested constraints.

vals: values of information.

Model.Set()

Set values of information associated with constraints.

Synopsis

void Set(

string name,

ConstrArray constrs,

double[] vals)

Arguments

name: name of information.

constrs: array of interested constraints.

vals: values of information.

Model.Set()

Set values of information associated with PSD constraints.

Synopsis

void Set(

string name,

PsdConstraint[] constrs,

double[] vals)

Arguments

name: name of information.

constrs: a list of desired PSD constraints.

vals: array of values of information.

Model.Set()

Set values of information associated with PSD constraints.

Synopsis

void Set(

string name,

PsdConstrArray constrs,

double[] vals)

Arguments

name: name of information.

constrs: a list of desired PSD constraints.

vals: array of values of information.

Model.SetBasis()

Set column and row basis status to model.

Synopsis

void SetBasis(int[] colbasis, int[] rowbasis)

Arguments

colbasis: status of column basis.

rowbasis: status of row basis.

Model.SetCallback()

Set user callback to COPT model.

Synopsis

void SetCallback(CallbackBase cb, int cbctx)

Arguments

cb: user callback instance, inheriting from CallbackBase class.

cbctx: COPT callback context.

Model.SetCoeff()

Set the coefficient of a variable in a linear constraint.

Synopsis

void SetCoeff(

Constraint constr,

Var var,

double newVal)

Arguments

constr: The requested constraint.

var: The requested variable.

newVal: New coefficient.

Model.SetCoeffs()

Set a list of coefficients in the model.

Synopsis

void SetCoeffs(

Constraint[] constrs,

Var[] vars,

double[] vals)

Arguments

constrs: Array of constraints for coefficients to be set.

vars: Array of vars for coefficients to be set.

vals: New values for coefficients.

Model.SetCoeffs()

Set a list of coefficients in the model.

Synopsis

void SetCoeffs(

ConstrArray constrs,

VarArray vars,

double[] vals)

Arguments

constrs: A list of constraints for coefficients to be set.

vars: A list of vars for coefficients to be set.

vals: New values for coefficients.

Model.SetDblParam()

Set value of a COPT double parameter.

Synopsis

void SetDblParam(string param, double val)

Arguments

param: name of integer parameter.

val: double value.

Model.SetIntParam()

Set value of a COPT integer parameter.

Synopsis

void SetIntParam(string param, int val)

Arguments

param: name of integer parameter.

val: integer value.

Model.SetLmiCoeff()

Set the coefficient matrix of a variable in LMI constraint.

Synopsis

void SetLmiCoeff(

LmiConstraint constr,

Var var,

SymMatrix mat)

Arguments

constr: The desired LMI constraint.

var: The desired variable.

mat: new coefficient matrix.

Model.SetLmiRhs()

Set constant matrix of LMI constraint.

Synopsis

void SetLmiRhs(LmiConstraint constr, SymMatrix mat)

Arguments

constr: The desired LMI constraint.

mat: new constant matrix.

Model.SetLpSolution()

Set LP solution.

Synopsis

void SetLpSolution(

double[] value,

double[] slack,

double[] rowDual,

double[] redCost)

Arguments

value: solution values.

slack: slack values.

rowDual: dual values.

redCost: reduced costs.

Model.SetMipStart()

Set initial values for variables of given number, starting from the first one.

Synopsis

void SetMipStart(int count, double[] vals)

Arguments

count: the number of variables to set.

vals: values of variables.

Model.SetMipStart()

Set initial value for the specified variable.

Synopsis

void SetMipStart(Var var, double val)

Arguments

var: an interested variable.

val: initial value of the variable.

Model.SetMipStart()

Set initial value for the specified variable.

Synopsis

void SetMipStart(Var[] vars, double[] vals)

Arguments

vars: a list of interested variables.

vals: initial values of the variables.

Model.SetMipStart()

Set initial value for the specified variable.

Synopsis

void SetMipStart(VarArray vars, double[] vals)

Arguments

vars: a list of interested variables.

vals: initial values of the variables.

Model.SetNames()

Set names for given variables in model.

Synopsis

void SetNames(Var[] vars, string[] names)

Arguments

vars: array of variables.

names: string array of names for variables.

Model.SetNames()

Set names for given variables in model.

Synopsis

void SetNames(VarArray vars, string[] names)

Arguments

vars: a list of variables.

names: string array of names for variables.

Model.SetNames()

Set names for given constraints in model.

Synopsis

void SetNames(Constraint[] cons, string[] names)

Arguments

cons: array of constraints.

names: string array of names for constraints.

Model.SetNames()

Set names for given constraints in model.

Synopsis

void SetNames(ConstrArray cons, string[] names)

Arguments

cons: a list of constraints.

names: string array of names for constraints.

Model.SetNames()

Set names for given quadratic constraints in model.

Synopsis

void SetNames(QConstraint[] cons, string[] names)

Arguments

cons: array of quadratic constraints.

names: string array of names for quadratic constraints.

Model.SetNames()

Set names for given quadratic constraints in model.

Synopsis

void SetNames(QConstrArray cons, string[] names)

Arguments

cons: a list of quadratic constraints.

names: string array of names for quadratic constraints.

Model.SetNames()

Set names for given PSD variables in model.

Synopsis

void SetNames(PsdVar[] vars, string[] names)

Arguments

vars: array of PSD variables.

names: string array of names for PSD variables.

Model.SetNames()

Set names for given PSD variables in model.

Synopsis

void SetNames(PsdVarArray vars, string[] names)

Arguments

vars: a list of PSD variables.

names: string array of names for PSD variables.

Model.SetNames()

Set names for given PSD constraints in model.

Synopsis

void SetNames(PsdConstraint[] cons, string[] names)

Arguments

cons: array of PSD constraints.

names: string array of names for PSD constraints.

Model.SetNames()

Set names for given PSD constraints in model.

Synopsis

void SetNames(PsdConstrArray cons, string[] names)

Arguments

cons: a list of PSD constraints.

names: string array of names for PSD constraints.

Model.SetNames()

Set names for given LMI constraints in model.

Synopsis

void SetNames(LmiConstraint[] cons, string[] names)

Arguments

cons: array of LMI constraints.

names: string array of names for LMI constraints.

Model.SetNames()

Set names for given LMI constraints in model.

Synopsis

void SetNames(LmiConstrArray cons, string[] names)

Arguments

cons: a list of LMI constraints.

names: string array of names for LMI constraints.

Model.SetObjConst()

Set objective constant.

Synopsis

void SetObjConst(double constant)

Arguments

constant: constant value to set.

Model.SetObjective()

Set objective for model.

Synopsis

void SetObjective(Expr expr, int sense)

Arguments

expr: expression of the objective.

sense: optimization sense. optional, default value 0 does not change COPT sense

Model.SetObjSense()

Set objective sense for model.

Synopsis

void SetObjSense(int sense)

Arguments

sense: the objective sense.

Model.SetPsdCoeff()

Set the coefficient matrix of a PSD variable in a PSD constraint.

Synopsis

void SetPsdCoeff(

PsdConstraint constr,

PsdVar var,

SymMatrix mat)

Arguments

constr: The desired PSD constraint.

var: The desired PSD variable.

mat: new coefficient matrix.

Model.SetPsdObjective()

Set PSD objective for model.

Synopsis

void SetPsdObjective(PsdExpr expr, int sense)

Arguments

expr: PSD expression of the objective.

sense: optimization sense. optional, default value 0 does not change COPT sense.

Model.SetQuadObjective()

Set quadratic objective for model.

Synopsis

void SetQuadObjective(QuadExpr expr, int sense)

Arguments

expr: quadratic expression of the objective.

sense: optimization sense. optional, default value 0 does not change COPT sense.

Model.SetSlackBasis()

Set slack basis to model.

Synopsis

void SetSlackBasis()

Model.SetSolverLogFile()

Set log file for COPT.

Synopsis

void SetSolverLogFile(string filename)

Arguments

filename: log file name.

Model.Solve()

Solve the model as MIP.

Synopsis

void Solve()

Model.SolveLp()

Solve the model as LP.

Synopsis

void SolveLp()

Model.Tune()

Tune model.

Synopsis

void Tune()

Model.Write()

Output problem, solution, basis, MIP start or modified COPT parameters to file.

Synopsis

void Write(string filename)

Arguments

filename: an output file name.

Model.WriteBasis()

Output optimal basis to a file of type ‘.bas’.

Synopsis

void WriteBasis(string filename)

Arguments

filename: an output file name.

Model.WriteBin()

Output problem to a file as COPT binary format.

Synopsis

void WriteBin(string filename)

Arguments

filename: an output file name.

Model.WriteIIS()

Output IIS to file.

Synopsis

void WriteIIS(string filename)

Arguments

filename: Output file name.

Model.WriteLp()

Output problem to a file as LP format.

Synopsis

void WriteLp(string filename)

Arguments

filename: an output file name.

Model.WriteMps()

Output problem to a file as MPS format.

Synopsis

void WriteMps(string filename)

Arguments

filename: an output file name.

Model.WriteMpsStr()

Output MPS problem to problem buffer.

Synopsis

ProbBuffer WriteMpsStr()

Return

problem buffer for string of MPS problem.

Model.WriteMst()

Output MIP start information to a file of type ‘.mst’.

Synopsis

void WriteMst(string filename)

Arguments

filename: an output file name.

Model.WriteParam()

Output modified COPT parameters to a file of type ‘.par’.

Synopsis

void WriteParam(string filename)

Arguments

filename: an output file name.

Model.WritePoolSol()

Output selected pool solution to a file of type ‘.sol’.

Synopsis

void WritePoolSol(int idx, string filename)

Arguments

idx: index of pool solution.

filename: an output file name.

Model.WriteRelax()

Output feasibility relaxation problem to file.

Synopsis

void WriteRelax(string filename)

Arguments

filename: Output file name.

Model.WriteSol()

Output solution to a file of type ‘.sol’.

Synopsis

void WriteSol(string filename)

Arguments

filename: an output file name.

Model.WriteTuneParam()

Output specified tuned parameters to a file of type ‘.par’.

Synopsis

void WriteTuneParam(int idx, string filename)

Arguments

idx: Index of tuned parameters.

filename: Output file name.