MPSolve 3.2.1
Loading...
Searching...
No Matches
xmpsolve::MPSolveWorker Class Reference
Inheritance diagram for xmpsolve::MPSolveWorker:

Public Member Functions

 MPSolveWorker (mps_context *s=NULL, QObject *parent=0)
 
void setMpsContext (mps_context *ctx)
 setMpsContext can be used to set the current mps_context for the computation. More...
 
void run ()
 run Actually start the computation calling mps_mpsolve();
 
unsigned long int CPUTime ()
 CPUTime gets the number of ms of CPU time used by the last call to run(). More...
 
void abortComputation ()
 Abort the current computation.
 

Public Attributes

clock_t * m_timer
 The timer used to check how long MPSolve needs to solve a polynomial.
 
unsigned long int m_time
 The time measured with the timer.
 

Member Function Documentation

◆ CPUTime()

unsigned long int MPSolveWorker::CPUTime ( )

CPUTime gets the number of ms of CPU time used by the last call to run().

Returns
The number of ms of CPU time spent on the last run.

◆ setMpsContext()

void MPSolveWorker::setMpsContext ( mps_context ctx)

setMpsContext can be used to set the current mps_context for the computation.

Parameters
ctxis the pointer to the current mps_context.

The documentation for this class was generated from the following files: