Initializing help system before first use

XPRSslpchgpresolvecolvals, XSLPchgpresolvecolvals

Purpose
Change the current (presolved) solution values for a set of columns.
Topic area
Synopsis
int XPRSslpchgpresolvecolvals(XPRSprob prob, int ncols, const int colind[], const double values[]);

int XSLPchgpresolvecolvals(XSLPprob prob, int ncols, const int colind[], const double values[]);
Arguments
prob 
The current problem.
ncols 
The number of columns being changed. If colind is NULL, this must equal the number of columns in the current (presolved) problem.
colind 
Array of length ncols holding the indices, in the current (presolved) problem, of the columns to be changed. May be NULL, in which case values must provide a value for every column in the current problem.
values 
Array of length ncols holding the new solution values, corresponding to the columns identified by colind (or, if colind is NULL, to each column of the current (presolved) problem).
Example
The following example changes the solution value for column 91 of the current problem:
int ColNum;
double Value;
XPRSalltype alltype;

ColNum = 91;
XPRSslpgetcolinfo(prob, XPRS_SLPCOLINFO_VALUE, ColNum, &alltype);
Value = alltype.value.real;

Value = Value + 1.42;
XPRSslpchgpresolvecolvals(prob, 1, &ColNum, &Value);
Further information
1. Unlike XPRSslpchgcolvals, the values passed to this function are assumed to match the current problem state and are written directly into the current (presolved) solution, with no presolve applied.
2. This function is only effective after starting a solve or when calling functions like XPRSslpcascade. For setting initial values to be set up before a solve, please use XPRSnlpsetinitval.
Related topics

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.