Initializing help system before first use

XPRSslpchgcolvals, XSLPchgcolvals

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

int XSLPchgcolvals(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 XPRS_INPUTCOLS.
colind 
Array of length ncols holding the indices, in the input space, of the columns to be changed. May be NULL, in which case values must provide a value for every one of the XPRS_INPUTCOLS columns.
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 input space).
Example
The following example changes the solution values for columns 3 and 7 in the input space:
int ColInd[2];
double Values[2];

ColInd[0] = 3; Values[0] = 1.42;
ColInd[1] = 7; Values[1] = 2.71;

XPRSslpchgcolvals(prob, 2, ColInd, Values);
Further information
1. Unlike XPRSslpchgpresolvecolvals, the values passed to this function are in the input space, i.e. before presolve and the SLP augmentation, and will be presolved before updating the internal values.
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.