Skip to content

How to get SOLVERTIME from the OPTIMIZER? #1398

Discussion options

You must be logged in to vote

Works here so not sure why it wouldn't on your machine. What solver?

>> P = optimizer(x<=y, -x,[],y,x);
>> [val,~,~,~,~,diagnostics] = P(4);
>> diagnostics

diagnostics = 

  struct with fields:

          Primal: [3×1 double]
            Dual: 1
           Slack: []
         problem: 0
         infostr: 'Successfully solved (LINPROG-2019.1)'
     solverinput: []
    solveroutput: []
      solvertime: 0.1366

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@oravec-juraj
Comment options

@johanlofberg
Comment options

@oravec-juraj
Comment options

@johanlofberg
Comment options

Answer selected by oravec-juraj
@oravec-juraj
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants