Opened 9 years ago

Last modified 7 years ago

#3936 new defect

problems with OMOptim

Reported by: g.provan@… Owned by:
Priority: high Milestone: NeedsInput
Component: OMOptim Version: v1.9.4-v1.9.x
Keywords: optimization Cc:

Description

I am trying to use OMOptim, and I can't compile any files, even the example you provide in the online tutorial. I always get an error of the kind:

[C:/Research/Dx/Tank-Model/reactor.mo:1:0-1:12:writable] Error: Parser error: Unexpected token near: optimization (IDENT)

The moment that I replace (in your example)
optimization BatchReactor(...
with
model BatchReactor(...
then the file will load, but won't work with OMOptim.

Any ideas about what I am doing wrong?

Change History (3)

comment:1 by Vitalij Ruge, 8 years ago

You can use "command optimize(ModelName) from OMShell, OMNotebook or MDT" see.
doc or direct OMEdit-Example for the BatchReactor.

Last edited 8 years ago by Vitalij Ruge (previous) (diff)

in reply to:  1 comment:2 by Francesco Casella, 7 years ago

Replying to vitalij:

You can use "command optimize(ModelName) from OMShell, OMNotebook or MDT" see.
doc or direct OMEdit-Example for the BatchReactor.

g.provan@…, was this helpful? If so, please close the ticket, otherwise please provide further input.

comment:3 by Christoph Buchner <buchner@…>, 7 years ago

Not the OP, but I just worked through the BatchReactor optimization example from the docs, and it worked. Also, OMOptim is basically unmaintained, so I don't think this will run in the foreseeable future. Therefore, I think this can be closed.

Note: See TracTickets for help on using tickets.