Learn R Programming

rLindo (version 8.0.1)

R Interface to LINDO API

Description

An interface to LINDO API. Supports Linear, Integer, Quadratic, Conic, General Nonlinear, Global, and Stochastic Programming models. To download the trial version LINDO API, please visit www.lindo.com/rlindo.

Copy Link

Version

Install

install.packages('rLindo')

Monthly Downloads

3

Version

8.0.1

License

LGPL (>= 2.1)

Maintainer

Zhe Liu

Last Published

August 12th, 2013

Functions in rLindo (8.0.1)

rLSaddNLPAj

Add NLP elements to the specified column for the given model.
rLSaddSETS

Add sets to a given model.
rLSaggregateStages

Load stage aggregation scheme for the SP model.
rLScalinfeasMIPsolution

Calculate the feasibility of a MIP solution.
rLSfreeHashMemory

Free up work arrays associated with a given model's variable name hashing.
rLSdeleteConstraints

Delete a set of constraints in the given model.
rLSaddParamDistIndep

Add a new independent stochastic parameter with a parametric distribution to the SP model.
rLSgetConstraintStages

Retrieve the stage indices of constraints.
rLSfreeGOPSolutionMemory

Free up the arrays associated with the GOP solution of a given model.
rLSdeleteNLPobj

Delete NLP elements from the objective function for the given model.
rLSfindBlockStructure

Examine the nonzero structure of the constraint matrix and tries to identify block structures in the model.
rLSaddInstruct

Add instruction lists into a model structure.
rLSdeleteEnv

Delete LINDO API environment object.
rLSfindIIS

Find an irreducibly inconsistent set (IIS) of constraints for an infeasible model.
rLSfillRGBuffer

Generate next batch of random numbers into random number buffer.
rLSgetDualSolution

Return the dual solution values for a given model.
rLSgetConstraintRanges

Retrieves the maximum allowable decrease and increase in the right-hand side values of constraints for which the optimal basis remains unchanged.
rLSaddDiscreteBlocks

Add a new discrete stochastic block to the SP model.
rLSgetBasis

Get information about the basis that was found after optimizing the given model.
rLSfindIUS

Find an irreducibly unbounded set (IUS) of columns for an unbounded linear program.
rLSfreeStocMemory

Free up stochastic memory.
rLSdeleteString

Delete the complete string data, including the string vector and values.
rLScheckConvexity

Optimize a quadratic model with the best suitable solver.
rLSdeleteStringData

Delete the string values data.
rLSaddScenario

Add a new scenario block to the SP model.
rLScreateRGMT

Create a new instance of LINDO API random generator object (multithread thread).
rLSgetModelIntParameter

Retrieves a integer precision parameter for a specified model.
rLSgetIInfo

Return model or solution integer information about the current state of the LINDO API solver after model optimization is completed.
rLSgetNodePrimalSolution

Return the primal solution for the specified node.
rLSgetMIPSlacks

Get the current slack values for a MIP model.
rLSdisposeRG

Delete the specified random generator object.
rLSgetConstraintDatai

Get data on a specified constraint.
rLScreateModel

Create a new instance of LINDO API model object.
rLSaddVariables

Add variables to a given model.
rLSfreeSolverMemory

Free up solver work arrays associated with a given model.
rLSdeduceStages

Deduce constraints and variables stage info.
rLScreateEnv

Create a new instance of LINDO API environment object.
rLSgetConeDatai

Retrieve data for cone i.
rLSdeleteSETS

Delete the sets in the given model.
rLSaddDiscreteIndep

Add a new discrete independent stochastic parameter to the SP model.
rLSgetFileError

Provides the line number and text of the line in which an error occurred while reading or writing a file.
rLSgetDiscreteBlockOutcomes

Get the outcomes for the specified block-event at specified block-realization index.
rLSgetEnvDouParameter

Retrieves a double precision parameter for a specified environment.
rLSgetConstraintNamei

Retrieve the name of a constraint, given its index number.
rLSdeleteVariables

Delete a set of variables in the given model.
rLSfreeStocHashMemory

Free up Stoch Hashtable memory used in the model for fast name lookup.
rLSdeleteQCterms

Delete the quadratic terms from a set of constraints in the given model.
rLSgetEnvStocParameterInt

Get a stochastic parameter value of type integer from the given env.
rLSgetModelStocParameterInt

Get a stochastic parameter value of type integer from the given model.
rLSaddChanceConstraint

Add a new chance-constraint to the SP model.
rLSgetBoundRanges

Retrieves the maximum allowable decrease and increase in the primal variables for which the optimal basis remains unchanged.
rLSgetNodeListByScenario

Retrieve the indices of the nodes that belong to a given scenario.
rLSgetDoubleRV

Get the next standard uniform random variate in the stream.
rLSgetMIPBasis

Get information about the basis that was found at the node that yielded the optimal MIP solution.
rLSgetParamShortDesc

Get the specified parameter's short description.
rLSgetIIS

Retrieve the irreducibly inconsistent set (IIS) of constraints for an infeasible model.
rLSgetEnvStocParameterChar

Get a stochastic parameter value of type characters from the given env.
rLSgetMIPDualSolution

Get the current dual solution for a MIP model.
rLSdeleteModel

Delete LINDO API model object.
rLSgetConeIndex

Retrieve the name of a cone, given its index.
rLSaddCones

Add cones to a given model.
rLSgetNodeDualSolution

Return the dual solution for the specified node.
rLSgetModelStocParameterDou

Get a stochastic parameter value of type double from the given model.
rLSfreeMIPSolutionMemory

Free up the arrays associated with the MIP solution of a given model.
rLScreateRG

Create a new instance of LINDO API random generator object.
rLSgetDualModel

Construct the explicit dual from a primal problem.
rLScopyParam

Copy model parameters to another model.
rLSgetModelStocParameterChar

Get a stochastic parameter value of type characters from the given model.
rLSgetDistrRV

Get the next double random variate of underlying distribution.
rLSgetBlockStructure

Retrieve the block structure information.
rLSgetDiscreteIndep

Get the stochastic data for the (independent) discrete stochastic parameter at the specified event index.
rLSgetInt32RV

Get the next integer random variate in the stream.
rLSgetBestBounds

Finds the best implied variable bounds for the specified model by improving the original bounds using extensive preprocessing and probing.
rLSgetIUS

Retrieve the irreducibly unbounded set (IUS) of columns for an unbounded linear model.
rLSgetLPVariableDataj

Retrieve the formulation data for a specified variable.
rLSgetLPData

Retrieve the formulation data for a given linear or mixed integer linear programming model.
rLSgetNLPVariableDataj

Get data about the nonlinear structure of a specific column of the model.
rLSgetCorrelationMatrix

Get the correlation structure between variables.
rLSgetInitSeed

Get the seed initiated this random generator.
rLSgetConeNamei

Get the name of a cone with a specified index.
rLSgetConstraintProperty

Return the property of the specified constraint of the given model.
rLSgetReducedCosts

Return the reduced cost of all variables for a given model.
rLSgetErrorRowIndex

Retrieves the index of the row where a numeric error has occurred.
rLSgetModelDouParameter

Retrieves a double precision parameter for a specified model.
rLSgetProbabilityByScenario

Return the probability of a given scenario.
rLSgetStocCCPIInfo

Get integer information about the current state of the stochastic model.
rLSgetMIPVarStartPoint

Retrieve the values of the initial MIP primal solution.
rLSgetNextBestMIPSol

Generate the next best (in terms of objective value) solution for the current mixed integer model.
rLSgetEnvStocParameterDou

Get a stochastic parameter value of type double from the given env.
rLSgetNLPData

Get data about the nonlinear structure of a model.
rLSgetStringValue

Retrieve a string value for a specified string index.
rLSgetScenarioSlacks

Return the primal slacks for the specified scenario.
rLSgetSETSData

Retrieve sets data from a model data structure.
rLSgetNodeReducedCost

Return the reduced cost for the specified node.
rLSgetDiscreteBlocks

Get the stochastic data for the discrete block event at specified index.
rLSgetStageAggScheme

Get stage aggregation scheme for the SP model.
rLSgetSampleSizes

Retrieve the number of nodes to be sampled in all stages.
rLSgetRoundMIPsolution

Round the given MIP solution to nearest int solution.
rLSgetIntParameterRange

Retrieve the range of a parameter of type integer.
rLSloadQCData

Load quadratic program data into a model structure.
rLSgetStocDInfo

Get double information about the current state of the stochastic model.
rLSgetScenario

Get the outcomes for the specified specified scenario.
rLSgetNLPConstraintDatai

Get data about the nonlinear structure of a specific row of the model.
rLSgetConstraintIndex

Retrieve the index of a constraint, given its name.
rLSloadNameData

Load the given name data (e.g., row and column names), into a model structure.
rLSgetVarType

Retrieve the variable types and their respective counts in a given model.
rLSgetModelStocIntParameter

Get the current value of an integer valued parameter for the given model.
rLSloadStageData

Load stage structure for the model.
rLSgetModelStocDouParameter

Get the current value of a double valued parameter for the given model.
rLSloadSemiContData

Load semi-continuous data into a model structure.
rLSloadMIPVarStartPoint

Provide an initial starting point for LSsolveMIP.
rLSgetMIPPrimalSolution

Get the current primal solution for a MIP model.
rLSgetMIPReducedCosts

Get the current reduced cost for a MIP model.
rLSloadString

Load a single string into a model structure.
rLSmodifyAj

Modify the coefficients for a given column at specified constraints.
rLSgetDeteqModel

Get the deterministic equivalent (DEQ) of the SP model.
rLSgetStocRowIndices

Retrieve the indices of stochastic rows.
rLSloadStocParData

Load stage structure of the stochastic parameters (SPARs) in the model.
rLSgetObjectiveRanges

Retrieves the maximum allowable decrease and increase in objective function coefficients for which the optimal basis remains unchanged.
rLSloadStringData

Load a vector of strings into a model structure and get sort order.
rLSgetQCDatai

Retrieve the quadratic data associated with constraint i from a model data structure.
rLSgetParamDistIndep

Get the stochastic data for the (independent) parametric stochastic parameter at the specified event index.
rLSgetParamMacroName

Get the specified parameter's macro name.
rLSgetStocParName

Get name of stochastic parameter by index.
rLSgetStocParData

Retrieve the data of stochastic parameters.
rLSgetPrimalSolution

Return the primal solution values for a given model.
rLSgetStageIndex

Get the index of a stage by its name.
rLSgetStageName

Get scenario name by index.
rLSloadMIPVarStartPointPartial

Load a partial MIP initial point for MIP/MINLP models.
rLSgetStocParSample

Get a sample object associated with the specified stochastic parameter.
rLSloadConstraintStages

Load stage structure of the constraints in the model.
rLSloadMultiStartSolution

Load the multistart solution at specified index to the main solution structures for access with solution query routines.
rLSloadVarStartPoint

Provide an initial starting point for nonlinear and mixed-integer solvers.
rLSloadVarPriorities

Provide priorities for each variable for use by mixed-integer and global solvers.
rLSgetRangeData

Get constraint ranges.
rLSgetScenarioIndex

Get index of a scenario by its name.
rLSloadCorrelationMatrix

Load a correlation matrix to be used by the sampling scheme in stochastic programming.
rLSgetSETSDatai

Retrieve the data for set i from a model data structure.
rLSgetScenarioObjective

Return the objective value for the specified scenario.
rLSgetScenarioReducedCost

Return the reduced cost for the specified scenario.
rLSgetScenarioDualSolution

Return the dual solution for the specified scenario.
rLSgetStocCCPDInfo

Get double information about the current state of the stochastic model.
rLSwriteLINDOFile

Writes the given problem to a file in LINDO format.
rLSsolveSBD

Optimize a given LP or MILP model with Benders' decomposition.
rLSgetStocParIndex

Get the index of stochastic parameter by name.
rLSgetSolution

Get the solution specified by the second argument.
rLSgetScenarioPrimalSolution

Return the primal solution for the specified scenario.
rLSgetSlacks

Return the value of the slack variable for each constraint of a given model.
rLSgetSemiContData

Retrieve the semi continuous data from a model data structure.
rLSgetVarStartPoint

Retrieve the values of the initial primal solution.
rLSmodifyCone

Modify the data for the specified cone.
rLSmodifyRHS

Modify selected constraint right-hand sides of a given model.
rLSreadBasis

Read an initial basis from the given file in the specified format.
rLSsetModelStocParameterInt

Set a stochastic parameter value of type integer.
rLSgetStocSInfo

Get string information about the current state of the stochastic model.
rLSsetEnvStocParameterInt

Set a stochastic parameter value of type integer.
rLSsetProbAllocSizes

Increase the allocated sizes.
rLSmodifySemiContVars

Modify data of a set of semi-continuous variables in the given model.
rLSmodifySET

Modify the set for the specified cone.
rLSreadLINDOStream

Read from character stream in "LINDO LTX Format".
rLSreadLINDOFile

Read the model in LINDO format from the given file and stores the problem data in the given model structure.
rLSmodifyObjective

Modify selected objective coefficients of a given model.
rLSparam

LINDO API Parameters.
rLSreadSMPSFile

Read the CORE,TIME,STOCH files for SP models in SMPS format.
rLSsampGetPoints

Get a copy of the generated sample points.
rLSreadVarStartPoint

Provide initial values for variables from a file.
rLSsampEvalDistr

Evaluate the specified function associated with given distribution at specified point.
rLSsetModelDouParameter

Set a double precision parameter for a specified model.
rLSsolveMIP

Optimize a mixed integer programming model using branch-and-cut.
rLSmodifyUpperBounds

Modify selected upper bounds in a given model.
rLSsampGetDistrParam

Get the specified parameter of a given distribution.
rLSsetRGSeed

Set an initialization seed for the random number generator.
rLSwriteIIS

Writes the IIS of an infeasible LP to a file in LINDO file format.
rLSgetStocCCPSInfo

Get string information about the current state of the stochastic model.
rLSsampLoadPoints

Load a sample of given size to the specified sample.
rLSloadGASolution

Loads the GA solution at specified index in the final population to the main solution structures for access with solution query routines.
rLSloadInstruct

Load instruction lists into a model structure.
rLSwriteLINGOFile

Writes the given problem to a file in LINGO format.
rLSsampGenerate

Generate a sample of a given size with specified method from the underlying distribution.
rLSsampSetRG

Set a random number generator object to the specified distribution.
rLSreadVarPriorities

Read branching priorities of variables from a disk file.
rLSwriteDeteqLINDOFile

Write the deterministic equivalent (DEQ) of the SP models in LINDO format.
rLSmodifyLowerBounds

Modify selected lower bounds in a given model.
rLSreadModelParameter

Reads model parameters from a parameter file.
rLSsetModelStocParameterChar

Set a stochastic parameter value of type double.
rLSsolveMipBnp

Solve the MIP model with the branch-and-price method.
rLSloadLPData

Load the given LP data into a model structure.
rLSreadMPSFile

Read a model in MPS format from the given file and stores the problem data in the given problem structure.
rLSsetEnvStocParameterDou

Set a stochastic parameter value of type double.
rLSsetDistrRG

Set a distribution function for the random generator.
rLSsampGetDiscretePdfTable

Get the PDF table from a discrete distribution sample.
rLSwriteSMPIFile

Write the CORE,TIME,STOCH files for SP models in SMPI format.
rLSwriteMPSFile

Writes the given problem to a specified file in MPS format.
rLSsampGetIInfo

Get integer information about the sample.
rLSreadMPIFile

Read a model in MPI format from the given file and stores the problem data in the given problem structure.
rLSgetVarStartPointPartial

Retrieve the resident partial initial point for NLP models.
rLSloadVarStartPointPartial

Load a partial initial point for NLP models.
rLSsampSetDistrParam

Set the specified parameter of the given distribution.
rLSgetStocParOutcomes

Retrieve the outcomes of stochastic parameters for the specified scenario.
rLSgetNLPObjectiveData

Get the NLP data of the Objective.
rLSgetVariableNamej

Retrieve the name of a variable, given its index number.
rLSloadBasis

Provide a starting basis for the simplex method.
rLSsetEnvStocParameterChar

Set a stochastic parameter value of type string.
rLSwriteModelParameter

Writes model parameters to a parameter file.
rLSwriteDeteqMPSFile

Write the deterministic equivalent for the SP model in MPS format.
rLSwriteScenarioLINDOFile

Write scenario model in LINDO format.
rLSloadSETSData

Load special sets data into a model structure.
rLSwriteScenarioMPSFile

Write scenario model in MPS format.
rLSwriteSMPSFile

Write the CORE,TIME,STOCH files for SP models in SMPS format.
rLSmodifyConstraintType

Modify the type or direction of a set of constraints.
rLSreadLPFile

Read from file stream in "CPLEX LP Format".
rLSloadSampleSizes

Load sample sizes per stage for the stochastic model.
rLSsampGetCIPoints

Get a copy of the correlation induced sample points.
rLSloadConeData

Load quadratic cone data into a model structure.
rLSsolveHS

Solve the given model heuristically using the specified search method.
rLSwriteBasis

Writes the resident basis to the given file in the specified format.
rLSoptimizeQP

Optimize a quadratic model with the best suitable solver.
rLSsolveSP

Solve the SP models.
rLSsolveGOP

Optimize a global optimization problem.
rLSwriteSolutionOfType

Write the solution of a given problem to a file in a specific format.
rLSoptimize

Optimize a continuous model by a given method.
rLSsampEvalUserDistr

Evaluate the specified multivariate function associated with given distribution at specified point.
rLSsampCreate

Create an instance of a sample of specified distribution.
rLSwriteScenarioSolutionFile

Write the scenario solution to a file.
rLSreadEnvParameter

Reads environment parameters from a parameter file.
rLSsetModelIntParameter

Set an integer parameter for a specified model.
rLSgetVariableIndex

Retrieve the index of a variable, given its name.
rLSloadBlockStructure

Provide a block structure for the constraint matrix by specifying block memberships of each variable and constraint.
rLSsetEnvIntParameter

Set an integer parameter for a specified environment.
rLSsetConstraintProperty

Set the property of the specified constraint of the given model.
rLSsetModelStocDouParameter

Set a double valued parameter for the given model.
rLSwriteScenarioMPIFile

Write scenario model in MPI format.
rLSsetStocParRG

Set an RG object to the specified stochastic parameter.
rLindo

R interface to LINDO API.
rLSwriteSolution

Writes the LP solution to a file.
rLSwriteMPIFile

Writes the given problem to a specified file in MPI format.
rLSreadLPStream

Read from character stream in "CPLEX LP Format".
rLSsampGetDInfo

Get double information about the sample.
rLSwriteWithSetsAndSC

Writes the given problem to a specified file in MPS format with the sets and SC vars inserted.
rLSaddQCterms

Add quadratic elements to the given model.
rLSdeleteAj

Delete the elements at specified rows for the specified column for the given model.
rLSfreeSolutionMemory

Free up the arrays associated with the solution of a given model.
rLSdeleteSemiContVars

Delete a set of semi-continuous variables in the given model.
rLSgetNodeSlacks

Return the slack values for the specified node.
rLSgetMIPVarStartPointPartial

Retrieve the resident initial point for MIP/MINLP models.
rLSgetParamMacroID

Get the integer identifier and the data type of a parameter specified by its name.
rLSaddEmptySpacesNLPAcolumns

Add empty space A, this can make inserting constraints more efficient.
rLSgetQCData

Retrieve the quadratic data from a model data structure.
rLSgetScenarioName

Get scenario name by index.
rLSgetVariableStages

Retrieve the stage indices of variables.
rLSgetScenarioModel

Get a copy of the scenario model.
rLSloadVarType

Load variable type data into a model structure.
rLSloadStocParNames

Load name data for stochastic parameters into the specified model structure.
rLSloadVariableStages

Load stage structure of the variables in the model.
rLSaddEmptySpacesAcolumns

Add empty space A, this can make inserting constraints more efficient.
rLSdeleteCones

Delete a set of cones in the given model.
rLSsampDelete

Delete the specified sample object.
rLSsetModelStocIntParameter

Set an integer valued parameter for the given model.
rLSsetPrintLogNull

Disable the printing log function.
rLSaddConstraints

Add constraints to a given model.
rLSaddNLPobj

Add NLP elements to the objective function for the given model.
rLSgetChanceConstraint

Get the stochastic data for the specified chance constraint.
rLSsetModelStocParameterDou

Set a stochastic parameter value of type double.
rLSwriteIUS

Writes the IUS of an unbounded LP to a file in LINDO file format.
rLSsetProbNameAllocSizes

Increase the allocated sizes for how much space is needed for storing names.
rLSgetDInfo

Return model or solution double information about the current state of the LINDO API solver after model optimization is completed.
rLSgetDouParameterRange

Retrieve the range of a parameter of type double.
rLSgetLPConstraintDatai

Retrieve the formulation data for a specified constraint in a linear or mixed integer linear program.
rLSgetErrorMessage

Retrieves the error message associated with the given error code.
rLSgetEnvIntParameter

Retrieves a integer precision parameter for a specified environment.
rLSgetParamLongDesc

Get the specified parameter's long description.
rLSgetProbabilityByNode

Return the probability of a given node in the stochastic tree.
rLSgetReducedCostsCone

Return the reduced cost of all cone variables for a given model.
rLSgetStocIInfo

Get integer information about the current state of the stochastic model.
rLSloadNLPData

Load a nonlinear program's data into the model data structure.
rLSsetDistrParamRG

Set distribution parameters.
rLSsampLoadDiscretePdfTable

Load a PDF table for a user defined discrete distribution.
rLSsetNumStages

Set number of stages in the model.
rLSsetEnvDouParameter

Set a double precision parameter for a specified environment.
rLSsolveFileLP

Optimizes a large LP from an MPS file.
rLSreadSMPIFile

Read the CORE,TIME,STOCH files for SP models in SMPI format.
rLSwriteNodeSolutionFile

Write the node solution to a file.
rLSwriteDualMPSFile

Writes the given problem to a specified file in MPS format.
rLSmodifyVariableType

Modify the types of the variables of the given model.