Previous Page: CPXNETaddnodes First PageNext Page: CPXNETcheckcopynet

CPXNETbasewrite


Description

This function writes the current basis stored in a CPLEX network problem object to a file in BAS format. If no arc or node names are available for the CPLEX network problem object, default names will be used.

Return Value

If the operation is successful, CPXNETbasewrite() returns the value 0; if not, it returns a nonzero value to indicate an error.

Synopsis

int CPXNETbasewrite (CPXENVptr env,
                     CPXNETptr net,
                     char *filename);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX() routines.

CPXNETptr net
A pointer to a CPLEX network problem object as returned by CPXNETcreateprob().

char *filename
Name of the basis file to write.

Example

status = CPXNETbasewrite (env, net, "netbasis.bas");

Previous Page: CPXNETaddnodes First PageNext Page: CPXNETcheckcopynet