-
Notifications
You must be signed in to change notification settings - Fork 2
Model: canget objective function of the wrong type #97
Comments
This is a bug, holdover from before |
Also work around JuliaOpt/MathOptInterfaceBridges.jl#97. Relevant contquadratic tests now pass!
Also work around JuliaOpt/MathOptInterfaceBridges.jl#97. Relevant contquadratic tests now pass!
Why using three different fields ? There should be only one objective function. |
Just like there are separate fields for e.g. |
If several fields are used, we need to check each time which of them is not
That's a good idea |
Also work around JuliaOpt/MathOptInterfaceBridges.jl#97. Relevant contquadratic tests now pass!
Also work around JuliaOpt/MathOptInterfaceBridges.jl#97. Relevant contquadratic tests now pass!
Also work around JuliaOpt/MathOptInterfaceBridges.jl#97. Relevant contquadratic tests now pass!
Also work around JuliaOpt/MathOptInterfaceBridges.jl#97. Relevant contquadratic tests now pass!
Also work around JuliaOpt/MathOptInterfaceBridges.jl#97. Relevant contquadratic tests now pass!
* Implement MathOptInterface methods and types. * Add test. * Bug fixes. Now works through JuMP (with just Interval constraints) * Support warm start in copy * Adapt to MOI name changes. * Address comments regarding termination status. * Add support for LessThan, GreaterThan, and EqualTo. * Add support for more constraints. * Add support for settings. Bug fixes. * Add support for MaxSense objectives. * Hack to get constraint primals. * Status fixes and infeasibility certificates. * Support for constant in objective function. Also work around JuliaOpt/MathOptInterfaceBridges.jl#97. Relevant contquadratic tests now pass! * Be more careful about accessing infeasibility certificates. * Adapt to MOI osqp#97 fix. * Fix bug in processconstraints! Coefficients should be summed together! * Cleanup. * Temporary .travis.yml changes to get code coverage. * More cleanup. * Add data structures for problem modification * Function rename. * More plumbing for problem modification. * Test ProblemModificationCache. * Add setindex with colon, tests. * Support for objective modification. * Support for objective function changes. * Make MatrixModificationCache more efficient. * Bug fix. * boundschecks, cleanup. * canget discipline, ifelse optimization * Switch to MathOptInterface.Test. * Random cleanup and fixes. * Adapt to MOIU migration. * Test unsupported objective. * Temporary .travis.yml changes. * Add UnsupportedConstraintError. * Fix processobjective for SingleVariable. * Move OSQPModel to src. * Problem modification tests. Bug fixes. * Deal with strange OSQP warm start functionality. * RawSolver test, remove free! method. * Test SolveTime. * Disable CheckTermination; seems to make random test failures go away. * Get rid of unused isassigned. * Get rid of ObjectBound and RelativeGap methods. * Test objective ScalarConstantChange, fix bug. * Test ScalarCoefficientChange. * Test updating settings. * Test and fix standard attributes. * Test and fix partial function modification * Make defaultoptimizer deterministic. * Switch to setting AdaptiveRhoInterval but leaving AdaptiveRho true. * Refine warm start behavior.
Because of
https://github.com/JuliaOpt/MathOptInterfaceUtilities.jl/blob/532ebec78b8b8e35dbf7e7443ddcdb663ff279cf/src/model.jl#L225-L231
and
https://github.com/JuliaOpt/MathOptInterfaceUtilities.jl/blob/532ebec78b8b8e35dbf7e7443ddcdb663ff279cf/src/model.jl#L171
you can set a quadratic objective, ask if you can get a
SingleVariable
objective (why yes you can!) and then when you callget
withObjectiveFunction{SingleVariable}
you receive aScalarQuadraticFunction
.By the way, I was expecting this to be implemented with three different fields, not just one field with
Union
type; I guess this is a temporary solution?The text was updated successfully, but these errors were encountered: